This server serves fixedWidth/fixedHeight images which are indeed part of the WMS specification, but as far as I am aware, GDAL does not support them.


On 03/01/2022 21:15, Joaquim Manuel Freire Luís wrote:

Thanks. That’s right that modifying the host name prints the same size info but there is nothing in the url that permits to estimate the “Pixel Size”.

Also, this not the main issue. The main one is when passing a valid “GetMap” string that works in a browser but errors in gdal_translate.

*From:*Momtchil Momtchev <[email protected]>
*Sent:* Monday, January 3, 2022 3:08 PM
*To:* [email protected]; Joaquim Manuel Freire Luís <[email protected]>
*Subject:* Re: [gdal-dev] Experiences with the WMS driver

    gdalinfo does not contact the remote server at all, it extracts all the information it displays from the URL.

    Try replacing the hostname with something invalid, keeping all the parameters and you will still get the same output.

On 01/01/2022 19:47, Joaquim Manuel Freire Luís wrote:

    But if I do

    gdalinfo
    
"WMS:http://svs.gsfc.nasa.gov/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=3170_21483_bg&CRS=CRS:84&BBOX=-180.0,-90.0,180.0,90.0&TRANSPARENT=FALSE
    
<http://svs.gsfc.nasa.gov/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=3170_21483_bg&CRS=CRS:84&BBOX=-180.0,-90.0,180.0,90.0&TRANSPARENT=FALSE>"

    it seems to work but note the reported sizes and unreasonable
    resolution.

    Data axis to CRS axis mapping: 1,2

    Origin = (-180.000000000000000,90.000000000000000)

    Pixel Size = (0.000000335276127,-0.000000335276127)

    Image Structure Metadata:

      INTERLEAVE=PIXEL

    Corner Coordinates:

    Upper Left (-180.0000000,  90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)

    Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)

    Upper Right ( 180.0000000,  90.0000000) (180d 0' 0.00"E, 90d 0'
    0.00"N)

    Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0'
    0.00"S)

    Center      (   0.0000000,   0.0000000) (  0d 0' 0.01"E,  0d 0'
    0.01"N)

    Band 1 Block=1024x1024 Type=Byte, ColorInterp=Red

      Overviews: 536870912x268435456, 268435456x134217728,
    134217728x67108864, 67108864x33554432, 33554432x16777216,
    16777216x8388608, 8388608x4194304, 4194304x2097152,
    2097152x1048576, 1048576x524288, 524288x262144, 262144x131072,
    131072x65536, 65536x32768, 32768x16384, 16384x8192, 8192x4096,
    4096x2048, 2048x1024, 1024x512

--
Momtchil Momtchev<[email protected]>  <mailto:[email protected]>

--
Momtchil Momtchev <[email protected]>

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to