[gdal-dev] Problems with WMS minidriver

Federico federicojurio at suremptec.com.ar
Tue Apr 28 07:19:48 PDT 2015


Hi guys, i'm trying to get a wmts layer but i'm getting an error. I think
that i'm doing something wrong but i don't what's wrong.

URL: http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts
GetCapabilities:
http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?service=WMTS&request=GetCapabilities
Tile from WMTS:
http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=matrikkel_bakgrunn&STYLE=default&FORMAT=image/png&TILEMATRIXSET=EPSG:4326&TILEMATRIX=EPSG:4326:1&TILEROW=0&TILECOL=2

*My XML file*
<GDAL_WMS>
	<Service name="TMS">
		<Version>1.0.0</Version>
	
<ServerUrl>http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts/lyrs=matrikkel_bakgrunn&x=${x}&y=${y}&z=${z}</ServerUrl>
	</Service>
	<DataWindow>
		<UpperLeftX>180.0</UpperLeftX>
		<UpperLeftY>90.0</UpperLeftY>
		<LowerRightX>-180.0</LowerRightX>
		<LowerRightY>-90.0</LowerRightY>
		<TileLevel>20</TileLevel>
		<TileCountX>1</TileCountX>
		<TileCountY>1</TileCountY>
		<YOrigin>top</YOrigin>
	</DataWindow>
	<Projection>EPSG:4326</Projection>
	<BlockSizeX>256</BlockSizeX>
	<BlockSizeY>256</BlockSizeY>
	<BandsCount>3</BandsCount>
	<MaxConnections>5</MaxConnections>
	<Cache />
</GDAL_WMS>

*gdalinfo from the file*
Driver: WMS/OGC Web Map Service
Files: none associated
Size is 268435456, 268435456
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0,
        AUTHORITY["EPSG","8901"]],
    UNIT["degree",0.0174532925199433,
        AUTHORITY["EPSG","9122"]],
    AUTHORITY["EPSG","4326"]]
Origin = (180.000000000000000,90.000000000000000)
Pixel Size = (-0.000001341104507,-0.000000670552254)
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  ( 180.0000000,  90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
Lower Left  ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
Upper Right (-180.0000000,  90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
Lower Right (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
Center      (   0.0000000,   0.0000000) (  0d 0' 0.01"E,  0d 0' 0.01"N)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
  Overviews: 134217728x134217728, 67108864x67108864, 33554432x33554432,
16777216x16777216, 8388608x8388608, 4194304x4194304, 2097152x2097152,
1048576x1048576, 524288x524288, 262144x262144, 131072x131072, 65536x65536,
32768x32768, 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024,
512x512, 256x256
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
  Overviews: 134217728x134217728, 67108864x67108864, 33554432x33554432,
16777216x16777216, 8388608x8388608, 4194304x4194304, 2097152x2097152,
1048576x1048576, 524288x524288, 262144x262144, 131072x131072, 65536x65536,
32768x32768, 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024,
512x512, 256x256
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
  Overviews: 134217728x134217728, 67108864x67108864, 33554432x33554432,
16777216x16777216, 8388608x8388608, 4194304x4194304, 2097152x2097152,
1048576x1048576, 524288x524288, 262144x262144, 131072x131072, 65536x65536,
32768x32768, 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024,
512x512, 256x256

*gdal_translate from the file*
C:\>gdal_translate -of JPEG -outsize 256 256 a.xml a.jpeg
Input file size is 268435456, 268435456
0ERROR 1: GDALWMS: The server returned exception: [5][Gatekeeper]
Gatekeeper logon avvist av BAAT.

ERROR 1: a.xml, band 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problems-with-WMS-minidriver-tp5203330.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list