[MapServer-users] How to reference an ArcGIS FeatureService REST endpoint in the mapfile?

Seth G sethg at geographika.co.uk
Sat Oct 11 02:57:02 PDT 2025


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://mapserverstudio.net
mastodon: @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 or contact AsureQuality Limited for more information, including about our terms of business.
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20251011/5335cbf7/attachment.htm>


More information about the MapServer-users mailing list