[MapServer-users] [EXT] Re: How to reference an ArcGIS FeatureService REST endpoint in the mapfile?
Robert Sanson
Robert.Sanson at asurequality.com
Sun Oct 12 17:43:46 PDT 2025
Thanks Seth! Good to know it can work. Still trying to get it to show anything. Here is my layer:
LAYER
NAME "NZ_Property"
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION https://services.arcgis.com/xdsHIIxuCWByZiCB/arcgis/rest/services/LINZ_NZ_Property_Boundaries/FeatureServer/0/query?resultRecordCount=100&f=geoJSON
PROJECTION
"init=epsg:2193"
END
CLASS
STYLE
WIDTH 2
COLOR 255 255 0
OUTLINECOLOR 0 0 0
END
END
END
Mapserver v. 8.2.2 is not showing any error messages even though I have DEBUG 5 on my map. The layer projection matches the MAP projection. According to the documentation for the site, Supported query Formats: JSON, geoJSON, PBF
Thanks
Robert
From: Seth G <sethg at geographika.co.uk>
Sent: Saturday, 11 October 2025 10:57 p.m.
To: Robert Sanson <Robert.Sanson at asurequality.com>; MapServer Users <mapserver-users at lists.osgeo.org>
Subject: [EXT] Re: [MapServer-users] How to reference an ArcGIS FeatureService REST endpoint in the mapfile?
CAUTION: This email originated from outside of the organisation. Do not click links or open attachments unless you recognise the sender and know the content is safe.
Hi Robert,
This works, but renders very slowly. It uses https://gdal.org/en/stable/drivers/vector/esrijson.html underneath.
map2img -m arcgis.map -o map.png
MAP
NAME "PoolPermits"
EXTENT -13075816 4014771 -13073005 4016869
SIZE 400 400
PROJECTION
"init=epsg:3857"
END
LAYER
NAME "buildings"
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "https://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/FeatureServer/0/query?resultRecordCount=10&f=pjson"
CLASS
STYLE
COLOR 246 241 223
OUTLINECOLOR 0 0 0
END
END
END
END
Seth
--
web:https://geographika.net<https://geographika.net/> & https://mapserverstudio.net<https://mapserverstudio.net/>
mastodon: @geographika at mastodon.social<mailto:geographika at mastodon.social>
On Thu, Oct 9, 2025, at 2:47 AM, Robert Sanson via MapServer-users wrote:
Hi All
Does anyone have an example of setting up a layer in a Mapfile to cascade an ArcGIS FeatureService REST endpoint?
Many thanks
Robert Sanson
New Zealand
This email, including any attachments, may contain information which is confidential or subject to copyright. If you are not the intended recipient, please notify us immediately and delete this email from your system. Email communications are not secure and are not guaranteed by AsureQuality Limited to be free of unauthorised interference, error or virus. Anyone who communicates with us by email is taken to accept this risk. Anything in this email which does not relate to the official business of AsureQuality Limited is neither given nor endorsed by AsureQuality Limited. Please refer to www.asurequality.com<https://www.asurequality.com/> or contact AsureQuality Limited for more information, including about our terms of business.
_______________________________________________
MapServer-users mailing list
MapServer-users at lists.osgeo.org<mailto:MapServer-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users
This email, including any attachments, may contain information which is confidential or subject to copyright. If you are not the intended recipient, please notify us immediately and delete this email from your system. Email communications are not secure and are not guaranteed by AsureQuality Limited to be free of unauthorised interference, error or virus. Anyone who communicates with us by email is taken to accept this risk. Anything in this email which does not relate to the official business of AsureQuality Limited is neither given nor endorsed by AsureQuality Limited. Please refer to www.asurequality.com<https://www.asurequality.com/> or contact AsureQuality Limited for more information, including about our terms of business.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20251013/5d87b488/attachment.htm>
More information about the MapServer-users
mailing list