<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">Unfortunatelly it doesn't help. I have
tried with:</font>
<br>
<br><font size=2 face="sans-serif">queryByAttributes(&quot;[KOORDINATAX]&quot;,
( [KOORDINATAX] = 5460870 ), MS_MULTIPLE);</font>
<br>
<br><font size=2 face="sans-serif">and with</font>
<br>
<br><font size=2 face="sans-serif">queryByAttributes(&quot;[KOORDINATAX]&quot;,
5460870, MS_MULTIPLE);</font>
<br>
<br><font size=2 face="sans-serif">Neither one gives results :-(</font>
<br>
<br><font size=2 face="sans-serif">dejan</font>
<br>
<br><tt><font size=2>Maher Karim &lt;Maher_Karim@dorsch.com.jo&gt; wrote
on 18.05.2009 07:28:19:<br>
<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; HI,<br>
&gt; Please consider that there is a difference the field name definintion
for<br>
&gt; the item query, the field name is differenet when you are using shapefiles<br>
&gt; than PostGIS tables.<br>
&gt; Try to use<br>
&gt; $strExp=( [KOORDINATAX] = 5460870 );<br>
&gt; queryByAttributes('itemname',$strExp,MS_MULTIPLE)<br>
&gt; <br>
&gt; and if Not working try<br>
&gt; queryByAttributes( [KOORDINATAX],5460870,MS_MULTIPLE)<br>
&gt; <br>
&gt; Hope that it helps<br>
&gt; <br>
&gt; Regards<br>
&gt; Maher<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; |---------+---------------------------------------&gt;<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Dejan.Gambin@pula.hr &nbsp; &nbsp; &nbsp; &nbsp;|<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
Sent by: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;|<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
mapserver-users-bounces@list|<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
s.osgeo.org &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; |<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; |<br>
&gt; | &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
05/18/2009 12:50 AM &nbsp; &nbsp; &nbsp; &nbsp; |<br>
&gt; |---------+---------------------------------------&gt;<br>
&gt; &nbsp; <br>
&gt; &gt;--------------------------------------------------------------------------------------------------------------------------------------------------<br>
&gt; |<br>
&gt; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>
&gt; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp;To: &nbsp; &nbsp; &nbsp;mapserver-users@lists.osgeo.org
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; |<br>
&gt; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp;cc: &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>
&gt; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp;Subject: [mapserver-users] queryByAttributes
returns no <br>
&gt; result with OGR/ODBC &nbsp; &nbsp; data source &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>
&gt; &nbsp; <br>
&gt; &gt;--------------------------------------------------------------------------------------------------------------------------------------------------<br>
&gt; |<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Hi,<br>
&gt; <br>
&gt; I am using OGR Virtual Spatial Data to connect to MS Access database
using<br>
&gt; ODBC. Database has X/Y columns. I have created .ovf file like this:<br>
&gt; <br>
&gt; &lt;OGRVRTDataSource&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;OGRVRTLayer name=&quot;krk&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;SrcDataSource&gt;ODBC:@Krk&lt;/SrcDataSource&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;FID&gt;ID&lt;/FID&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;SrcLayer&gt;Dozvole&lt;/SrcLayer&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;GeometryField encoding=&quot;PointFromColumns&quot;
x=&quot;KoordinataX&quot;<br>
&gt; y=&quot;KoordinataY&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/OGRVRTLayer&gt;<br>
&gt; &lt;/OGRVRTDataSource&gt;<br>
&gt; <br>
&gt; It is all working fine and the points are showing on the map (using<br>
&gt; p.mapper). Alos, ogrinfo with -where clause is working fine. But the<br>
&gt; attribute query gives no result, whichever field I query. Query string
is<br>
&gt; like:<br>
&gt; <br>
&gt; ( [KOORDINATAX] = 5460870 )<br>
&gt; <br>
&gt; This syntax works fine with shape files and also wit OGR layers based
on<br>
&gt; MapInfo files. But not with ODBC/Access.<br>
&gt; <br>
&gt; I am using ms4w 2.2.7<br>
&gt; <br>
&gt; Any help?<br>
&gt; <br>
&gt; regards, dejan_______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; mapserver-users@lists.osgeo.org<br>
&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
&gt; <br>
&gt; <br>
</font></tt>