Thanks, I added CPl_CURL_VERBOSE but I do not quite understand what it tries to tell me. GDAL seems to reach the deegree WFS server but then "* no chunk, no close, no size. Assume close to signal end" * Couldn't find host inspire-wfs.maanmittauslaitos.fi in the _netrc file; using defaults * timeout on name lookup is not supported * Hostname was NOT found in DNS cache * Trying 10.37.213.18... * Connected to inspire-wfs.maanmittauslaitos.fi (10.37.213.18) port 443 (#0) * libcurl is now using a weak random seed! * SSL connection using TLSv1.2 / DHE-RSA-AES256-GCM-SHA384 * Server certificate: * subject: C=FI; ST=Finland; L=HELSINKI; O=Maanmittauslaitos; OU=Mitpa; CN=*.maanmittauslaitos.fi * start date: 2016-10-11 00:00:00 GMT * expire date: 2019-10-11 23:59:59 GMT * issuer: C=US; O=thawte, Inc.; CN=thawte SSL CA - G2 * SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway. > GET > /inspire-wfs/cp?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&OUTPUTFORMAT=application%2Fgml%2Bxml%3B+version%3D3.2&TYPENAME=cp:CadastralParcel&NAMESPACES=xmlns(cp,http%3A%2F%2Finspire.ec.europa.eu%2Fschemas%2Fcp%2F4.0) > HTTP/1.1
Host: inspire-wfs.maanmittauslaitos.fi Accept: */* Accept-Encoding: gzip < HTTP/1.1 200 OK * Server Apache-Coyote/1.1 is not blacklisted < Server: Apache-Coyote/1.1 < Cache-Control: no-cache, no-store < deegree-version: 3.3.18 < Content-Type: text/xml;charset=UTF-8 < Date: Wed, 18 Jan 2017 11:11:18 GMT * no chunk, no close, no size. Assume close to signal end < * Closing connection 0 ERROR 3: Cannot resolve https://inspire-wfs.maanmittauslaitos.fi/inspire-wfs/cp?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&OUTPUTFORMAT=application%2Fgml%2Bxml%3B+version%3D3.2&TYPENAME=cp:CadastralParcel&NAMESPACES=xmlns(cp,http%3A%2F%2Finspire.ec.europa.eu%2Fschemas%2Fcp%2F4.0) -Jukka- Even Rouault wrote: Re: [gdal-dev] GMLAS does not resolve schema from WFS data 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=application%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=application%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=application%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
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev