[gdal-dev] gdal_translate ERROR 4 - "does not exist in the file system, and is not recognised as a supported dataset name."

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Fri Dec 29 12:06:25 PST 2017


MökinMuori wrote
> I am trying to create a gdal_wmts.xml following the instructions from
> http://mapserver.org/ar/mapcache/sources.html
> 
> Execution of the following command ends up in the error below. What's
> wrong?
> I've tried with single quotation marks instead of double etc. but no
> use...
> 
> gdal_translate "WMTS:https://my_wmts_url_is_here,layer=layer_name"
> gdal_wmts.xml -of WMTS --config GDAL_HTTP_AUTH BASIC --config
> GDAL_HTTP_USERPWD "
> <user_name:passwd>
> "
> 
> ERROR 4: `WMTS:https://my_wmts_url_is_here,layer=layer_name'
> does not exist in the file system,
> and is not recognised as a supported dataset name.
> 
> GDALOpen failed - 4
> `WMTS:https://my_wmts_url_is_here,layer=layer_name' does not exist in the
> file system,
> and is not recognised as a supported dataset name.


Works for me with GDAL 2.3.0dev, released 2017/99/99 from gisinternals.com.

gdal_translate
"WMTS:https://karttakuva.maanmittauslaitos.fi/maasto/wmts/1.0.0/WMTSCapabilities.xml,layer=korkeusmalli_vinovalo"
gdal_wmts.xml -of WMTS --config GDAL_HTTP_AUTH BASIC --config
GDAL_HTTP_USERPWD "user:password"

Result:
Input file size is 8388608, 8388608

The XML file that gets created:

<GDAL_WMTS>
 
<GetCapabilitiesUrl>https://karttakuva.maanmittauslaitos.fi/maasto/wmts/1.0.0/WMTSCapabilities.xml</GetCapabilitiesUrl>
  <Layer>korkeusmalli_vinovalo</Layer>
  
  <TileMatrixSet>ETRS-TM35FIN</TileMatrixSet>
  <DataWindow>
    <UpperLeftX>-548576</UpperLeftX>
    <UpperLeftY>8388608</UpperLeftY>
    <LowerRightX>1548576</LowerRightX>
    <LowerRightY>6291456</LowerRightY>
  </DataWindow>
  <BandsCount>4</BandsCount>
  <Cache />
  <UnsafeSSL>true</UnsafeSSL>
  <ZeroBlockHttpCodes>204,404</ZeroBlockHttpCodes>
  <ZeroBlockOnServerException>true</ZeroBlockOnServerException>
</GDAL_WMTS>

Before using that file for your needs you can add basic auth to the XML as
  <UserPwd>user:password</UserPwd>

-Jukka Rahkonen-



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list