<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Thanks guys... now Chameleon is running...<br><br>But I have another issue... :( <br><br>Now I'm trying to add a layer with the position of some gps devices... but this data are in a MS SQL Server Database, so, I'm trying to connect it via ODBC in a *.ovf file... but is not working a get an error...<br><br>Error : <br><br>---------------<br><br>Error rendering map image :<br>a fatal error ocurred drawing the map.<br><br>---------------<br><br>My *.OVF file :<br><br>---------------<br><br>&lt;OGRVRTDataSource&gt;<br>&nbsp;&nbsp;&nbsp; &lt;OGRVRTLayer name="cartracks"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SrcDataSource&gt;ODBC:usr/pwd@webtrak&lt;/SrcDataSource&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SrcSQL&gt;SELECT TOP 1 ID FROM Guardar WHERE
 ID='53377'&lt;/SrcSQL&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GeometryField encoding="PointFromColumns" x="Lon" y="Lat"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/OGRVRTLayer&gt;<br>&lt;/OGRVRTDataSource&gt;<br><br>---------------<br><div><div><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">My Mapfile call to the *.OVF file :<br><br>---------------<br><br>LAYER<br>&nbsp;&nbsp;&nbsp; NAME "cartracks"<br>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<br>&nbsp;&nbsp;&nbsp; TYPE POINT<br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE OGR<br>&nbsp;&nbsp;&nbsp; CONNECTION "cjwebtrak-ODBC-connection.ovf"<br>&nbsp;&nbsp;&nbsp; DATA "cartracks"<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "cartracks"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 'star'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 15<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 255 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br>END<br><br>---------------<br><br>I need to know what part of the code is wrong?... or... how can I do that in a good way?<br><br>Also, I need to solve an issue, example : if Im Christian I can see just my car, so, how can I do that without use the *.OVF file? can I do it in another way?<br><br>Thanks...<br><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De:</span></b> Steve Lime &lt;Steve.Lime@dnr.state.mn.us&gt;<br><b><span style="font-weight:
 bold;">Para:</span></b> Tamas Szekeres &lt;szekerest@gmail.com&gt;; Christian Canales &lt;ccanales29@yahoo.es&gt;<br><b><span style="font-weight: bold;">CC:</span></b> mapserver-dev@lists.osgeo.org<br><b><span style="font-weight: bold;">Enviado:</span></b> martes, 9 de junio, 2009 15:10:53<br><b><span style="font-weight: bold;">Asunto:</span></b> Re: [mapserver-dev] MapServer IDENT Error: First token must be MAP,this doesn't look like a mapfile<br></font><br>Symbol sets need a leading token for MapServer to consider them valid,<br>just like mapfiles. Simply <br>add the keyword SYMBOLSET to the top of your symbols.sym file and<br>you'll get past the error<br>you're seeing. That change won't break with older versions of<br>MapServer, nor will adding the<br>leading MAP token in a mapfile.<br><br>Looking at your mapfile quickly I think you have a premature END right<br>after the line "TRANSPARENT FALSE".<br>It's not necessary. The closing END for the MAP
 tag is at the end of<br>the file.<br><br>Steve<br><br>&gt;&gt;&gt; On 6/9/2009 at 4:04 PM, in message<br>&lt;<a ymailto="mailto:182980.99597.qm@web27006.mail.ukl.yahoo.com" href="mailto:182980.99597.qm@web27006.mail.ukl.yahoo.com">182980.99597.qm@web27006.mail.ukl.yahoo.com</a>&gt;, Christian Canales<br>&lt;<a ymailto="mailto:ccanales29@yahoo.es" href="mailto:ccanales29@yahoo.es">ccanales29@yahoo.es</a>&gt; wrote:<br>&gt; Hi...<br>&gt; <br>&gt; I was working in some change of my map file...<br>&gt; <br>&gt; This is how it looks now :<br>&gt; <br>&gt; -------------------<br>&gt; #<br>&gt; # Start of map file<br>&gt; #<br>&gt; # Sample map file for a chameleon app.<br>&gt; #<br>&gt; MAP<br>&gt;&nbsp;  NAME DEMO<br>&gt;&nbsp;  STATUS ON<br>&gt;&nbsp;  SIZE 400 300<br>&gt;&nbsp;  SYMBOLSET ../etc/symbols.sym<br>&gt;&nbsp;  EXTENT -85.9502 8.0396 -82.5527 11.2199<br>&gt;&nbsp;  UNITS kilometers<br>&gt;&nbsp;  SHAPEPATH "../data"<br>&gt;&nbsp;  IMAGECOLOR 255
 255 255<br>&gt;&nbsp;  FONTSET ../etc/fonts.txt<br>&gt;&nbsp;  TRANSPARENT FALSE<br>&gt; END<br>&gt; #<br>&gt; # Start of web interface definition<br>&gt; #<br>&gt; WEB<br>&gt;&nbsp;  #MINSCALE 2000000<br>&gt;&nbsp;  #MAXSCALE 50000000<br>&gt; #<br>&gt; # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the<br>root <br>&gt; # of the drive where the .MAP file resides.<br>&gt; #<br>&gt;&nbsp;  IMAGEPATH "/ms4w/tmp/ms_tmp/" <br>&gt;&nbsp;  IMAGEURL "/ms_tmp/"<br>&gt; #&nbsp; LOG "/tmp/gmap.log"<br>&gt;&nbsp;  METADATA<br>&gt;&nbsp;  END<br>&gt; END<br>&gt; <br>&gt; #<br>&gt; # Start of reference map<br>&gt; #<br>&gt; REFERENCE<br>&gt;&nbsp; &nbsp; IMAGE images/costarica_keymap.jpg<br>&gt;&nbsp; &nbsp; EXTENT -85.9502 8.0396 -82.5527 11.2199<br>&gt;&nbsp; &nbsp; STATUS ON<br>&gt;&nbsp;  COLOR -1 -1 -1<br>&gt;&nbsp;  OUTLINECOLOR 255 0 0<br>&gt;&nbsp;  SIZE 120 90&nbsp; &nbsp; &nbsp; <br>&gt; END<br>&gt; <br>&gt; #<br>&gt; # Start of
 legend<br>&gt; #<br>&gt; LEGEND<br>&gt;&nbsp;  KEYSIZE 18 12<br>&gt;&nbsp;  LABEL<br>&gt;&nbsp; &nbsp;  TYPE BITMAP<br>&gt;&nbsp; &nbsp;  SIZE MEDIUM<br>&gt;&nbsp; &nbsp;  COLOR 0 0 89<br>&gt;&nbsp;  END<br>&gt;&nbsp;  STATUS ON<br>&gt; END<br>&gt; <br>&gt; #<br>&gt; # Start of scalebar<br>&gt; #<br>&gt; SCALEBAR<br>&gt;&nbsp;  IMAGECOLOR 255 255 255<br>&gt;&nbsp;  LABEL<br>&gt;&nbsp; &nbsp;  COLOR 0 0 0 <br>&gt;&nbsp; &nbsp;  SIZE SMALL<br>&gt;&nbsp;  END<br>&gt;&nbsp;  SIZE 150 5<br>&gt;&nbsp;  COLOR 255 255 255<br>&gt;&nbsp;  BACKGROUNDCOLOR 0 0 0<br>&gt;&nbsp;  OUTLINECOLOR 0 0 0<br>&gt;&nbsp;  UNITS kilometers<br>&gt;&nbsp;  INTERVALS 5<br>&gt;&nbsp;  STATUS ON<br>&gt; END<br>&gt; <br>&gt; <br>&gt; QUERYMAP<br>&gt;&nbsp;  STYLE HILITE<br>&gt;&nbsp;  COLOR 255 0 0<br>&gt; END<br>&gt; <br>&gt; PROJECTION<br>&gt;&nbsp; &nbsp;  "init=epsg:4326"<br>&gt; END<br>&gt; <br>&gt; #<br>&gt; # Start of layer definitions<br>&gt; #<br>&gt; <br>&gt; <br>&gt;
 LAYER<br>&gt;&nbsp; &nbsp;  NAME "paises"<br>&gt;&nbsp; &nbsp;  TYPE POLYGON<br>&gt; .<br>&gt; .<br>&gt; .<br>&gt; .<br>&gt; END<br>&gt; -------------------<br>&gt; <br>&gt; But now I got this error...<br>&gt; <br>&gt; &lt;!-- MapServer IDENT Error: First token must be SYMBOLSET, this<br>doesn't look <br>&gt; like a symbol file. --&gt;<br>&gt; <br>&gt; I know this is sothing about identifiers order, but I dont know what<br>is the <br>&gt; correcct order...<br>&gt; <br>&gt; If somebody can provide me this part of the map, just as a sample...<br>&gt; <br>&gt; It would be great...<br>&gt; <br>&gt; Or if somebody can chat with me for a minute... it would be<br>better...<br>&gt; <br>&gt; I just need an explanation in order to solve this issue... I work in<br>fedora <br>&gt; 10, mapserver 5.4.0, and chameleon... but I cannot make any chameleon<br>sample <br>&gt; run...<br>&gt; <br>&gt; Thanks a lot for your answer, idea or tips...<br>&gt; <br>&gt; Have a nice
 day....<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ________________________________<br>&gt; De: Tamas Szekeres &lt;<a ymailto="mailto:szekerest@gmail.com" href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>&gt;<br>&gt; Para: Christian Canales &lt;<a ymailto="mailto:ccanales29@yahoo.es" href="mailto:ccanales29@yahoo.es">ccanales29@yahoo.es</a>&gt;<br>&gt; CC: <a ymailto="mailto:mapserver-dev@lists.osgeo.org" href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a> <br>&gt; Enviado: sábado, 6 de junio, 2009 12:37:37<br>&gt; Asunto: Re: [mapserver-dev] MapServer IDENT Error: First token must<br>be MAP,&nbsp; <br>&gt; this doesn't look like a mapfile<br>&gt; <br>&gt; Hi Christian,<br>&gt; <br>&gt; There have been some security fixes caused breaking changes in the<br>mapfiles <br>&gt; and the symbolset files. Please refer to the announcement mail for<br>the <br>&gt; details:<br>&gt; <br>&gt; <br>&gt;<br><a
 href="http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html" target="_blank">http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html</a><br><br>&gt; <br>&gt; <br>&gt; Best regards,<br>&gt; <br>&gt; Tamas<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; 2009/6/6 Christian Canales &lt;<a ymailto="mailto:ccanales29@yahoo.es" href="mailto:ccanales29@yahoo.es">ccanales29@yahoo.es</a>&gt;<br>&gt; <br>&gt; Hi...<br>&gt; <br>&gt; I have installed on my server MapServer version 5.4.0,<br>Chameleon_cvs... Im <br>&gt; using the FGS environment and installers...<br>&gt; <br>&gt; My server is running Fedora 10...<br>&gt; <br>&gt; Im geting this error :<br>&gt; <br>&gt; <br>&gt; &lt;!-- MapServer IDENT Error: First token must be MAP, this doesn't<br>look like a <br>&gt; mapfile. --&gt;<br>&gt; <br>&gt; And the page doesnt display anything...<br>&gt; <br>&gt; Im just testing the Chameleon samples...<br>&gt; <br>&gt; You can test
 them here :<br><a href="http://201.198.134.108:8082/chameleon/samples/" target="_blank" >http://201.198.134.108:8082/chameleon/samples/</a> <br>&gt; <br>&gt; Im my Mapserver is here : <a href="http://201.198.134.108:8082/cgi-bin/mapserv" target="_blank" >http://201.198.134.108:8082/cgi-bin/mapserv</a><br><br>&gt; <br>&gt; The Chameleon is installed on : /opt/fgs/apps/chameleon-cvs-HEAD/<br>&gt; <br>&gt; Why I cant load the samples?<br>&gt; <br>&gt; Somebody has an answer?<br>&gt; <br>&gt; Thanks...<br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; mapserver-dev mailing list<br>&gt; <a ymailto="mailto:mapserver-dev@lists.osgeo.org" href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a> <br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a> <br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; 
 <br></div></div></div></div><br>



      </body></html>