[Mapserver-users] getextent in a file .TAB
Daniel Morissette
dmorissette at dmsolutions.ca
Thu Mar 11 06:02:51 PST 2004
Irene Pérez wrote:
> But I want obtain the extent automatic when the user
> "select" a Polygon in the map, than zoom to this
> extent... with the ogrinfo tool, is manual.
>
> Thanks.
>
(Please always reply via the list)
This question comes up once in a while on the list, so if you search the
archives you'll find some useful information.
For instance, a Google search for "zoom query mapscript site:umn.edu"
returns the following (5th hit in the list of results):
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0212/msg00197.html
Daniel
> --- Daniel Morissette <dmorissette at dmsolutions.ca>
> escribió: > 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