[gdal-dev] Convert shp to gml file

jim hopper JAMES.E.HOPPER at saic.com
Tue Jun 1 16:13:21 EDT 2010


I will rebuild.  Thanks!

Jim



On 6/1/10 4:07 PM, "Frank Warmerdam" <warmerdam at pobox.com> wrote:

> 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,



More information about the gdal-dev mailing list