|
|
@@ -126,6 +126,17 @@ if($DBG){echo "ogcFilter(" . strlen($ogcFilter) . "): {$ogcFilter}\n";}
|
|
|
}
|
|
|
if (!empty($onlyCols)) $searchParams['cols'] = $onlyCols;
|
|
|
}
|
|
|
+ {// BBOX
|
|
|
+ // 54.26931096743426,18.48242909824306,54.26738118403914,18.478738378639246
|
|
|
+ $bbox = V::get('BBOX', '', $_GET);
|
|
|
+ if (!empty($bbox)) {
|
|
|
+ if (preg_match("/^\d+(.\d+)?,\d+(.\d+)?,\d+(.\d+)?,\d+(.\d+)?$/", $bbox, $matches)) {
|
|
|
+ $searchParams['f_the_geom'] = "BBOX:{$bbox}";
|
|
|
+ } else {
|
|
|
+ // throw new Exception("Error Processing Request", 1);// ?
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if($DBG){echo 'getItems:';print_r($searchParams);echo "\n";}
|
|
|
$items = $acl->getItems($searchParams);
|
|
|
|
|
|
@@ -160,7 +171,7 @@ if($DBG){echo 'item['.$itemKey.'] ('.$geomFld.')isEmpty('.empty($item->{$geomFld
|
|
|
$featureNode->setAttribute('fid', "{$type}.{$itemKey}");
|
|
|
foreach ($fldList as $fldName) {
|
|
|
$featureFldNode = $dom->createElementNS($wfsNsUri, "{$wfsNs}:{$fldName}");
|
|
|
- if ($acl->isGeomField($fldName)) {
|
|
|
+ if ($geomFld != null && $geomFld == $fldName) {
|
|
|
$geomNode = $this->_typeConverter->createGmlFromWkt($item->{$fldName}, $dom);
|
|
|
if (!$geomNode) continue;
|
|
|
$featureFldNode->appendChild($geomNode);
|