[MapServer-dev] Use Mapfile CONFIG keys in URLs

Steve Lime sdlime at gmail.com
Mon Mar 6 14:39:41 PST 2023


Hmmm... so if path_info contains exactly one value, use it for the map=
value. I could get behind that. Nice and clean.

On Mon, Mar 6, 2023 at 7:22 AM Seth G <sethg at geographika.co.uk> wrote:

> Hi devs,
>
> The OGC Features API introduced in MapServer 8.0 allows accessing Mapfiles
> using keys in the config file:
>
> URL: http://example.com/mykey/ogcapi/collections/foo/items.
> Config file:
>
> CONFIG
>   MAPS
>     mykey "/path/to/mapfile"
>   END
> END
>
> For all other requests you have to use the format
> http://example.com/?map=mykey&request=WMS...
>
> I think it would be nice to be able to use the same approach as OGC
> Features API to allow the key to be used as part of the URL e.g. a WMS
> request could be accessed using: http://example.com/mykey/?request=WMS...
>
> The changes to allow this seem to be minimal (with work to be done on
> tests and docs) - see [1]
>
> Does anyone have any thoughts or reservations on adopting this approach?
>
> Seth
>
> [1]
> https://github.com/MapServer/MapServer/compare/main...geographika:mapserver:mapfile-key-url
>
>
> --
> web:https://geographika.net
> twitter: @geographika
> _______________________________________________
> MapServer-dev mailing list
> MapServer-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20230306/1228c6a2/attachment.htm>


More information about the MapServer-dev mailing list