|
|
@@ -107,7 +107,36 @@ class Route_WfsJsRequestPanel extends RouteBase {
|
|
|
echo UI::h('textarea', [ 'id' => 'wfsRequestBody', 'style' => "width:100%; height:300px" ], htmlspecialchars($exampleWfsRequestBody));
|
|
|
echo UI::h('button', [ 'class' => "btn btn-primary", 'onClick' => "return sendWfsRequest(this)" ], "Wyslij");
|
|
|
echo UI::h('div', [ 'style' => "display:inline", 'id' => "wfs-example-btns" ]);
|
|
|
- echo UI::h('pre', [ 'id' => 'wfsResponse' ], 'loading...');
|
|
|
+ echo UI::h('details', [ 'style' => "padding:6px; background-color:#333; color:#fff", 'open' => "open" ], [
|
|
|
+ UI::h('summary', [ 'style' => "padding:0 3px; outline:none; cursor:pointer" ], "WFS Response"),
|
|
|
+ UI::h('pre', [ 'id' => 'wfsResponse', 'style' => "margin:0; font-size:x-small; border-radius:0" ], 'loading...'),
|
|
|
+ ]);
|
|
|
+ echo UI::h('details', [ 'style' => "padding:6px; background-color:#68cbfd; color:#fff" ], [
|
|
|
+ UI::h('summary', [ 'style' => "padding:0 3px; outline:none; cursor:pointer" ], [
|
|
|
+ UI::h('i',[ 'class' => "glyphicon glyphicon-question-sign" ]),
|
|
|
+ " WFS 1.1, 2.0 fetch nested objects (traverse, resolve)",
|
|
|
+ ]),
|
|
|
+ UI::h('pre', ['style' => "margin:0; font-size:x-small; border-radius:0"], implode("\n", [
|
|
|
+ "WFS 1.1 - traverseXlinkDepth, traverseXlinkExpiry " . UI::h('a', ['href'=>"http://docs.opengeospatial.org/is/04-094r1/04-094r1.html#50"], "http://docs.opengeospatial.org/is/04-094r1/04-094r1.html#50"),
|
|
|
+ "WFS 2.0 - resolve, resolveDepth, resolveTimeout " . UI::h('a', ['href'=>"http://docs.opengeospatial.org/is/09-025r2/09-025r2.html#57"], "http://docs.opengeospatial.org/is/09-025r2/09-025r2.html#57"),
|
|
|
+ "",
|
|
|
+ "WFS 1.1 traverseXlinkDepth type=\"string\" ('*' or int > 0) - recurse limit ('*' - no limit)",
|
|
|
+ "WFS 1.1 traverseXlinkExpiry type=\"xsd:positiveInteger\" - timeOut in minutes",
|
|
|
+ "WFS 1.1 Note: traverse used in wfs:GetFeature or inside wfs:Query tag wfs:XlinkPropertyName (same like wfs:PropertyName but with @traverse* attributes)",
|
|
|
+ "",
|
|
|
+ "WFS 2.0 resolve type=\"wfs:ResolveValueType\" default=\"none\" (enum: 'local', 'remote', 'all', 'none')",
|
|
|
+ " - resolve=\"local\" - operation shall only resolve local references",
|
|
|
+ " - resolve=\"remote\" - operation shall only resolve remote resource references",
|
|
|
+ " - resolve=\"all\" - means that an operation shall resolve all resource references",
|
|
|
+ " - resolve=\"none\" - means that an operation shall not resolve any resource references",
|
|
|
+ "WFS 2.0 resolveDepth type=\"wfs:positiveIntegerWithStar\" default=\"*\" ('*' or int > 0) - recurse limit ('*' - no limit)",
|
|
|
+ "WFW 2.0 resolveTimeout type=\"xsd:positiveInteger\" default=\"300\" - timeOut in seconds",
|
|
|
+ "WFS 2.0 Note: resolve used in wfs:GetFeature or inside wfs:Query tag wfs:PropertyName",
|
|
|
+ " in wfs:PropertyName may use resolvePath - @see " . UI::h('a', ['href'=>"http://docs.opengeospatial.org/is/09-025r2/09-025r2.html#103"], "http://docs.opengeospatial.org/is/09-025r2/09-025r2.html#103"),
|
|
|
+ "",
|
|
|
+ "WFS 2.0 resolve, resolveDepth example " . UI::h('a', ['href'=>"http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.ogc/ogc-schemas/2.2.0/ogc/wfs/2.0/examples/GetFeature/GetFeature_12.xml"], "http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.ogc/ogc-schemas/2.2.0/ogc/wfs/2.0/examples/GetFeature/GetFeature_12.xml"),
|
|
|
+ ])),
|
|
|
+ ]);
|
|
|
UI::endContainer();
|
|
|
$examples = array_map(function ($props) use ($exampleFltr) {
|
|
|
return "<wfs:Query>" . implode("\n", array_merge($props, $exampleFltr)) . "</wfs:Query>";
|