[mapserver-users] How to draw custom rectangles with bounding box coordinates

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Tue Jul 6 08:44:02 EDT 2010


MapServer doesn't have a bbox shape type you can draw from so you'd need to turn the bounding boxes
into true polygons and draw them that way. That's just a matter of feeding the bbox corners in the right
order. MapScript has a toPolygon method for rects that should make that easy.

Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of mani2604 [mani2604 at gmail.com]
Sent: Tuesday, July 06, 2010 6:34 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] How to draw custom rectangles with bounding box      coordinates

Hi everyone...

                 Well i am using phpmapscript with mapserver. Well I need to
draw custom rectangles on the extent of the map with the user-defined BBOX
coordinates..

I mean the way I was able to query the map with the BBOX coordiantes, I need
to represent that part of the map with the custom rectangle ala the
screenshots below.

So I was hoping anyone over here could provide me an insight of how I may
proceed to achieve this... Do  I need work on javascript for the
customization?!!

Thanks....
SCREENSHOT:-
http://osgeo-org.1803224.n2.nabble.com/file/n5259886/custrect.bmp
custrect.bmp



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-draw-custom-rectangles-with-bounding-box-coordinates-tp5259886p5259886.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
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