Retrieve extent value using OGR
Bart van den Eijnden
BEN at SYNCERA-ITSOLUTIONS.NL
Thu Oct 20 01:58:20 PDT 2005
Try:
EXTENT 567955 2511748 579369 2521531
If it does not work, post your complete MAP file and the request you are trying.
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:53 >>>
When I use this EXTENT MapServer raise the following error :
MapServerError: msyyparse(): Expression parser error. syntax error
msyyparse(): Expression parser error. syntax error msyyparse(): Expression
parser error. syntax error msyyparse(): Expression parser error. syntax
error msyyparse(): Expression parser error. syntax error msyyparse():
Expression parser error. syntax error msyyparse(): Expression parser error.
syntax error msyyparse(): Expression parser error.syntax error (Also, an
error occurred while attempting to render the standard error message.)
do you know where is the mistake ?
2005/10/20, Bart van den Eijnden <BEN at syncera-itsolutions.nl>:
>
> 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 <http://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