[mapserver-users] map rotation, extent & a border

Paul Spencer pagameba at gmail.com
Mon Oct 24 05:38:36 PDT 2011


David,

you might be able to set up your map border layer with transform false, units pixels and use the size of your map image as the rectangle to draw.

Cheers

Paul

On 2011-10-20, at 9:07 AM, Shorthouse, David wrote:

> Folks,
> 
> Been trying to solve this one and cannot figure it out. Attached is my
> attempt to put a border around the outside edge of a map using
> PHP-mapscript. If the map is not rotated, it's easy to use the map's
> extent to draw such a border by creating a layer specifically for this
> purpose. However, when a map is rotated, one can no longer use the
> map's extent like this because the four extent coordinates are not
> similarly rotated. My question is, how do a I make a border around the
> outside edge of a map when the map is rotated? Is there a method to
> learn what are the actual extent coordinates post-rotate?
> 
> Thanks,
> 
> David P. Shorthouse
> <Rotated-1.png>_______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list