Hi
I'm having trouble importing a gml file to Oracle using ogr2ogr. The import
works but ignores 3d points. I am using a .gfs template and the following
script:
C:\OSGeo4W64\OSGeo4W.bat for /R %%f in (*.gml) do ogr2ogr -f OCI
OCI:schema/password@owner:TABLE "%%~dpnf.gml" --config GML_GFS_TEMPLATE
template.gfs -append -addfields -relaxedFieldNameMatch
An extract of the gml:
<net:geometry>
<gml:Point srsName="urn:ogc:def:crs:EPSG::7405"
gml:id="osgb5000005143866540_geom">
<gml:pos>457436.880 1200753.970 92.854</gml:pos>
</gml:Point>
</net:geometry>
My template includes the following, to set the point geometry to
<ElementPath>HydroNode</ElementPath>
<GeometryType>-2147483647</GeometryType>
<SRSName>EPSG:27700</SRSName>
The resulting row in oracle MDSYS_SDO_GEOMETRY:
MDSYS.SDO_GEOMETRY(2001, NULL, MDSYS.SDO_POINT_TYPE(418363.37, 1157184.19,
NULL), NULL, NULL)
So that the SRID is set to NULL, and the coordinates set the Z type to null
also.
Hoping someone can help.
Olivia Gill
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev