|
|
@@ -109,6 +109,8 @@ class Api_WfsServerBase {
|
|
|
$args['wfs:featureID'] = null;// @from: featureID, featureId (featureid)
|
|
|
$args['primaryKey'] = null;// primaryKey type - @from: featureID or $req[primaryKey]
|
|
|
$args['outputBlobFormat'] = V::get('outputBlobFormat', 'base64', $rawArgs); // how to print blob fields ('base64', 'link') - default base64
|
|
|
+ $args['resolve'] = V::get('resolve', '', $rawArgs);
|
|
|
+ $args['resolveDepth'] = V::get('resolveDepth', 0, $rawArgs, 'int'); // TODO: if ('*' === resolveDepth) - recurse resolve
|
|
|
|
|
|
$lowerArgs = array(); foreach ($rawArgs as $name => $value) $lowerArgs[ strtolower($name) ] = trim($value);
|
|
|
|
|
|
@@ -139,6 +141,8 @@ class Api_WfsServerBase {
|
|
|
$args['filterFields'][] = $fieldXpath;
|
|
|
}
|
|
|
}
|
|
|
+ } else if ($args['resolve'] && $args['resolveDepth'] > 0) {
|
|
|
+ $args['filterFields'][] = '*' . str_repeat("/*", $args['resolveDepth'] - 1);
|
|
|
}
|
|
|
}
|
|
|
|