|
@@ -81,7 +81,7 @@ class Api_WfsQgisServer extends Api_WfsServerBase {
|
|
|
$searchParams['order_by'] = $acl->getPrimaryKeyField();
|
|
$searchParams['order_by'] = $acl->getPrimaryKeyField();
|
|
|
$searchParams['order_dir'] = 'DESC';
|
|
$searchParams['order_dir'] = 'DESC';
|
|
|
$bbox = V::get('BBOX', '', $_GET);
|
|
$bbox = V::get('BBOX', '', $_GET);
|
|
|
- // TODO: if (!empty($bbox)) $searchParams['f_the_geom'] = "BBOX:{$bbox}";
|
|
|
|
|
|
|
+ if (!empty($bbox)) $searchParams['f_the_geom'] = "BBOX:{$bbox}";
|
|
|
//if ($geomFld) $searchParams["f_{$geomFld}"] = 'IS NOT NULL';
|
|
//if ($geomFld) $searchParams["f_{$geomFld}"] = 'IS NOT NULL';
|
|
|
//if ($geomFld) $searchParams["f_{$geomFld}"] = 'GeometryType=' . strtoupper($dbGeomType);
|
|
//if ($geomFld) $searchParams["f_{$geomFld}"] = 'GeometryType=' . strtoupper($dbGeomType);
|
|
|
$geomType = strtoupper($dbGeomType);
|
|
$geomType = strtoupper($dbGeomType);
|
|
@@ -111,7 +111,7 @@ if (true) {//1 == V::get('XML_WRITER', 0, $_GET, 'int')) {
|
|
|
header('Content-type: application/xml; charset=utf-8');
|
|
header('Content-type: application/xml; charset=utf-8');
|
|
|
$xmlWriter = new XMLWriter();
|
|
$xmlWriter = new XMLWriter();
|
|
|
$xmlWriter->openUri('php://output');
|
|
$xmlWriter->openUri('php://output');
|
|
|
- // $xmlWriter->openMemory();
|
|
|
|
|
|
|
+ // $xmlWriter->openMemory();// DBG
|
|
|
$xmlWriter->setIndent(true);
|
|
$xmlWriter->setIndent(true);
|
|
|
if (!$xmlWriter) throw new HttpException("Error no XMLWriter", 404);
|
|
if (!$xmlWriter) throw new HttpException("Error no XMLWriter", 404);
|
|
|
$xmlWriter->startDocument('1.0','UTF-8');
|
|
$xmlWriter->startDocument('1.0','UTF-8');
|