If you would like to keep the expression, simply remove the ('s, so all you have is:<br>
EXPRESSION "essai_zone"<br>
<br>
See the mapfile documentation on this:<br>
<a href="http://mapserver.gis.umn.edu/doc46/mapfile-reference.html#class">http://mapserver.gis.umn.edu/doc46/mapfile-reference.html#class</a><br>
<br>
Cheers,<br>
Xin<br>
<br>
<br><div><span class="gmail_quote">On 20/10/05, <b class="gmail_sendername">Bart van den Eijnden</b> <<a href="mailto:BEN@syncera-itsolutions.nl">BEN@syncera-itsolutions.nl</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Your EXPRESSION is wrong, remove it, then it should go okay.<br><br>Best regards,<br>Bart<br><br>Bart van den Eijnden<br>Syncera IT Solutions<br>Postbus 270<br>2600 AG DELFT<br><br><a href="http://tel.nr">tel.nr</a>.: 015-7512436
<br>email: <a href="mailto:BEN@Syncera-ITSolutions.nl">BEN@Syncera-ITSolutions.nl</a><br><br>>>> Sébastien Didelet <<a href="mailto:taf.seb.didelet@GMAIL.COM">taf.seb.didelet@GMAIL.COM</a>> 20-10-2005 11:16 >>>
<br>It doesn't work too (got the same error) ... my .map file is the following :<br><br>#<br># Start of map file<br>#<br>MAP<br>NAME Essai_zone<br>STATUS ON<br>SIZE 600 600<br>EXTENT 567955 2511748 579369 2521531<br>UNITS METERS
<br>SHAPEPATH "/usr/CPSSites/CG60Intranet/carte/demo/data"<br>IMAGECOLOR 255 255 255<br><br>IMAGETYPE PNG<br><br>#<br># Start of symbol definitions (we're only using a few)<br>#<br>SYMBOL<br>NAME 'circle'<br>TYPE ELLIPSE
<br>POINTS 1 1 END<br>FILLED TRUE<br>END<br><br>SYMBOL<br>NAME 'star'<br>TYPE VECTOR<br>FILLED TRUE<br>POINTS<br>0 .375<br>.35 .375<br>.5 0<br>.65 .375<br>1 .375<br>.75 .625<br>.875 1<br>.5 .75<br>.125 1<br>.25 .625<br>END
<br>END<br><br><br>#<br># Start of layer definitions<br>#<br><br>LAYER<br>NAME "Essai_zone"<br>TYPE POLYGON<br>CONNECTIONTYPE OGR<br>CONNECTION "/usr/CPSSites/CG60Intranet/carte/demo/essai_zone.TAB"<br>
STATUS ON<br><br># This enables use of colors and styles from the source file.<br>STYLEITEM "AUTO"<br><br># Define an empty class that will be filled at runtime from the color and<br># styles read on each shape in the source file.
<br>CLASS<br>NAME "essai_zone"<br>EXPRESSION ("essai_zone")<br>COLOR 23 0 220<br>LABEL<br>COLOR 0 0 0<br>FONT Arial<br>TYPE truetype<br>POSITION AUTO<br>PARTIALS FALSE<br>SIZE 10<br>BUFFER 5<br>#OUTLINECOLOR 255 255 255
<br>END<br>END<br>END<br><br>END # Map File<br><br><br>all regards,<br>seb<br><br><br>2005/10/20, Bart van den Eijnden <<a href="mailto:BEN@syncera-itsolutions.nl">BEN@syncera-itsolutions.nl</a>>:<br>><br>> Try:
<br>><br>> EXTENT 567955 2511748 579369 2521531<br>><br>> If it does not work, post your complete MAP file and the request you are<br>> trying.<br>><br>> Best regards,<br>> Bart<br>><br>> Bart van den Eijnden
<br>> Syncera IT Solutions<br>> Postbus 270<br>> 2600 AG DELFT<br>><br>> <a href="http://tel.nr">tel.nr</a> <<a href="http://tel.nr">http://tel.nr</a>>.: 015-7512436<br>> email: <a href="mailto:BEN@Syncera-ITSolutions.nl">
BEN@Syncera-ITSolutions.nl</a><br>><br>> >>> Sébastien Didelet <<a href="mailto:taf.seb.didelet@gmail.com">taf.seb.didelet@gmail.com</a>> 20-10-2005 10:53 >>><br>> When I use this EXTENT MapServer raise the following error :
<br>><br>> MapServerError: msyyparse(): Expression parser error. syntax error<br>> msyyparse(): Expression parser error. syntax error msyyparse(): Expression<br>> parser error. syntax error msyyparse(): Expression parser error. syntax
<br>> error msyyparse(): Expression parser error. syntax error msyyparse():<br>> Expression parser error. syntax error msyyparse(): Expression parser<br>> error.<br>> syntax error msyyparse(): Expression parser
error.syntax error (Also, an<br>> error occurred while attempting to render the standard error message.)<br>><br>> do you know where is the mistake ?<br>><br>><br>><br>> 2005/10/20, Bart van den Eijnden <
<a href="mailto:BEN@syncera-itsolutions.nl">BEN@syncera-itsolutions.nl</a>>:<br>> ><br>> > You should use the following EXTENT in your MAP file then:<br>> ><br>> > MAP<br>> > ..<br>> > EXTENT
567955.024450 2511748.009226 579369.036331 2521531.038812<br>> > ..<br>> ><br>> > Best regards,<br>> > Bart<br>> ><br>> > Bart van den Eijnden<br>> > Syncera IT Solutions<br>> > Postbus 270
<br>> > 2600 AG DELFT<br>> ><br>> > <a href="http://tel.nr">tel.nr</a> <<a href="http://tel.nr">http://tel.nr</a>> <<a href="http://tel.nr">http://tel.nr</a>>.: 015-7512436<br>> > email:
<a href="mailto:BEN@Syncera-ITSolutions.nl">BEN@Syncera-ITSolutions.nl</a><br>> ><br>> > >>> Sébastien Didelet <<a href="mailto:taf.seb.didelet@GMAIL.COM">taf.seb.didelet@GMAIL.COM</a>> 20-10-2005 10:19 >>>
<br>> > Hi,<br>> ><br>> > I tried to read a mapinfo file (.TAB) with mapserver using OGR library,<br>> > but<br>> > my question is how can I retrieve extent information that I have to<br>> write
<br>> > in<br>> > the mapserver file (.map).<br>> > I've ever retrieve information about the mapinfo file with the ogrinfo<br>> > command which return me this :<br>> ><br>> > [root@siska
demo]# ogrinfo -so essai_zone.TAB essai_zone |more<br>> > Had to open data source read-only.<br>> > INFO: Open of `essai_zone.TAB'<br>> > using driver `MapInfo File' successful.<br>> ><br>> > Layer name: essai_zone
<br>> > Geometry: Polygon<br>> > Feature Count: 8<br>> > Extent: (567955.024450, 2511748.009226) - (579369.036331, 2521531.038812<br>> )<br>> > Layer SRS WKT:<br>> > ...<br>> ><br>> >
<br>> > How I must fill the map file with this ?<br>> ><br>> ><br>> > All regards,<br>> > Seb<br>> ><br>> ><br>><br></blockquote></div><br>