[Mapserver-users] finding extents of polygon in shapefile

Tyler Mitchell TMitchell at lignum.com
Tue Apr 13 11:19:55 EDT 2004


If so inclined, you could use Python and the ogr.py to select your feature 
and report out the extent.  If you want some examples, ask the gdal list.

Tyler

mapserver-users-admin at lists.gis.umn.edu wrote on 04/12/2004 03:58:19 PM:

> I am using MapServer 4 with PHP 4 (but not MapScript).  I am looking for 
a
> way to quickly find the extents of polygon(s) in a shapefile.  In a 
nutshell,
> I am using the Tiger PLC00 data, and would like to be able to take a 
city
> name and look up the extents of the polygon(s) for that city so that I 
can
> set the extents of the map to display just that city.
> 
> I've tried playing with '-where' in ogrinfo, but even when I restrict 
the
> results to just one city, the displayed extents are still for the entire 
file.
> 
> Any suggestions how I might do this?
> 
> Thanks,
> Dave
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list