I change my sql- postgis to:<br><br>the_geom from (<br>
SELECT<br>
*<br>
FROM VIAS<br>
WHERE id_subcapa_espacial=116 and cod_carto='VTS'<br>
) as tabla_temporal using srid=21891 using unique id_via<br>
<br>Note I use " cod_carto='VTS' ". This SQL function OK and only results whith cod_carto='VTS', but classes<br>whit expression '[cod_carto]' = 'VTS' not return true.<br><br>Thanks for help!!!!<br><br><br>THIS IS LAYER OF MAPFILE:
<br>****************************<br><br> LAYER<br> CLASSITEM "cod_carto"<br> CONNECTION "user=postgres password=root dbname=SIRA host=localhost"<br> CONNECTIONTYPE POSTGIS<br> DATA "the_geom from (
<br>SELECT<br> *<br>FROM VIAS<br>WHERE id_subcapa_espacial=116 and cod_carto='VTS'<br>) as tabla_temporal using srid=21891 using unique id_via<br><br>"<br> LABELITEM "nombre"<br> METADATA<br> "layer_index" "0"
<br> "selected" "0"<br> "LEGEND_ORDER" "0"<br> END<br> NAME "vias palo"<br> SIZEUNITS PIXELS<br> STATUS ON<br> TOLERANCE 5<br> TOLERANCEUNITS PIXELS
<br> TYPE LINE<br> UNITS METERS<br> CLASS<br> NAME "DEFAULT"<br> LABEL<br> ANGLE 0.000000<br> ANTIALIAS TRUE<br> FONT fritqat<br> MAXSIZE 256<br> MINSIZE 4<br>
SIZE 7<br> TYPE TRUETYPE<br> BUFFER 0<br> COLOR 0 0 0<br> FORCE FALSE<br> MINDISTANCE -1<br> MINFEATURESIZE -1<br> OFFSET 0 0<br> OUTLINECOLOR 255 255 255<br>
PARTIALS TRUE<br> POSITION UL<br> END<br> METADATA<br> END<br> STYLE<br> ANGLE 360<br> COLOR 0 0 255<br> OUTLINECOLOR 0 0 0<br> SYMBOL 0<br> END<br> TEMPLATE "ttt"
<br> END<br> CLASS<br> NAME "('[cod_carto]' = 'VTS')"<br> EXPRESSION ('[cod_carto]' = 'VTS')<br> LABEL<br> ANGLE 0.000000<br> ANTIALIAS TRUE<br> FONT fritqat<br> MAXSIZE 256
<br> MINSIZE 4<br> SIZE 7<br> TYPE TRUETYPE<br> BUFFER 0<br> COLOR 0 0 0<br> FORCE FALSE<br> MINDISTANCE -1<br> MINFEATURESIZE -1<br> OFFSET 0 0<br> OUTLINECOLOR 255 255 255
<br> PARTIALS TRUE<br> POSITION UL<br> END<br> METADATA<br> END<br> STYLE<br> ANGLE 360<br> COLOR 255 0 0<br> OUTLINECOLOR 0 0 0<br> SYMBOL 0<br> END<br>
TEMPLATE "ttt"<br> END<br> CLASS<br> NAME "('[cod_carto]' = 'vts')"<br> EXPRESSION ('[cod_carto]' = 'vts')<br> LABEL<br> ANGLE 0.000000<br> ANTIALIAS TRUE<br> FONT fritqat
<br> MAXSIZE 256<br> MINSIZE 4<br> SIZE 7<br> TYPE TRUETYPE<br> BUFFER 0<br> COLOR 0 0 0<br> FORCE FALSE<br> MINDISTANCE -1<br> MINFEATURESIZE -1<br> OFFSET 0 0
<br> OUTLINECOLOR 255 255 255<br> PARTIALS TRUE<br> POSITION UL<br> END<br> METADATA<br> END<br> STYLE<br> ANGLE 360<br> COLOR 176 152 0<br> OUTLINECOLOR 0 0 0
<br> SYMBOL 0<br> END<br> TEMPLATE "ttt"<br> END<br> END<br><br><br><br><div><span class="gmail_quote">2006/11/13, Orlando Giovanny Solarte Delgado <<a href="mailto:orsolarte@gmail.com">orsolarte@gmail.com
</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I forget say my data are stored on PostGIS!!!!. <br><br><div><span class="gmail_quote">
2006/11/13, Jeff McKenna <<a href="mailto:jmckenna@dmsolutions.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jmckenna@dmsolutions.ca</a>>:</span><div><span class="e" id="q_10ee1fd84c3be6cd_1">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would try to see if OGR/GDAL can find those values using the ogrinfo<br>utility and the sql switch:<br><br>e.g. ogrinfo -ro PG:dbname=warmerda -sql "SELECT pop_1994 from canada<br>where province_name = 'Alberta'"
<br><br>If that works, I have no idea what is wrong.<br><br><br>jeff<br><br><br><br><br>Orlando Giovanny Solarte Delgado wrote:<br>> Hi.<br>><br>> When I use an EXPRESSION in my map file using FIELD STRING, the<br>
> condition never returns as true, even though I know the values exist in<br>> my table. <<a href="http://postgis.refractions.net/docs/ch04.html#id2525201" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://postgis.refractions.net/docs/ch04.html#id2525201</a>
><br>><br>> I am doing something like:<br>><br>> CLASSITEM "cod_carto"<br>><br>> CLASS...<br>> EXPRESSION "vts"<br>> ...<br>> END<br>> CLASS..<br>> EXPRESSION "VTS"
<br>> END<br>><br>> I am using both lower an upper case, I know VTS value exist in my table<br>> postgis, but never returns as true.<br>><br>> Somebody can help me?<br>><br>> --<br>> Atentamente,
<br>><br>> Orlando Giovanny Solarte Delgado<br>> Ing. Desarrollador SIG<br>> Emprendedor BioSIG<br>><br>><br><br>--<br>Jeff McKenna<br>DM Solutions Group Inc.<br><a href="http://www.dmsolutions.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.dmsolutions.ca
</a><br>_______________________________________________<br>ms4w-users mailing list<br><a href="mailto:ms4w-users@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ms4w-users@lists.maptools.org
</a><br><a href="http://lists.maptools.org/mailman/listinfo/ms4w-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.maptools.org/mailman/listinfo/ms4w-users</a><br></blockquote></span></div></div><div><span class="e" id="q_10ee1fd84c3be6cd_3"><br><br clear="all"><br>-- <br>Atentamente, <br><br>Orlando Giovanny Solarte Delgado
<br>Ing. Desarrollador SIG<br>Emprendedor BioSIG
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Atentamente, <br><br>Orlando Giovanny Solarte Delgado<br>Ing. Desarrollador SIG<br>Emprendedor BioSIG