|
|
@@ -123,19 +123,6 @@ if($DBG){echo 'getItems:';print_r($searchParams);echo "\n";}
|
|
|
$xmlWriter->writeAttribute('xsi:schemaLocation', "{$wfsNsUri} {$featureTypeUri}");
|
|
|
|
|
|
if($DBG){echo '(geomFld: '.$geomFld.'):';print_r($acl->getFieldType($geomFld));echo "\n";}
|
|
|
- if (empty($items)) {
|
|
|
- $pKeyField = $acl->getPrimaryKeyField();
|
|
|
- $fakeItem = new stdClass();
|
|
|
- $fakeItem->{$pKeyField} = 0;
|
|
|
- if ('polygon' == $dbGeomType) {
|
|
|
- $fakeItem->the_geom = "POLYGON(())";
|
|
|
- } else if ('linestring' == $dbGeomType) {
|
|
|
- $fakeItem->the_geom = "LINESTRING()";
|
|
|
- } else if ('point' == $dbGeomType) {
|
|
|
- $fakeItem->the_geom = "POINT(0,0)";
|
|
|
- }
|
|
|
- $items[0] = $fakeItem;
|
|
|
- }
|
|
|
$dbgLoop = 0;
|
|
|
$this->DBG("before loop...", __LINE__, __FUNCTION__, __CLASS__);
|
|
|
foreach ($items as $itemKey => $item) {
|