[gdal-dev] GMLAS does not resolve schema from WFS data
Even Rouault
even.rouault at spatialys.com
Wed Jan 18 03:02:54 PST 2017
On mercredi 18 janvier 2017 10:52:28 CET Rahkonen Jukka (MML) wrote:
> Hi,
>
> I downloaded one CadastralParcel from an INSPIRE service with curl
>
> curl -k -o inspire-cp.gml
> "https://inspire-wfs.maanmittauslaitos.fi/inspire-wfs/cp?service=WFS&versio
> n=2.0.0&request=GetFeature&TypeNames=cp:CadastralParcel&count=1"
>
> Then I tried to check what I have with ogrinfo but it fails
>
> ogrinfo GMLAS:inspire-cp.gml
>
> ERROR 3: Cannot resolve
> https://inspire-wfs.maanmittauslaitos.fi/inspire-wfs/cp?
>
SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&OUTPUTFORMAT=applicat
> ion%2
> Fgml%2Bxml%3B+version
%3D3.2&TYPENAME=cp:CadastralParcel&NAMESPACES=xmlns(cp
> ,http %3A%2F%2Finspire.ec.europa.eu%2Fschemas%2Fcp%2F4.0)
>
> However, the DescribeFeatureType is successful when I copy-paste it into
> browser. I wonder what goes wrong. I had to use "-k" with curl to bypass a
> problem with certificate and therefore I tried also to set unsafe SSL for
> GDAL with "set GDAL_HTTP_UNSAFESSL=YES" but that did not change anything.
I don't reproduce this issue on Ubuntu 16.04. You can try adding --config
CPL_CURL_VERBOSE YES to get more low level details about what goes wrong
But I get other errors :
$ ogrinfo gmlas:inspire-cp.gml
ERROR 1: /vsicurl_streaming/https://inspire-wfs.maanmittauslaitos.fi/inspire-wfs/cp?
SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&OUTPUTFORMAT=applicati
on%2Fgml%2Bxml%3B+version%3D3.2&NAMESPACE=xmlns%28http%3A%2F
%2Finspire.ec.europa.eu%2Fschemas%2Fau%2F4.0%29:11:73 namespace 'http://
inspire.ec.europa.eu/schemas/base/3.3' is referenced without import declaration
ERROR 1: /vsicurl_streaming/https://inspire-wfs.maanmittauslaitos.fi/inspire-wfs/cp?
SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&OUTPUTFORMAT=applicati
on%2Fgml%2Bxml%3B+version%3D3.2&NAMESPACE=xmlns%28http%3A%2F
%2Finspire.ec.europa.eu%2Fschemas%2Fau%2F4.0%29:114:73 namespace 'http://
inspire.ec.europa.eu/schemas/base/3.3' is referenced without import declaration
[...]
The schema at https://inspire-wfs.maanmittauslaitos.fi/inspire-wfs/cp?
SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&OUTPUTFORMAT=applicati
on%2Fgml%2Bxml%3B+version%3D3.2&NAMESPACE=xmlns(http%3A%2F
%2Finspire.ec.europa.eu%2Fschemas%2Fau%2F4.0) indeed references namespaces without
importing them (except GML). It indeed looks invalid to me.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170118/a8f559c1/attachment.html>
More information about the gdal-dev
mailing list