[mapserver-users] rotate and fit based on polygon
Carlos Ruiz
boolean10001 at yahoo.com
Fri Sep 8 13:25:23 PDT 2017
Travis,
Do you have the polygons in PostGIS ? Maybe you can get the extent by using st_extent(geom) and retrieve it on PHP/Python to set the map extent. You could also get a margin by multiplying extent b 1.1 (10%).
On Thursday, September 7, 2017, 1:27:06 PM CDT, Travis Kirstine <traviskirstine at gmail.com> wrote:
I have a bunch of polygons that represent 8.5 x 11 printed map sheets. I'd like to produce images for each sheet that best fits the polygon within the outputted image. We've tried using mapscript by setting the map extent based on the bbox of the source polygon and rotation but results aren't great depending on the orientation of the source polygon. Is there a way to set the "extent" based on a polygon? _______________________________________________
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/20170908/a35f30cd/attachment.htm>
More information about the MapServer-users
mailing list