[mapserver-users] (PHP) MapScript: mapfile->zoom to location->get shapes

Daniel Morissette morissette at dmsolutions.ca
Tue Jun 5 18:19:50 EDT 2001


Martin Kokes wrote:
> 
> I just would to ask anybody, if is it possible to use MapScript as a
> interface between shapefile and any vector format (probably SVG or Ming).
> All I want to do is:
> 1. create MapObj
> 2. zoomrectangle/zoomscale/zoompoint
> 3. get all "zoomed" ShapeObj <- here's my problem
> 4. get all LineObj -> PointObj
> 

Martin,

To get all "zoomed" ShapeObj, you could do a queryUsingRect() with the
search rectangle being the extent of the zoomed view in map coordinate
units.  Then walk through the query results and produce the SVG
output... that should do the trick.

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.




More information about the mapserver-users mailing list