|
|
@@ -317,6 +317,7 @@ class Api_Wfs_GetFeature {
|
|
|
$attrs = V::get('xsdAttributes', [], $params, 'array');
|
|
|
$showAdvancedAttrs = V::get('showAdvancedAttrs', false, $params, 'bool');
|
|
|
$dbgFid = V::get('fid', 0, $attrs);
|
|
|
+ $isRoot = V::get('root', false, $params, 'bool');
|
|
|
$outputBlobFormat = V::get('outputBlobFormat', '', $params, 'word');
|
|
|
if(V::get('DBG_XML', '', $_GET))$xmlWriter->writeComment("DBG: print Xml Feature Recurse... '{$tagName}'" . ( $dbgFid ? " fid='{$dbgFid}'" : "" )); // TODO: DBG
|
|
|
// DBG::log($acl, 'array', "DBG: print Xml Feature Recurse( ... {$tagName}, \$acl)" . ( $dbgFid ? " fid='{$dbgFid}'" : "" ) . " \$acl");
|
|
|
@@ -420,8 +421,8 @@ class Api_Wfs_GetFeature {
|
|
|
DBG::log(">>> loop {$idZasob} => {$fldName}...");
|
|
|
$fldType = $acl->getXsdFieldType($fldName);
|
|
|
DBG::log(">>> loop '{$fldName}' xsdType: '{$fldType}'");
|
|
|
- if (!$acl->canReadObjectField($fldName, (object)$item)) if(V::get('DBG_XML', '', $_GET))$xmlWriter->writeComment("DBG: skip - !canReadObjectField('{$fldName}')"); // TODO: DBG
|
|
|
- if (!$acl->canReadObjectField($fldName, (object)$item)) continue;
|
|
|
+ if (!$acl->canReadObjectField($fldName, (object)$item)) if(V::get('DBG_XML', '', $_GET))$xmlWriter->writeComment("DBG: skip - !canReadObjectField('{$fldName}') isRoot({$isRoot})"); // TODO: DBG
|
|
|
+ if (!$acl->canReadObjectField($fldName, (object)$item) && !$isRoot) continue;
|
|
|
DBG::log(">>> loop '{$fldName}' can read...");
|
|
|
|
|
|
if ($geomFld != null && $fldName == $geomFld) {
|