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: [email protected] [[email protected]] On Behalf Of mani2604 [[email protected]] Sent: Tuesday, July 06, 2010 6:34 AM To: [email protected] 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 [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
