[Mapserver-users] getextent in a file .TAB

Daniel Morissette dmorissette@dmsolutions.ca
Wed, 10 Mar 2004 10:13:17 -0500


Irene Pérez wrote:
> Hi, can you help me?
> I 'm using files mapinfo and I have a problem, because
> I'm trying get the extent of a layers, but i can't use
> getextent() because i have the next error to execute
> the next line:
> 
> $shapeFileObj = ms_newShapeFileObj(
> "/home/ejemplos/data/municipios",-1) 
> 

The shapefileObj is for shapefiles only.  It won't work for OGR or any 
other data source.

> 
> How can i get the extent, please?
> 

You can use the 'ogrinfo' tool that comes with GDAL/OGR, e.g.

   ogrinfo -so /home/ejemplos/data/municipios.TAB municipios

For more info on 'ogrinfo', see: http://ogr.maptools.org/ogr_utilities.html

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette@dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users