[Gdal-dev] Re: GML generation
Jørn Vegard Røsnes
jorn at spacetec.no
Mon Jan 23 10:12:02 EST 2006
On Monday 23 January 2006 15:45, Jørn Vegard Røsnes wrote:
> Hi all,
>
> can ogr2ogr be used to convert CSV to GML?
>
I can partly answer this myself, but the output is not correct
platform.csv
x,y,id
-233950.35,6518319.86,16/11-S
-213912.58,6338485.11,2/4-EFS
-222473.01,6329200.33,2/4-FTP
platform.vrt
<OGRVRTDataSource>
<OGRVRTLayer name="platforms">
<SrcDataSource
relativeToVRT="0">/home/jorn/ogr_trials/platform.csv</SrcDataSource>
<SrcLayer>platform</SrcLayer>
<GeometryType>wkbPoint</GeometryType>
<GeometryField encoding="PointFromColumns" x="x" y="y"/>
<LayerSRS>epsg:32633</LayerSRS>
</OGRVRTLayer>
</OGRVRTDataSource>
GML output:
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ output.xsd"
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml">
</ogr:FeatureCollection>
More information about the Gdal-dev
mailing list