[Gfoss] Errore WPS PCN su QGIS

peppecorra a libero.it peppecorra a libero.it
Ven 25 Set 2015 14:34:22 CEST


Ciao,
dal messaggio restituito sembra che l'xml della richiesta sia errato in quanto presenta un carattere inatteso.
Se, come credo, hai provato ad utilizzare il WPS-client di Qgis credo di aver trovato il problema.
Con fiddler mi sono sniffato la richiesta ed ho trovato uno spazio mancante nella sezione dei dati di input dove si specifica l'encoding :

...
<ows:Title>InputData</ows:Title>
<wps:Data>
<wps:ComplexData mimeType="text/xml; subtype=gml/3.1.1" schema="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"encoding="utf-8"><![CDATA[<ogr:FeatureCollection
...

credo che il problema sia dovuto a questo.

Ciao,
Giuseppe Corrarello.

2015-09-25 12:36 GMT+02:00 Paolo Cavallini <cavallini a faunalia.it>:
Salve.

Cerco per l'ennesima volta di usare il servizio WPS del PCN, ma non ho

felicita'. Qualcuno ci e' mai riuscito? Sapete che si possa parlare con

qualcuno per debuggarlo?

Sono l'unico che vorrebbe vederlo funzonante?

Saluti, e grazie.

===

<?xml version='1.0' encoding='UTF-8'?>

<wps:ProcessDescriptions xmlns:wps="http://www.opengis.net/wps/1.0.0"

xmlns:ows="http://www.opengis.net/ows/1.1"

xmlns:ogc="http://www.opengis.net/ogc"

xmlns:xlink="http://www.w3.org/1999/xlink"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="WPS"

version="1.0.0" xml:lang="en"

xsi:schemaLocation="http://www.opengis.net/wps/1.0.0

http://schemas.opengis.net/wps/1.0.0/wpsDescribeProcess_response.xsd">

  <ProcessDescription wps:processVersion="1.0.0" storeSupported="false"

statusSupported="false">

    <ows:Identifier>TransformCoordinates</ows:Identifier>

    <ows:Title>Servizio di Trasformazione di Coordinate - WCTS</ows:Title>

    <ows:Abstract>Il servizio di trasformazione di coordinate (WCTS, Web

Coordinate Transformation Service) è uno dei servizi di trasformazione

geometrica previsti dall’implementazione della direttiva 2007/2/CE

INSPIRE. Il servizio, messo a disposizione dal Geoportale Nazionale,

consente a tutti gli utenti di eseguire trasformazioni di coordinate

sull’intero territorio italiano impiegando i grigliati rilasciati

dall’Istituto Geografico Militare Italiano – IGM. Il servizio è basato

sul documento "Draft Technical Guidance for INSPIRE Coordinate

Transformation Services" versione 2.0 rilasciato il

07-09-2009.</ows:Abstract>



<wps:Profile>urn:ogc:wps:1.0.0:INSPIRE:Transform­Coordinates:1.0</wps:Profile>

    <DataInputs>

      <Input minOccurs="0" maxOccurs="1">

        <ows:Identifier>SourceCRS</ows:Identifier>

        <ows:Title>Sistema di riferimento in ingresso</ows:Title>

        <ows:Abstract>Indicazioni sul sistema di riferimento dei dati da

trasformare.</ows:Abstract>

        <LiteralData>

          <ows:DataType

ows:reference="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</ows:DataType>

          <ows:AllowedValues>

            <ows:Value>ED50</ows:Value>

            <ows:Value>ED50 / UTM zona 32N</ows:Value>

            <ows:Value>ED50 / UTM zona 33N</ows:Value>

            <ows:Value>ETRS89-ETRF2000</ows:Value>

            <ows:Value>ETRS89-ETRF2000 / UTM zona 32N</ows:Value>

            <ows:Value>ETRS89-ETRF2000 / UTM zona 33N</ows:Value>

            <ows:Value>ETRS89-ETRF89</ows:Value>

            <ows:Value>ETRS89-ETRF89 / UTM zona 32N</ows:Value>

            <ows:Value>ETRS89-ETRF89 / UTM zona 33N</ows:Value>

            <ows:Value>Roma 1940</ows:Value>

            <ows:Value>Roma 1940 / Italia zona 1</ows:Value>

            <ows:Value>Roma 1940 / Italia zona 2</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:3003</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:3004</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:4230</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:4258</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:4265</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:4326</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:23032</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:23033</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:25832</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:25833</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:32632</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:32633</ows:Value>

          </ows:AllowedValues>

          <DefaultValue>urn:ogc:def:crs:EPSG:6.12:4258</DefaultValue>

        </LiteralData>

      </Input>

      <Input minOccurs="0" maxOccurs="1">

        <ows:Identifier>TargetCRS</ows:Identifier>

        <ows:Title>Sistema di riferimento in uscita</ows:Title>

        <ows:Abstract>Indicazioni sul sistema di riferimento dei dati

trasformati.</ows:Abstract>

        <LiteralData>

          <ows:DataType

ows:reference="http://www.w3.org/TR/xmlschema-2/#anyURI">anyURI</ows:DataType>

          <ows:AllowedValues>

            <ows:Value>ED50</ows:Value>

            <ows:Value>ED50 / UTM zona 32N</ows:Value>

            <ows:Value>ED50 / UTM zona 33N</ows:Value>

            <ows:Value>ETRS89-ETRF2000</ows:Value>

            <ows:Value>ETRS89-ETRF2000 / UTM zona 32N</ows:Value>

            <ows:Value>ETRS89-ETRF2000 / UTM zona 33N</ows:Value>

            <ows:Value>ETRS89-ETRF89</ows:Value>

            <ows:Value>ETRS89-ETRF89 / UTM zona 32N</ows:Value>

            <ows:Value>ETRS89-ETRF89 / UTM zona 33N</ows:Value>

            <ows:Value>Roma 1940</ows:Value>

            <ows:Value>Roma 1940 / Italia zona 1</ows:Value>

            <ows:Value>Roma 1940 / Italia zona 2</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:3003</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:3004</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:4230</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:4258</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:4265</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:4326</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:23032</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:23033</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:25832</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:25833</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:32632</ows:Value>

            <ows:Value>urn:ogc:def:crs:EPSG:6.12:32633</ows:Value>

          </ows:AllowedValues>

          <DefaultValue>urn:ogc:def:crs:EPSG:6.12:4258</DefaultValue>

        </LiteralData>

      </Input>

      <Input minOccurs="0" maxOccurs="1">

        <ows:Identifier>TestTransformation</ows:Identifier>

        <ows:Title>Modo dell'operazione</ows:Title>

        <ows:Abstract>Indicazione sulla modalità di esecuzione

dell'operazione: se il parametro "TestTransformation" è impostato a

'false' è eseguita la trasformazione altrimenti, se il parametro è

impostato a 'true', l'operazione è solo testata.</ows:Abstract>

        <LiteralData>

          <ows:DataType

ows:reference="http://www.w3.org/TR/xmlschema-2/#boolean">boolean</ows:DataType>

          <ows:AllowedValues>

            <ows:Value>true</ows:Value>

            <ows:Value>false</ows:Value>

          </ows:AllowedValues>

          <DefaultValue>false</DefaultValue>

        </LiteralData>

      </Input>

      <Input minOccurs="1" maxOccurs="1">

        <ows:Identifier>InputData</ows:Identifier>

        <ows:Title>Dataset in ingresso in formato GML</ows:Title>

        <ows:Abstract>Dataset in ingresso in formato GML conforme allo

standard OGC GML Simple Feature (SF).</ows:Abstract>

        <ComplexData maximumMegabytes="5">

          <Default>

            <Format>

              <MimeType>text/xml; subtype=gml/3.1.1</MimeType>

              <Encoding>UTF-8</Encoding>



<Schema>http://schemas.opengis.net/gml/3.1.1/base/gml.xsd</Schema>

            </Format>

          </Default>

          <Supported>

            <Format>

              <MimeType>text/xml; subtype=gml/3.1.1</MimeType>

              <Encoding>UTF-8</Encoding>



<Schema>http://schemas.opengis.net/gml/3.1.1/base/gml.xsd</Schema>

            </Format>

            <Format>

              <MimeType>text/xml; subtype=gml/2.1.2</MimeType>

              <Encoding>UTF-8</Encoding>



<Schema>http://schemas.opengis.net/gml/2.1.2/geometry.xsd</Schema>

            </Format>

            <Format>

              <MimeType>text/xml; subtype=gml/3.0.1</MimeType>

              <Encoding>UTF-8</Encoding>



<Schema>http://schemas.opengis.net/gml/3.0.1/base/gml.xsd</Schema>

            </Format>

            <Format>

              <MimeType>text/xml; subtype=gml/3.2.1</MimeType>

              <Encoding>UTF-8</Encoding>

              <Schema>http://schemas.opengis.net/gml/3.2.1/gml.xsd</Schema>

            </Format>

          </Supported>

        </ComplexData>

      </Input>

    </DataInputs>

    <ProcessOutputs>

      <Output>

        <ows:Identifier>TransformedData</ows:Identifier>

        <ows:Title>Dataset trasformato</ows:Title>

        <ows:Abstract>Dati in formato GML rappresentanti il dataset

risultante dalla trasformazione.</ows:Abstract>

        <ComplexOutput>

          <Default>

            <Format>

              <MimeType>text/xml; subtype=gml/3.1.1</MimeType>

              <Encoding>UTF-8</Encoding>



<Schema>http://schemas.opengis.net/gml/3.1.1/base/gml.xsd</Schema>

            </Format>

          </Default>

          <Supported>

            <Format>

              <MimeType>text/xml; subtype=gml/3.1.1</MimeType>

              <Encoding>UTF-8</Encoding>



<Schema>http://schemas.opengis.net/gml/3.1.1/base/gml.xsd</Schema>

            </Format>

            <Format>

              <MimeType>text/xml; subtype=gml/2.1.2</MimeType>

              <Encoding>UTF-8</Encoding>



<Schema>http://schemas.opengis.net/gml/2.1.2/geometry.xsd</Schema>

            </Format>

            <Format>

              <MimeType>text/xml; subtype=gml/3.0.1</MimeType>

              <Encoding>UTF-8</Encoding>



<Schema>http://schemas.opengis.net/gml/3.0.1/base/gml.xsd</Schema>

            </Format>

            <Format>

              <MimeType>text/xml; subtype=gml/3.2.1</MimeType>

              <Encoding>UTF-8</Encoding>

              <Schema>http://schemas.opengis.net/gml/3.2.1/gml.xsd</Schema>

            </Format>

          </Supported>

        </ComplexOutput>

      </Output>

    </ProcessOutputs>

  </ProcessDescription>

</wps:ProcessDescriptions>

Post URL=PyQt4.QtCore.QUrl(u'http://wms.pcn.minambiente.it/wps?')

<?xml version='1.0' encoding='UTF-8'?>

<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/ows/1.1

http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"

version="1.1.0">

  <ows:Exception exceptionCode="InvalidRequest">

    <ows:ExceptionText>com.ctc.wstx.exc.WstxUnexpectedCharException:

Unexpected character 'e' (code 101) excepted space, or '>' or "/>"&#xd;

 at [row,col,system-id]: [8,115,"HTTP Post request from

95.253.123.217:62606"]</ows:ExceptionText>

  </ows:Exception>

</ows:ExceptionReport>





--

Paolo Cavallini - www.faunalia.eu

QGIS & PostGIS courses: http://www.faunalia.eu/training.html

_______________________________________________

Gfoss a lists.gfoss.it

http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss

Questa e' una lista di discussione pubblica aperta a tutti.

I messaggi di questa lista non hanno relazione diretta con le posizioni dell'Associazione GFOSS.it.

750 iscritti al 18.3.2015
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.gfoss.it/pipermail/gfoss/attachments/20150925/31d3c07f/attachment-0001.html>


Maggiori informazioni sulla lista Gfoss