<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><OGRVRTDataSource><br> <OGRVRTLayer name="cartracks"><br> <SrcDataSource>ODBC:usr/pwd@webtrak</SrcDataSource><br> <SrcSQL>SELECT TOP 1 ID FROM Guardar WHERE
ID='53377'</SrcSQL><br> <GeometryType>wkbPoint</GeometryType><br> <GeometryField encoding="PointFromColumns" x="Lon" y="Lat"/><br> </OGRVRTLayer><br></OGRVRTDataSource><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> NAME "cartracks"<br> STATUS DEFAULT<br> TYPE POINT<br> CONNECTIONTYPE OGR<br> CONNECTION "cjwebtrak-ODBC-connection.ovf"<br> DATA "cartracks"<br> CLASS<br> NAME "cartracks"<br>
STYLE<br> SYMBOL 'star'<br> SIZE 15<br> COLOR 0 255 0<br> END<br> 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 <Steve.Lime@dnr.state.mn.us><br><b><span style="font-weight:
bold;">Para:</span></b> Tamas Szekeres <szekerest@gmail.com>; Christian Canales <ccanales29@yahoo.es><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>>>> On 6/9/2009 at 4:04 PM, in message<br><<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>>, Christian Canales<br><<a ymailto="mailto:ccanales29@yahoo.es" href="mailto:ccanales29@yahoo.es">ccanales29@yahoo.es</a>> wrote:<br>> Hi...<br>> <br>> I was working in some change of my map file...<br>> <br>> This is how it looks now :<br>> <br>> -------------------<br>> #<br>> # Start of map file<br>> #<br>> # Sample map file for a chameleon app.<br>> #<br>> MAP<br>> NAME DEMO<br>> STATUS ON<br>> SIZE 400 300<br>> SYMBOLSET ../etc/symbols.sym<br>> EXTENT -85.9502 8.0396 -82.5527 11.2199<br>> UNITS kilometers<br>> SHAPEPATH "../data"<br>> IMAGECOLOR 255
255 255<br>> FONTSET ../etc/fonts.txt<br>> TRANSPARENT FALSE<br>> END<br>> #<br>> # Start of web interface definition<br>> #<br>> WEB<br>> #MINSCALE 2000000<br>> #MAXSCALE 50000000<br>> #<br>> # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the<br>root <br>> # of the drive where the .MAP file resides.<br>> #<br>> IMAGEPATH "/ms4w/tmp/ms_tmp/" <br>> IMAGEURL "/ms_tmp/"<br>> # LOG "/tmp/gmap.log"<br>> METADATA<br>> END<br>> END<br>> <br>> #<br>> # Start of reference map<br>> #<br>> REFERENCE<br>> IMAGE images/costarica_keymap.jpg<br>> EXTENT -85.9502 8.0396 -82.5527 11.2199<br>> STATUS ON<br>> COLOR -1 -1 -1<br>> OUTLINECOLOR 255 0 0<br>> SIZE 120 90 <br>> END<br>> <br>> #<br>> # Start of
legend<br>> #<br>> LEGEND<br>> KEYSIZE 18 12<br>> LABEL<br>> TYPE BITMAP<br>> SIZE MEDIUM<br>> COLOR 0 0 89<br>> END<br>> STATUS ON<br>> END<br>> <br>> #<br>> # Start of scalebar<br>> #<br>> SCALEBAR<br>> IMAGECOLOR 255 255 255<br>> LABEL<br>> COLOR 0 0 0 <br>> SIZE SMALL<br>> END<br>> SIZE 150 5<br>> COLOR 255 255 255<br>> BACKGROUNDCOLOR 0 0 0<br>> OUTLINECOLOR 0 0 0<br>> UNITS kilometers<br>> INTERVALS 5<br>> STATUS ON<br>> END<br>> <br>> <br>> QUERYMAP<br>> STYLE HILITE<br>> COLOR 255 0 0<br>> END<br>> <br>> PROJECTION<br>> "init=epsg:4326"<br>> END<br>> <br>> #<br>> # Start of layer definitions<br>> #<br>> <br>> <br>>
LAYER<br>> NAME "paises"<br>> TYPE POLYGON<br>> .<br>> .<br>> .<br>> .<br>> END<br>> -------------------<br>> <br>> But now I got this error...<br>> <br>> <!-- MapServer IDENT Error: First token must be SYMBOLSET, this<br>doesn't look <br>> like a symbol file. --><br>> <br>> I know this is sothing about identifiers order, but I dont know what<br>is the <br>> correcct order...<br>> <br>> If somebody can provide me this part of the map, just as a sample...<br>> <br>> It would be great...<br>> <br>> Or if somebody can chat with me for a minute... it would be<br>better...<br>> <br>> I just need an explanation in order to solve this issue... I work in<br>fedora <br>> 10, mapserver 5.4.0, and chameleon... but I cannot make any chameleon<br>sample <br>> run...<br>> <br>> Thanks a lot for your answer, idea or tips...<br>> <br>> Have a nice
day....<br>> <br>> <br>> <br>> <br>> <br>> ________________________________<br>> De: Tamas Szekeres <<a ymailto="mailto:szekerest@gmail.com" href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>><br>> Para: Christian Canales <<a ymailto="mailto:ccanales29@yahoo.es" href="mailto:ccanales29@yahoo.es">ccanales29@yahoo.es</a>><br>> CC: <a ymailto="mailto:mapserver-dev@lists.osgeo.org" href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a> <br>> Enviado: sábado, 6 de junio, 2009 12:37:37<br>> Asunto: Re: [mapserver-dev] MapServer IDENT Error: First token must<br>be MAP, <br>> this doesn't look like a mapfile<br>> <br>> Hi Christian,<br>> <br>> There have been some security fixes caused breaking changes in the<br>mapfiles <br>> and the symbolset files. Please refer to the announcement mail for<br>the <br>> details:<br>> <br>> <br>><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>> <br>> <br>> Best regards,<br>> <br>> Tamas<br>> <br>> <br>> <br>> <br>> <br>> 2009/6/6 Christian Canales <<a ymailto="mailto:ccanales29@yahoo.es" href="mailto:ccanales29@yahoo.es">ccanales29@yahoo.es</a>><br>> <br>> Hi...<br>> <br>> I have installed on my server MapServer version 5.4.0,<br>Chameleon_cvs... Im <br>> using the FGS environment and installers...<br>> <br>> My server is running Fedora 10...<br>> <br>> Im geting this error :<br>> <br>> <br>> <!-- MapServer IDENT Error: First token must be MAP, this doesn't<br>look like a <br>> mapfile. --><br>> <br>> And the page doesnt display anything...<br>> <br>> Im just testing the Chameleon samples...<br>> <br>> 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>> <br>> 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>> <br>> The Chameleon is installed on : /opt/fgs/apps/chameleon-cvs-HEAD/<br>> <br>> Why I cant load the samples?<br>> <br>> Somebody has an answer?<br>> <br>> Thanks...<br>> <br>> <br>> _______________________________________________<br>> mapserver-dev mailing list<br>> <a ymailto="mailto:mapserver-dev@lists.osgeo.org" href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a> <br>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a> <br>> <br>> <br>>
<br></div></div></div></div><br>
</body></html>