Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Xiaoyu Guan
Dear Ari and Frank: Thanks very much for helping figure out the problem. Yes, I have checked. I am using Xerces 2.7+ GDAL 1.6 win32. but I download the lastest one from http://download.osgeo.org/gdal/win32/1.6/gdalwin32exe160.zip It is would be nice to replace Xerces 2.7 with 3.0 in that packages.

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Ari Jolma
Frank Warmerdam kirjoitti: Ari Jolma wrote: Frank Warmerdam kirjoitti: Xiaoyu Guan wrote: The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml but the polygon.shp file does not contain the first feature's and the third feature's attribute Interesting

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Frank Warmerdam
Ari Jolma wrote: Frank Warmerdam kirjoitti: Xiaoyu Guan wrote: The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml but the polygon.shp file does not contain the first feature's and the third feature's attribute and this seemed to produce a shapefil

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Ari Jolma
Frank Warmerdam kirjoitti: Xiaoyu Guan wrote: The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml but the polygon.shp file does not contain the first feature's and the third feature's attribute and this seemed to produce a shapefile with all three f

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Frank Warmerdam
Xiaoyu Guan wrote: Hi Frank: Thanks very much for your reply. About GML files, actually, I grab The GML files from OpenLayers.org. as you know OpenLayers can read GML files directly. The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml You have to chang

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-18 Thread Xiaoyu Guan
Hi Frank: Thanks very much for your reply. About GML files, actually, I grab The GML files from OpenLayers.org. as you know OpenLayers can read GML files directly. The GML which i used is located at http://www.openlayers.org/dev/examples/gml/multipolygon.xml You have to change xml to gml by yoursel

Re: [gdal-dev] help! convert GML to Shp by using python

2008-12-17 Thread Frank Warmerdam
Xiaoyu Guan wrote: Dear All: I would like to use GDAL/OGR library for converting GML files to Shp files. I have look around on internet. there are a lot of people use OGR2OGR convert them. I have already try use ogr2ogr , convert gml to shp. unfornately, the result is not what I expected. for

[gdal-dev] help! convert GML to Shp by using python

2008-12-17 Thread Xiaoyu Guan
Dear All: I would like to use GDAL/OGR library for converting GML files to Shp files. I have look around on internet. there are a lot of people use OGR2OGR convert them. I have already try use ogr2ogr , convert gml to shp. unfornately, the result is not what I expected. for example. I convert one p