|
|
@@ -300,6 +300,7 @@ function describeProcess() {
|
|
|
process = new OpenLayers.Format.WPSDescribeProcess().read(
|
|
|
response.responseText
|
|
|
).processDescriptions[selection];
|
|
|
+ console.log("Process:", process);
|
|
|
buildForm();
|
|
|
}
|
|
|
});
|
|
|
@@ -667,9 +668,9 @@ class WpsServer {
|
|
|
</ows:OperationsMetadata>
|
|
|
<wps:ProcessOfferings>
|
|
|
<wps:Process wps:processVersion="1.0.0">
|
|
|
- <ows:Identifier>pozdrawiam</ows:Identifier>
|
|
|
- <ows:Title>Area</ows:Title>
|
|
|
- <ows:Abstract>Returns the area of a geometry, in the units of the geometry. Assumes a Cartesian plane, so this process is only recommended for non-geographic CRSes.</ows:Abstract>
|
|
|
+ <ows:Identifier>przypiszDoRekordu</ows:Identifier>
|
|
|
+ <ows:Title>Przypisz</ows:Title>
|
|
|
+ <ows:Abstract>Przypisuje położenie do wybranego rekordu w tabeli.</ows:Abstract>
|
|
|
</wps:Process>
|
|
|
</wps:ProcessOfferings>
|
|
|
<wps:Languages>
|
|
|
@@ -696,9 +697,9 @@ class WpsServer {
|
|
|
?>
|
|
|
<wps:ProcessDescriptions xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
|
|
|
<ProcessDescription wps:processVersion="1.0.0" statusSupported="true" storeSupported="true">
|
|
|
- <ows:Identifier>JTS:densify</ows:Identifier>
|
|
|
- <ows:Title>Densify</ows:Title>
|
|
|
- <ows:Abstract>Returns a spatially equivalent geometry with vertices added to ensure line segments are no longer than a given distance.</ows:Abstract>
|
|
|
+ <ows:Identifier>przypiszDoRekordu</ows:Identifier>
|
|
|
+ <ows:Title>Przypisz</ows:Title>
|
|
|
+ <ows:Abstract>Przypisuje położenie do wybranego rekordu w tabeli.</ows:Abstract>
|
|
|
<DataInputs>
|
|
|
<Input maxOccurs="1" minOccurs="1">
|
|
|
<ows:Identifier>geom</ows:Identifier>
|
|
|
@@ -730,11 +731,20 @@ class WpsServer {
|
|
|
</ComplexData>
|
|
|
</Input>
|
|
|
<Input maxOccurs="1" minOccurs="1">
|
|
|
- <ows:Identifier>distance</ows:Identifier>
|
|
|
- <ows:Title>distance</ows:Title>
|
|
|
+ <ows:Identifier>idTable</ows:Identifier>
|
|
|
+ <ows:Title>idTabele</ows:Title>
|
|
|
<ows:Abstract>The maximum segment length in the result, in the units of the geometry</ows:Abstract>
|
|
|
<LiteralData>
|
|
|
- <ows:DataType>xs:double</ows:DataType>
|
|
|
+ <ows:DataType>xs:integer</ows:DataType>
|
|
|
+ <ows:AnyValue />
|
|
|
+ </LiteralData>
|
|
|
+ </Input>
|
|
|
+ <Input maxOccurs="1" minOccurs="1">
|
|
|
+ <ows:Identifier>idObject</ows:Identifier>
|
|
|
+ <ows:Title>idObject</ows:Title>
|
|
|
+ <ows:Abstract>The maximum segment length in the result, in the units of the geometry</ows:Abstract>
|
|
|
+ <LiteralData>
|
|
|
+ <ows:DataType>xs:integer</ows:DataType>
|
|
|
<ows:AnyValue />
|
|
|
</LiteralData>
|
|
|
</Input>
|
|
|
@@ -774,3 +784,49 @@ class WpsServer {
|
|
|
<?php
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+if ('WPS' == V::get('SERVICE', '', $_GET)) {
|
|
|
+
|
|
|
+ $req = V::get('REQUEST', '', $_GET);
|
|
|
+ $methodName = "request{$req}";
|
|
|
+ echo($methodName);
|
|
|
+ if (method_exists($wfsSService, $methodName)) {
|
|
|
+ // $wfsSService->$methodName();
|
|
|
+ } else {
|
|
|
+ // err
|
|
|
+ }
|
|
|
+}
|
|
|
+else {
|
|
|
+ $entityBody = file_get_contents('php://input');
|
|
|
+ //echo "3";
|
|
|
+ if (!empty($entityBody)) {
|
|
|
+ $xml = new DOMDocument();
|
|
|
+ $xml->loadXML($entityBody);
|
|
|
+ //print_r($xml);
|
|
|
+ $locationNode = $xml->getElementsByTagNameNS("http://www.opengis.net/wps/1.0.0","ComplexData");
|
|
|
+ //print_r($locationNode);
|
|
|
+ $location = $locationNode[0];
|
|
|
+ echo $location;
|
|
|
+ //echo $entityBody;
|
|
|
+ // echo ("22233");
|
|
|
+ // echo($location[0]);
|
|
|
+ //print_r();
|
|
|
+ // parse xml
|
|
|
+ // $wfsSService->parseXmlPostRequest($entityBody);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+class WFSService {
|
|
|
+ public function parseXmlPostRequest($xmlReq) {
|
|
|
+ }
|
|
|
+
|
|
|
+ public function requestGetCapabilities() {
|
|
|
+ ?>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+
|
|
|
+ public function requestGetProcess() {// inne funkcje
|
|
|
+
|
|
|
+ }
|
|
|
+}
|