[Gdal-dev] GML file problems

Dan Putler putler at sauder.ubc.ca
Fri Sep 8 19:13:13 EDT 2006


Hi All,

I'm attempting to use ogr2ogr for the purposes of converting a file  
encoded in GML2.1.2 to a shapefile, but ogr2ogr is not recognizing it  
as a GML file. I'm using the version of gdal/ogr bundled with FWTools  
1.0.5.

Here is the GML file I'm trying to use as a source:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<PostalCodeLookup version="1.0.0" xmlns:xsi="http://www.w3.org/2001/ 
XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://cgdi- 
dev.geoconnections.org/prototypes/schemas/cgdi/postalcode/1.0.0/ 
postalcode.xsd" xmlns:gml="http://www.opengis.net/gml">
	<gml:boundedBy>
		<gml:Null>inapplicable</gml:Null>
	</gml:boundedBy>
	<PostalCodeResultSet sortArea="FSA">
		<PostalCode>
			<gml:name>V1A</gml:name>
			<Placename>Kimberley</Placename>
			<ProvinceOrTerritory>BC</ProvinceOrTerritory>		
			<gml:centerOf>
				<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
					<gml:coordinates>-115.970116,49.660305</gml:coordinates>
				</gml:Point>
			</gml:centerOf>
		</PostalCode>
	</PostalCodeResultSet>
</PostalCodeLookup>

Dan



More information about the Gdal-dev mailing list