[mapserver-users] rotate and fit based on polygon

Lime, Steve D (MNIT) steve.lime at state.mn.us
Fri Sep 8 12:59:01 PDT 2017


It’s kinda hard to picture what you’re after, any way to help visualize it?

From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Travis Kirstine
Sent: Thursday, September 07, 2017 1:27 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] rotate and fit based on polygon

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170908/5c4354c7/attachment.html>


More information about the mapserver-users mailing list