<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I am using OGR Virtual Spatial Data
to connect to MS Access database using ODBC. Database has X/Y columns.
I have created .ovf file like this:</font>
<br>
<br><font size=2 face="sans-serif">&lt;OGRVRTDataSource&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;OGRVRTLayer
name=&quot;krk&quot;&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;SrcDataSource&gt;ODBC:@Krk&lt;/SrcDataSource&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;FID&gt;ID&lt;/FID&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;SrcLayer&gt;Dozvole&lt;/SrcLayer&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;GeometryField
encoding=&quot;PointFromColumns&quot; x=&quot;KoordinataX&quot; y=&quot;KoordinataY&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/OGRVRTLayer&gt;</font>
<br><font size=2 face="sans-serif">&lt;/OGRVRTDataSource&gt;</font>
<br>
<br><font size=2 face="sans-serif">It is all working fine and the points
are showing on the map (using p.mapper). Alos, ogrinfo with -where clause
is working fine. But the attribute query gives no result, whichever field
I query. Query string is like:</font>
<br>
<br><font size=2 face="sans-serif">( [KOORDINATAX] = 5460870 )</font>
<br>
<br><font size=2 face="sans-serif">This syntax works fine with shape files
and also wit OGR layers based on MapInfo files. But not with ODBC/Access.</font>
<br>
<br><font size=2 face="sans-serif">I am using ms4w 2.2.7</font>
<br>
<br><font size=2 face="sans-serif">Any help?</font>
<br>
<br><font size=2 face="sans-serif">regards, dejan</font>