Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

How to convert CSV file in VRT

$
0
0

Im a geomatics student.

For the treatment I would like to make, I use the gdal executable in QGIS file, with a DOS command.

I have a csv file like this (test.csv) :

  X       Y
-5.48   42.81
-4.78   42.52
-5.06   42.02

This coordinates are GCP. I would like to convert my csv file in a VRT. On the internet, I found example like :

<OGRVRTDataSource>
    <OGRVRTLayer name="test">
        <SrcDataSource>test.csv</SrcDataSource>
        <GeometryType>wkbPolygon</GeometryType>
        <LayerSRS>WGS84</LayerSRS>
        <Field name="id" src="id" />
        <GeometryField encoding="WKT" field="geo" />
    </OGRVRTLayer>
</OGRVRTDataSource>

Simply, I don’t know where to put this line. Should I put them in a DOS command in my QGIS file ?

Any help would be greatly appreciated


Viewing all articles
Browse latest Browse all 397

Trending Articles