[Gdal-dev] GML with ogr2ogr
Frank Warmerdam
warmerdam at pobox.com
Thu Apr 3 11:26:33 EST 2003
Kalev Ala wrote:
> How to use GML driver with ogr2ogr?
>
> % ogr2ogr -f GML this.gml OCI:usr/pwd at db my_feature -where "id = 0"
>
> produces invalid XML with two top-level elements. There was schema and GML in one file.
>
> Are there any format specific layer creation options?
>
> I was playing with gdal-cvs-030318
Kalev,
OK, this is fixed in CVS now. The default action now is to write a .xsd file
with the same basename as the GML file. The XSISCHEMAURL creation option may
be used to turn off schema writing, and force a reference to an existing
schema file. The XSISCHEMA=INTERNAL option may be used to force schema
info to be written internally in the .gml file in the broken way you saw.
XSISCHEMA=OFF can be used to disable all reference schema files. The default
is now XSISCHEMA=EXTERNAL.
You can pick up the next nightly snapshot, or pull directly from CVS.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list