[Mapserver-users] getextent in a file .TAB
Daniel Morissette
dmorissette at dmsolutions.ca
Wed Mar 10 07:13:17 PST 2004
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 at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list