[Zoo-discuss] Fwd: [ZOO-Discuss] Problem with execute commands on local zooWPS setup

Farkas H farkas.dus at gmail.com
Tue Aug 14 08:16:26 PDT 2012


Hi Gérald,

in the Forum was a reference [8], that is to be used another .cgi
(zoo_loader_cmd.cgi) in command line mode.

The command
.\zoo_loader_cmd.cgi
"serviceprovider=&metapath=&request=GetCapabilities&service=WPS"
is working with this .cgi. You find the result here [9].

Execute commands still don't work, e.g:
.\zoo_loader_cmd.cgi
"serviceprovider=&metapath=&request=Execute&service=WPS&version=1.0.0&Identifier=ConvexHull&DataInputs=InputPolygon=Reference at xlink
:href=http%3A%2F%2Fdemo.opengeo.org
%2Fgeoserver%2Fows%3FSERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dtopp%3Astates%26SRS%3DEPSG%3A4326%26FeatureID%3Dstates.31&ResponseDocument=Result at mimeType
=text/html"

I got no result, but this Windows error-message [10].

Any ideas? Perhaps the .cgi must be recompiled.
Hope to hear from you again.

Cheers, Farkas

[8]
http://zoo-discuss.1049523.n5.nabble.com/Premature-end-of-script-headers-zoo-loader-cgi-on-Windows-tt4558052.html#a4558056

[9]
result:
Content-Type: text/xml; charset=utf-8
Status: 200 OK

<?xml version="1.0" encoding="utf-8"?>
<wps:Capabilities xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="
http://w
ww.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.opengi
s.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response
.xsd" service="WPS" version="1.0.0" xml:lang="en-CA">
  <ows:ServiceIdentification>
    <ows:Title>The Zoo WPS Development Server</ows:Title>
    <ows:Abstract>Development version of ZooWPS. See
http://www.zoo-project.org<
    /ows:Abstract>
...
    </wps:Supported>
  </wps:Languages>
</wps:Capabilities>

[10]
Problemsignatur:
  Problemereignisname:    APPCRASH
  Anwendungsname:    zoo_loader_cmd.cgi
  Anwendungsversion:    0.0.0.0
  Anwendungszeitstempel:    4c383c5d
  Fehlermodulname:    ntdll.dll
  Fehlermodulversion:    6.1.7601.17725
  Fehlermodulzeitstempel:    4ec49b8f
  Ausnahmecode:    c0000005
  Ausnahmeoffset:    000332bd
  Betriebsystemversion:    6.1.7601.2.1.0.256.48
  Gebietsschema-ID:    1031
  Zusatzinformation 1:    0a9e
  Zusatzinformation 2:    0a9e372d3b4ad19135b953a78882e789
  Zusatzinformation 3:    0a9e
  Zusatzinformation 4:    0a9e372d3b4ad19135b953a78882e789


---------- Forwarded message ----------
From: Farkas H <farkas.dus at gmail.com>
Date: 8 August 2012 19:32
Subject: Re: [Zoo-discuss] [ZOO-Discuss] Problem with execute commands on
local zooWPS setup
To: OSGeo zoo-discuss OSGeo zoo-discuss <zoo-discuss at lists.osgeo.org>


Hi Gérald,

thank you for your quick response.
The libraries gdal15.dll, libcur.dll, libfcgi.dll and python25.dll are
present in the kernel directory \OSGeo4W\bin.

You can find the result for the command  .\zoo_loader.cgi
"request=GetCapabilities&service=WPS" here [6].
However the URI "
http://localhost/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&REQUEST=GetCapabilities&SERVICE=WPS"
is working.
You can find the correct(?) browser result here [7].

Hope to here from you again.

Cheers,
Farkas

[6]
Content-Type: text/xml; charset=utf-8
Status: 200 OK


<?xml version="1.0" encoding="utf-8"?>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:xlink="htt


p://www.w3.org/1999/xlink" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.opengis.net/ows/1.1
http://schemas.opengis.net/o
ws/1.1.0/owsExceptionReport.xsd" xml:lan="en" service="WPS" version="1.0.0">
  <ows:Exception exceptionCode="MissingParameterValue">
    <ows:ExceptionText>Parameter <request> was not
specified</ows:Exceptio
nText>
  </ows:Exception>
</ows:ExceptionReport>

[7]
<?xml version="1.0" encoding="utf-8"?>
<wps:Capabilities xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="
http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd"
service="WPS" version="1.0.0" xml:lang="fr-FR">
  <ows:ServiceIdentification>
    <ows:Title>The Zoo WPS Development Server</ows:Title>
    <ows:Abstract>Development version of ZooWPS. See
http://www.zoo-project.org</ows:Abstract>
    <ows:Fees>None</ows:Fees>
    <ows:AccessConstraints>none</ows:AccessConstraints>
    <ows:Keywords>
      <ows:Keyword>WPS</ows:Keyword>
      <ows:Keyword>GIS</ows:Keyword>
      <ows:Keyword>caching</ows:Keyword>
    </ows:Keywords>
    <ows:ServiceType>WPS</ows:ServiceType>
    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
  </ows:ServiceIdentification>
  <ows:ServiceProvider>
    <ows:ProviderName>ZOO Project</ows:ProviderName>
    <ows:ProviderSite xlink:href="http://www.zoo-project.org"/>
    <ows:ServiceContact>
      <ows:IndividualName>Bernd</ows:IndividualName>
      <ows:PositionName>Developer</ows:PositionName>
      <ows:ContactInfo>
        <ows:Phone>
          <ows:Voice>False</ows:Voice>
          <ows:Facsimile>False</ows:Facsimile>
        </ows:Phone>
        <ows:Address>
          <ows:City>False</ows:City>
          <ows:AdministrativeArea>False</ows:AdministrativeArea>
          <ows:PostalCode>False</ows:PostalCode>
          <ows:Country>de</ows:Country>
          <ows:ElectronicMailAddress>bernd-dus at web.de
</ows:ElectronicMailAddress>
        </ows:Address>
      </ows:ContactInfo>
    </ows:ServiceContact>
  </ows:ServiceProvider>
  <ows:OperationsMetadata>
    <ows:Operation name="GetCapabilities">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://localhost//"/>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
    <ows:Operation name="DescribeProcess">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://localhost//"/>
          <ows:Post xlink:href="http://localhost//"/>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
    <ows:Operation name="Execute">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://localhost//"/>
          <ows:Post xlink:href="http://localhost//"/>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
  </ows:OperationsMetadata>
  <wps:ProcessOfferings>
    <wps:Process wps:processVersion="1">
      <ows:Identifier>Boundary</ows:Identifier>
      <ows:Title>Compute boundary.</ows:Title>
      <ows:Abstract>A new geometry object is created and returned
containing the boundary of the geometry on which the method is invoked.
</ows:Abstract>
      <ows:Metadata xlink:Test="Demo"/>
    </wps:Process>
    <wps:Process wps:processVersion="2">
      <ows:Identifier>Buffer</ows:Identifier>
      <ows:Title>Create a buffer around a polygon. </ows:Title>

      <ows:Abstract>Create a buffer around a single polygon. Accepts the
polygon as GML and provides GML output for the buffered feature.
</ows:Abstract>
      <ows:Metadata xlink:Test="Demo"/>
    </wps:Process>
    <wps:Process wps:processVersion="2">
      <ows:Identifier>Centroid</ows:Identifier>
      <ows:Title>Get the centroid of a polygon. </ows:Title>
      <ows:Abstract>Create a buffer around a single polygon. Accepts the
polygon as GML and provides GML output for the buffered feature.
</ows:Abstract>
      <ows:Metadata xlink:Test="Demo"/>
    </wps:Process>
    <wps:Process wps:processVersion="1">
      <ows:Identifier>ConvexHull</ows:Identifier>
      <ows:Title>Compute convex hull.</ows:Title>
      <ows:Abstract>A new geometry object is created and returned
containing the convex hull of the geometry on which the method is
invoked.</ows:Abstract>
      <ows:Metadata xlink:Test="Demo"/>
    </wps:Process>
    <wps:Process wps:processVersion="2">
      <ows:Identifier>Difference</ows:Identifier>
      <ows:Title>Compute difference. . </ows:Title>
      <ows:Abstract>Generates a new geometry which is the region of this
geometry with the region of the other geometry removed.</ows:Abstract>
      <ows:Metadata xlink:Test="Demo"/>
    </wps:Process>
    <wps:Process wps:processVersion="2">
      <ows:Identifier>Intersection</ows:Identifier>
      <ows:Title>Compute intersection. </ows:Title>
      <ows:Abstract>Generates a new geometry which is the region of
intersection of the two geometries operated on.</ows:Abstract>
      <ows:Metadata xlink:Test="Demo"/>
    </wps:Process>
    <wps:Process wps:processVersion="1">
      <ows:Identifier>Ogr2Ogr</ows:Identifier>
      <ows:Title>Convert raster data from one format to another.
</ows:Title>
      <ows:Abstract>Converts raster data between different
formats.</ows:Abstract>
      <ows:Metadata xlink:title="My Demo"/>
    </wps:Process>
    <wps:Process wps:processVersion="2">
      <ows:Identifier>SymDifference</ows:Identifier>
      <ows:Title>Compute symmetric difference. </ows:Title>
      <ows:Abstract>Generates a new geometry which is the symmetric
difference of this geometry and the other geometry.</ows:Abstract>
      <ows:Metadata xlink:Test="Demo"/>
    </wps:Process>
    <wps:Process wps:processVersion="2">
      <ows:Identifier>Union</ows:Identifier>
      <ows:Title>Compute union. </ows:Title>
      <ows:Abstract>Generates a new geometry which is the region of union
of the two geometries operated on.</ows:Abstract>
      <ows:Metadata xlink:Test="Demo"/>
    </wps:Process>
  </wps:ProcessOfferings>
  <wps:Languages>
    <wps:Default>
      <ows:Language>fr-FR</ows:Language>
    </wps:Default>
    <wps:Supported>
      <ows:Language>fr-FR</ows:Language>
      <ows:Language>en-CA</ows:Language>
    </wps:Supported>
  </wps:Languages>
</wps:Capabilities>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20120814/1d7cf2c0/attachment.html>


More information about the Zoo-discuss mailing list