[gdal-dev] Convert shp to gml file
Frank Warmerdam
warmerdam at pobox.com
Tue Jun 1 16:07:02 EDT 2010
jim hopper wrote:
> I used the following to do the conversion:
>
> ogr2ogr -f GML test.gml test.shp
>
> I got a file test.gml and test.xsd which appear to have the polygons and
> geometry in them. When I try to look at it with ogrinfo I get
>
> ERROR 1: Unable to create Xerces C++ based GML reader, Xerces support
> not configured into GDAL/OGR.
> ERROR 1: File test.gml appears to be GML but the GML reader can't
> be instantiated, likely because Xerces support wasn't
> configured in.
>
> But I did configure it in, and in fact ogr2ogr found support.
>
> Is there some way that it can output GML and not read it because I messed
> up the configure, or is there another reason besides not compiling in xml
> that might cause this problem?
Jim,
The GML writer just uses printf, and has no dependency on an XML library.
So it is easy to get GML write support without GML read support.
I imagine you either didn't do a clean build after reconfiguring with
Xerces, or you aren't running the build you think you are.
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