[mapserver-users] Mapserver - cascading a remote ESRI REST service

Robert Sanson Robert.Sanson at asurequality.com
Tue Apr 26 16:16:20 PDT 2016


Hi

I am trying to cascade a remote ESRI REST image service via my Mapserver mapfile.

Here is my XML file:

<GDAL_WMS>
  <Service name="AGS">
    <ServerUrl>
      http://maps.six.nsw.gov.au/arcgis/rest/services/sixmaps/LPI_Imagery_Best/MapServer
    </ServerUrl>
    <BBoxOrder>xyXY</BBoxOrder>
    <SRS>3857</SRS>
    <ImageFormat>image/jpeg</ImageFormat>
  </Service>
  <DataWindow>
    <UpperLeftX>1.53E7</UpperLeftX>
    <UpperLeftY>-2950000.0</UpperLeftY>
    <LowerRightX>1.781E7</LowerRightX>
    <LowerRightY>-5070000.0</LowerRightY>
    <SizeX>256</SizeX><SizeY>256</SizeY>
  </DataWindow>
</GDAL_WMS>

Here is my mapfile layer:

LAYER
  NAME sixmaps
  GROUP 'highres'
  TYPE RASTER
  STATUS ON
  DATA "/mnt/gisdata/data/aus/sixmaps.xml"
  PROCESSING "OVERSAMPLE_RATIO=1.0"
  PROJECTION
    "init=epsg:3857"
  END
  METADATA
    "wms_title" "sixmaps"
    "wms_name" "sixmaps"
    "wms_srs" "EPSG:3857"
  END
END

When I try and request a map using a WMS GetMap request, this is the error message I get:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msDrawMap(): Image handling error. Failed to draw layer named 'sixmaps'.
drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: GetBlockRef failed at X block offset 0, Y block offset 0
</ServiceException>
</ServiceExceptionReport>

Can anyone point out where the problem is?

Many thanks,

Robert L. Sanson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160426/8c808312/attachment-0001.html>


More information about the mapserver-users mailing list