Retrieve extent value using OGR

Sébastien Didelet taf.seb.didelet at GMAIL.COM
Thu Oct 20 04:19:40 EDT 2005


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051020/a6044ee2/attachment.html


More information about the mapserver-users mailing list