[gdal-dev] Invalid dataset dimensions : -2147483648 x -2147483648 Error While using gdalinfo

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] Invalid dataset dimensions : -2147483648 x -2147483648 Error While using gdalinfo

san619
Im getting a error message : "Invalid dataset dimensions : -2147483648 x
-2147483648" while using gdalinfo for a wmts url.What is the reason for the
error.How to resolve this.The WMTS Url used is :
"https://services.arcgisonline.com/arcgis/rest/services/Polar/Arctic_Ocean_Base/MapServer/WMTS/1.0.0/WMTSCapabilities.xml".



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Invalid dataset dimensions : -2147483648 x -2147483648 Error While using gdalinfo

jratike80
Hi,

Works for me with GDAL GDAL 3.0.4

gdalinfo
https://services.arcgisonline.com/arcgis/rest/services/Polar/Arctic_Ocean_Base/MapServer/WMTS/1.0.0/WMTSCapabilities.xml
Driver: WMTS/OGC Web Map Tile Service
Files: none associated
Size is 1073741823, 1073741823
Coordinate System is:
PROJCRS["WGS 84 / EPSG Alaska Polar Stereographic",
...

-Jukka Rahkonen-



san619 wrote

> Im getting a error message : "Invalid dataset dimensions : -2147483648 x
> -2147483648" while using gdalinfo for a wmts url.What is the reason for
> the
> error.How to resolve this.The WMTS Url used is :
> "https://services.arcgisonline.com/arcgis/rest/services/Polar/Arctic_Ocean_Base/MapServer/WMTS/1.0.0/WMTSCapabilities.xml".
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
> _______________________________________________
> gdal-dev mailing list

> gdal-dev@.osgeo

> https://lists.osgeo.org/mailman/listinfo/gdal-dev





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Invalid dataset dimensions : -2147483648 x -2147483648 Error While using gdalinfo

san619
Thank You So much for the quick reply.I was using GDAL 2.3.2.When I updated
to GDAL 3.0.4 the issue is resolved.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Invalid dataset dimensions : -2147483648 x -2147483648 Error While using gdalinfo

san619
In reply to this post by jratike80
But in some cases im not getting the extent of the layer.What could be the
reason.I tried in both versions 2.3.2 and 3.0.4.But still same,extent is
empty in the output.

WMS layer :
http://services.ga.gov.au/gis/services/NEXIS_Agricultural_Exposure/MapServer/WMSServer?request=GetCapabilities&service=WMS

JSON output:
{
 
"description":"http:\/\/services.ga.gov.au\/gis\/services\/NEXIS_Agricultural_Exposure\/MapServer\/WMSServer?request=GetCapabilities&service=WMS",
  "driverShortName":"WMS",
  "driverLongName":"OGC Web Map Service",
  "files":[
  ],
  "size":[
    512,
    512
  ],
  "coordinateSystem":{
    "wkt":""
  },
  "metadata":{
    "SUBDATASETS":{
     
"SUBDATASET_1_NAME":"WMS:http:\/\/services.ga.gov.au\/gis\/services\/NEXIS_Agricultural_Exposure\/MapServer\/WmsServer?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NEXIS_Agricultural_Exposure_LGA&SRS=EPSG:4326&BBOX=96.816941,-43.740510,159.109219,-9.142176",
      "SUBDATASET_1_DESC":"NEXIS Agricultural Exposure LGA",
     
"SUBDATASET_2_NAME":"WMS:http:\/\/services.ga.gov.au\/gis\/services\/NEXIS_Agricultural_Exposure\/MapServer\/WmsServer?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NEXIS_Agricultural_Exposure_SA1&SRS=EPSG:4326&BBOX=96.816941,-43.740510,159.109219,-9.142176",
      "SUBDATASET_2_DESC":"NEXIS Agricultural Exposure SA1"
    }
  },
  "cornerCoordinates":{
    "upperLeft":[
      0.0,
      0.0
    ],
    "lowerLeft":[
      0.0,
      512.0
    ],
    "lowerRight":[
      512.0,
      512.0
    ],
    "upperRight":[
      512.0,
      0.0
    ],
    "center":[
      256.0,
      256.0
    ]
  },
  "extent":{
    "type":"Polygon",
    "coordinates":[
      [
      ]
    ]
  },
  "bands":[
  ]
}





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Invalid dataset dimensions : -2147483648 x -2147483648 Error While using gdalinfo

Even Rouault-2
On mardi 17 mars 2020 05:57:54 CET san619 wrote:
> But in some cases im not getting the extent of the layer.What could be the
> reason.I tried in both versions 2.3.2 and 3.0.4.But still same,extent is
> empty in the output.
>
> WMS layer :
> http://services.ga.gov.au/gis/services/NEXIS_Agricultural_Exposure/MapServer
> /WMSServer?request=GetCapabilities&service=WMS
>
> JSON output:

This service exposes 2 WMS layers, which are reported as 2 GDAL subdatasets by
the top-level GDAL dataset. So you need to open then the dataset names pointed
by SUBDATASET_1_NAME or SUBDATASET_2_NAME to get datasets with raster content.

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev