Retrieve extent value using OGR
Bart van den Eijnden
BEN at SYNCERA-ITSOLUTIONS.NL
Thu Oct 20 01:32:55 PDT 2005
You should use the following EXTENT in your MAP file then:
MAP
..
EXTENT 567955.024450 2511748.009226 579369.036331 2521531.038812
..
Best regards,
Bart
Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG DELFT
tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> Sébastien Didelet <taf.seb.didelet at GMAIL.COM> 20-10-2005 10:19 >>>
Hi,
I tried to read a mapinfo file (.TAB) with mapserver using OGR library, but
my question is how can I retrieve extent information that I have to write in
the mapserver file (.map).
I've ever retrieve information about the mapinfo file with the ogrinfo
command which return me this :
[root at siska demo]# ogrinfo -so essai_zone.TAB essai_zone |more
Had to open data source read-only.
INFO: Open of `essai_zone.TAB'
using driver `MapInfo File' successful.
Layer name: essai_zone
Geometry: Polygon
Feature Count: 8
Extent: (567955.024450, 2511748.009226) - (579369.036331, 2521531.038812)
Layer SRS WKT:
...
How I must fill the map file with this ?
All regards,
Seb
More information about the MapServer-users
mailing list