[gdal-dev] (no subject)

Federico Jurio federicojurio at suremptec.com.ar
Fri Nov 8 13:41:07 PST 2013


Hi all, I have a csv file named test.csv with the asociated test.vrt

*test.vrt*
<OGRVRTDataSource>
    <OGRVRTLayer name="test">

<SrcDataSource>C:\\Users\\FedericoJurio\\Desktop\\test.csv</SrcDataSource>
        <GeometryType>wkbPoint</GeometryType>
        <LayerSRS>WGS84</LayerSRS>
        <GeometryField encoding="PointFromColumns" x="Longitude"
y="Latitude"/>
    </OGRVRTLayer>
</OGRVRTDataSource>

*test.csv*
Latitude,Longitude,Name
48.1,0.25,"First point"
49.2,1.1,"Second point"
47.5,0.75,"Third point"

In my code i can add the vrt file to the datasource successfully but when i
try to check the TestCapability(OLCRandomRead) from the correct layer
returns FALSE and i don't no why. Gdal can read the file from the console
with ogrinfo and everithing seems to be fine

*ogrinfo test.vrt*
INFO: Open of `test.vrt'
      using driver `VRT' successful.
1: test (Point)

Does anyone have any idea of why TestCapability returns false?

Thanks in advance,
Regards

-- 
Federico Jurio
SUR Emprendimientos Tecnológicos

Perú 345  Piso 5to Oficina "B" (C1067AAG)
Ciudad de Buenos Aires, Argentina
Tel. +54 (11) 4342-2976/84
federicojurio at suremptec.com.ar
www.suremptec.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131108/c8e5ea0f/attachment-0001.html>


More information about the gdal-dev mailing list