Thanks Tamas...<br>I found the problem...<br><br>The correct filter to postgis is :<br><br>"(gid='10')"<br><br><div class="gmail_quote">On Mon, Apr 6, 2009 at 12:11 PM, Tamas Szekeres <span dir="ltr"><<a href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Then the filter is passed directly to the database in the SQL WHERE clause. You might want to enable logging the SQL statements at the server and see what gets executed when the layer is drawn.<br>
<br>Best regards,<br><br>
Tamas<br><br><br><br><div class="gmail_quote">2009/4/6 Paul james <span dir="ltr"><<a href="mailto:pauljame@gmail.com" target="_blank">pauljame@gmail.com</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Tamas!<br>Itīs a Postgis layer...And the extent is fine...<br>Any ideia?<br><br>Thanks<div><div></div><div><br><br><div class="gmail_quote">On Sat, Apr 4, 2009 at 3:52 PM, Tamas Szekeres <span dir="ltr"><<a href="mailto:szekerest@gmail.com" target="_blank">szekerest@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Paul,<br><br>Which data source are you using? It highly depends on the type of the data source how the filter is interpreted by mapserver.<br>
Are you sure there are matching features within the extent you have?<br><br>Best regards,<br>
<br>Tamas<br><br><br><br><div class="gmail_quote">2009/4/3 Paul james <span dir="ltr"><<a href="mailto:pauljame@gmail.com" target="_blank">pauljame@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>
Hello guys...<br>I got a problem...<br>My code :<br><br>----<br>var _filter = "('[gid]'='10')"; <br>var _layer = _map.MapObj.getLayerByName("X"); <br><br>var _lC = _layer.clone(); <br>
_lC.setFilter(_filter); <br>_lC.name = "Dummy";<br>_lC.status = 1;<br>_lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250);<br>_lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0);<br>_map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1);<br>
....<br>-----<br><br>No error, but the filter layer doest <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: collapse; font-family: Arial; white-space: pre;">appear... If I took of the filter line, the layer shows up ok...<br>
<br>Any idea?<br><br>[]īs<br></span></span>
<br></div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>
</blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>