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
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to