With 8.2, the only way I can think of would be use PostGIS something like:

LAYER
  NAME 'mylayer'
  CONNECTIONTYPE POSTGIS
  DATA "shape FROM (SELECT ST_GeomFromText('%geometry%') AS shape)"
  VALIDATION
    'geometry' 'a regex for valid WKT'
  END
  ...
END

You'd have to be very careful with the regex to validate the WKT but this
might work.

This makes me wonder if adding some context-sensitive escaping
capabilities to the runtime substitution could be a nice enhancement.

--Steve

On Tue, Oct 8, 2024 at 11:54 AM Ahmet Temiz via MapServer-users <
mapserver-users@lists.osgeo.org> wrote:

> Hi
>
> Can I create a polygon using the Well-Known Text (WKT) format via a URL in
> this way ?
> ```
> http://<your-mapserver-url>/cgi-bin/mapserv?map=<path-to-your-mapfile>&mode=edit&layers=<layer-name>&geometry=POLYGON((500000
> 1000000, 510000 1000000, 510000 1010000, 500000 1010000, 500000
> 1000000))&....
> ```
> kind regards
>
> --
> Ahmet Temiz
> Jeoloji Müh.
> Afet ve Acil Durum Yönetimi Başkanlığı
> Deprem  Dairesi Başkanlığı
>
>
> ________________________
>
> Ahmet Temiz
> Geological Eng.
>
> Disaster and Emergency Management
> of Presidency
> _______________________________________________
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to