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

Shorthouse, David dshorthouse at eol.org
Mon Oct 24 17:17:10 EDT 2011


Thanks, Paul. This worked like a charm!

David P. Shorthouse

On Mon, Oct 24, 2011 at 8:38 AM, Paul Spencer <pagameba at gmail.com> wrote:
> 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