Hi Peter, the classitem sentence is at the begining of the layer definition...<br><br>i can't isolate the error... i dont know whath's wrong...<br><br>Kind Regards<br><br><div><span class="gmail_quote">2006/11/26, Peter Freimuth <
<a href="mailto:pf@mapmedia.de">pf@mapmedia.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">René F. Viancos S. schrieb:<br>
> Hi users, i have a big problem with symbols in my AVL webmapping<br>> system. the system always show the same symbol....<br>><br>> <a href="http://200.11.84.234/tmp/1164503361121091.gif">http://200.11.84.234/tmp/1164503361121091.gif
</a><br>> <<a href="http://200.11.84.234/tmp/1164503361121091.gif">http://200.11.84.234/tmp/1164503361121091.gif</a>><br>><br>><br>> I have a symbol file called symbols.sym, like in GMAP, and the<br>> following symbols defined (arrow angles)
<br>><br>> #1<br>> SYMBOL<br>> NAME "1"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/0.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #2<br>> SYMBOL<br>> NAME "2"
<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/15.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #3<br>> SYMBOL<br>> NAME "3"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/30.gif"
<br>> TRANSPARENT 3<br>> END<br>><br>> #4<br>> SYMBOL<br>> NAME "4"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/45.gif"<br>> TRANSPARENT 3<br>> END<br>><br>
> #5<br>> SYMBOL<br>> NAME "5"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/60.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #6<br>> SYMBOL<br>> NAME "6"
<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/75.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #7<br>> SYMBOL<br>> NAME "7"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/90.gif"
<br>> TRANSPARENT 3<br>> END<br>><br>> #8<br>> SYMBOL<br>> NAME "8"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/105.gif"<br>> TRANSPARENT 3<br>> END<br>><br>
> #9<br>> SYMBOL<br>> NAME "9"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/120.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #10<br>> SYMBOL<br>> NAME "10"
<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/135.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #11<br>> SYMBOL<br>> NAME "11"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/150.gif"
<br>> TRANSPARENT 3<br>> END<br>><br>> #12<br>> SYMBOL<br>> NAME "12"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/165.gif"<br>> TRANSPARENT 3<br>> END<br>><br>
> #13<br>> SYMBOL<br>> NAME "13"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/180.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #14<br>> SYMBOL<br>> NAME "14"
<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/195.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #15<br>> SYMBOL<br>> NAME "15"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/210.gif"
<br>> TRANSPARENT 3<br>> END<br>><br>> #16<br>> SYMBOL<br>> NAME "16"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/225.gif"<br>> TRANSPARENT 3<br>> END<br>><br>
> #17<br>> SYMBOL<br>> NAME "17"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/240.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #18<br>> SYMBOL<br>> NAME "18"
<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/255.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #19<br>> SYMBOL<br>> NAME "19"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/270.gif"
<br>> TRANSPARENT 3<br>> END<br>><br>> #20<br>> SYMBOL<br>> NAME "20"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/285.gif"<br>> TRANSPARENT 3<br>> END<br>><br>
> #21<br>> SYMBOL<br>> NAME "21"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/300.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #22<br>> SYMBOL<br>> NAME "22"
<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/315.gif"<br>> TRANSPARENT 3<br>> END<br>><br>> #23<br>> SYMBOL<br>> NAME "23"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/330.gif"
<br>> TRANSPARENT 3<br>> END<br>><br>> #24<br>> SYMBOL<br>> NAME "24"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/345.gif"<br>> TRANSPARENT 3<br>> END<br>><br>
> #25<br>> SYMBOL<br>> NAME "25"<br>> TYPE PIXMAP<br>> IMAGE "../htdocs/images/360.gif"<br>> TRANSPARENT 3<br>> END<br>><br>><br>> and i have dumped de mapObj in a map file, in order to check the
<br>> different symbol id's for each style symbol , and the layer that has<br>> the symbols in this map file ( test.map) is shown as follows:<br>><br>><span style="background-color: rgb(255, 255, 51); font-weight: bold;">
LAYER</span><br style="background-color: rgb(255, 255, 51); font-weight: bold;"><span style="background-color: rgb(255, 255, 51); font-weight: bold;">> CLASSITEM "id_pos"</span><br>> CONNECTION "user=postgres password=2wsdfsw234rfwersw2efr4
<br>> dbname=localiza_dev host= <a href="http://10.0.0.200">10.0.0.200</a> <<a href="http://10.0.0.200/">http://10.0.0.200/</a>>"<br>> CONNECTIONTYPE POSTGIS<br>> DATA "the_geom from (SELECT client_avlsrv.id AS id_pos,
<br>> adm_vehiculos.id_vehiculo AS id_vehiculo, client_avlsrv.id_avl AS<br>> id_avl, adm_empresa_cliente.id_cliente AS id_cliente, pos_utm AS<br>> the_geom, client_avlsrv.t AS fecha_hora, vel, ang, nombres, apellidos,
<br>> marca, patente, tipo_vehiculo, substring(nombres from 0 for position('<br>> ' in (nombres || ' '))) || ' ' || substring(apellidos from 0 for<br>> position(' ' in (apellidos || ' '))) as nombre_apellido FROM
<br>> ((((client_avlsrv JOIN adm_conductores ON (client_avlsrv.id_conductor<br>> = adm_conductores.id_conductor)) JOIN adm_avls ON (adm_avls.id_avl =<br>> client_avlsrv.id_avl)) JOIN adm_empresa_cliente ON<br>> (adm_empresa_cliente.id_cliente = adm_conductores.id_cliente)) JOIN
<br>> adm_vehiculos ON (adm_vehiculos.id_avl = adm_avls.id_avl)) WHERE<br>> client_avlsrv.id IN (12998,12997,12995,12993,12992) ORDER BY<br>> client_avlsrv.id DESC ) AS foo using srid=32719 using unique id_pos"
<br>> LABELITEM "patente"<br>> METADATA<br>> END<br>> NAME "Movil localiza"<br>> SIZEUNITS PIXELS<br>> STATUS ON<br>> TEMPLATE "query.php"
<br>> TOLERANCEUNITS PIXELS<br>> TYPE POINT<br>> UNITS METERS<br>> CLASS<br>> NAME "Movil Patente 0"<br>> LABEL<br>> ANGLE 0.000000<br>> ANTIALIAS TRUE
<br>> FONT "sans"<br>> MAXSIZE 5<br>> MINSIZE 5<br>> SIZE 2<br>> TYPE TRUETYPE<br>> BUFFER 2<br>> COLOR 0 0 0<br>> FORCE TRUE
<br>> MINDISTANCE -1<br>> MINFEATURESIZE -1<br>> OFFSET 0 0<br>> OUTLINECOLOR 255 255 255<br>> PARTIALS TRUE<br>> POSITION UC<br>> END<br>> METADATA
<br>> END<br>> STYLE<br>> ANGLE 360<br>> BACKGROUNDCOLOR 255 0 0<br>> COLOR 255 0 0<br>> OUTLINECOLOR 0 0 255<br>> SIZE 25<br>> SYMBOL 19
<br>> END<br>> TEMPLATE "query.html"<br>> END<br>> CLASS<br>> NAME "Movil Patente 1"<br>> LABEL<br>> ANGLE 0.000000<br>> ANTIALIAS TRUE
<br>> FONT "sans"<br>> MAXSIZE 5<br>> MINSIZE 5<br>> SIZE 2<br>> TYPE TRUETYPE<br>> BUFFER 2<br>> COLOR 0 0 0<br>> FORCE TRUE
<br>> MINDISTANCE -1<br>> MINFEATURESIZE -1<br>> OFFSET 0 0<br>> OUTLINECOLOR 255 255 255<br>> PARTIALS TRUE<br>> POSITION UC<br>> END<br>> METADATA
<br>> END<br>> STYLE<br>> ANGLE 360<br>> BACKGROUNDCOLOR 255 0 0<br>> COLOR 255 0 0<br>> OUTLINECOLOR 0 0 255<br>> SIZE 25<br>> SYMBOL 2<br>
> END<br>> TEMPLATE "query.html"<br>> END<br>> CLASS<br>> NAME "Movil Patente 2"<br>> LABEL<br>> ANGLE 0.000000<br>> ANTIALIAS TRUE
<br>> FONT "sans"<br>> MAXSIZE 5<br>> MINSIZE 5<br>> SIZE 2<br>> TYPE TRUETYPE<br>> BUFFER 2<br>> COLOR 0 0 0<br>> FORCE TRUE
<br>> MINDISTANCE -1<br>> MINFEATURESIZE -1<br>> OFFSET 0 0<br>> OUTLINECOLOR 255 255 255<br>> PARTIALS TRUE<br>> POSITION UC<br>> END<br>> METADATA
<br>> END<br>> STYLE<br>> ANGLE 360<br>> BACKGROUNDCOLOR 255 0 0<br>> COLOR 255 0 0<br>> OUTLINECOLOR 0 0 255<br>> SIZE 25<br>> SYMBOL 2<br>
> END<br>> TEMPLATE "query.html"<br>> END<br>> CLASS<br>> NAME "Movil Patente 3"<br>> LABEL<br>> ANGLE 0.000000<br>> ANTIALIAS TRUE
<br>> FONT "sans"<br>> MAXSIZE 5<br>> MINSIZE 5<br>> SIZE 2<br>> TYPE TRUETYPE<br>> BUFFER 2<br>> COLOR 0 0 0<br>> FORCE TRUE
<br>> MINDISTANCE -1<br>> MINFEATURESIZE -1<br>> OFFSET 0 0<br>> OUTLINECOLOR 255 255 255<br>> PARTIALS TRUE<br>> POSITION UC<br>> END<br>> METADATA
<br>> END<br>> STYLE<br>> ANGLE 360<br>> BACKGROUNDCOLOR 255 0 0<br>> COLOR 255 0 0<br>> OUTLINECOLOR 0 0 255<br>> SIZE 25<br>> SYMBOL 17
<br>> END<br>> TEMPLATE "query.html"<br>> END<br>> CLASS<br>> NAME "Movil Patente 4"<br>> LABEL<br>> ANGLE 0.000000<br>> ANTIALIAS TRUE
<br>> FONT "sans"<br>> MAXSIZE 5<br>> MINSIZE 5<br>> SIZE 2<br>> TYPE TRUETYPE<br>> BUFFER 2<br>> COLOR 0 0 0<br>> FORCE TRUE
<br>> MINDISTANCE -1<br>> MINFEATURESIZE -1<br>> OFFSET 0 0<br>> OUTLINECOLOR 255 255 255<br>> PARTIALS TRUE<br>> POSITION UC<br>> END<br>> METADATA
<br>> END<br>> STYLE<br>> ANGLE 360<br>> BACKGROUNDCOLOR 255 0 0<br>> COLOR 255 0 0<br>> OUTLINECOLOR 0 0 255<br>> SIZE 25<br>> SYMBOL 23
<br>> END<br>> TEMPLATE "query.html"<br>> END<br>> END<br>><br>> i don't know what's wrong..<br>><br>> Can anybody help me ??<br>><br>><br>> Regards<br>><br>
><br>><br>> --<br>> René F. Viáncos S.<br>> Director<br>> Centro de Computación<br>> e Informática, CICULS<br>> Universidad de la Serena<br>> Tel (56-51) 204269<br>> <a href="mailto:rviancos@userena.cl">
rviancos@userena.cl</a> <mailto:<a href="mailto:rviancos@userena.cl">rviancos@userena.cl</a>><br>> <a href="http://www.userena.cl">www.userena.cl</a> <<a href="http://www.userena.cl/">http://www.userena.cl/</a>
><br>Dear René,<br>if i don't miss something there is no CLASSITEM in the Layer and no<br>EXPRESSION in the different CLASSE's. So Mapserver draws all items with<br>the style of your first class. All others are not taken into account.
<br>Just define an expression in each CLASS to do the classification and it<br>should work as expected.<br>Kind regards,<br>Peter<br><br>--<br>Mit freundlichem Gruß<br><br>Peter Freimuth<br>_________________________________________________
<br>MapMedia GmbH<br>Kartographie und raumbezogene Informationssysteme<br><br>Heilbronner Straße 10<br>D-10711 Berlin Charlottenburg<br><br>fon: +49.(0)30.89 06 82 70<br>fax: +49.(0)30.89 06 82 73<br>mail: <a href="mailto:pf@mapmedia.de">
pf@mapmedia.de</a><br>net: <a href="http://www.mapmedia.de">www.mapmedia.de</a><br>pgp: on demand<br>_________________________________________________<br><br></blockquote></div><br><br clear="all"><br>-- <br>René F. Viáncos S.
<br>Director<br>Centro de Computación<br>e Informática, CICULS<br>Universidad de la Serena<br>Tel (56-51) 204269<br><a href="mailto:rviancos@userena.cl">rviancos@userena.cl</a><br><a href="http://www.userena.cl">www.userena.cl
</a><br><br><br>_______________________<br><br>La información contenida en esta transmisión (y sus documentos adjuntos), es confidencial y no puede ser usada o difundida por personas distintas a su(s) destinatario(s). El uso no autorizado de la información contenida en esta
<br>transmisión puede ser sancionado civil y criminalmente de conformidad con la ley chilena. Si ha recibido esta transmisión por error, por favor destrúyala y notifique al remitente. Atendido que no existe certidumbre que el presente mensaje no ha sido modificado como resultado de su transmisión
<br>por correo electrónico, o retransmitido sin alteración alguna; La Univerdidad de La Serena no será responsable del contenido del mismo ni puede entenderse como emanado de sus representantes legales o transmitido con la autorización previa de ellos.