Re: [gdal-dev] Problem converting .gml to shapefile

2009-09-28 Thread Chaitanya kumar CH
Adrian, May be the problem is with xerces. OGR's GML driver has some problems with the latest xerces3 xml parser. It works perfectly with xerces 2.8, however. I'm looking into the xerces 3 support now. On Mon, Sep 28, 2009 at 10:42 PM, Chaitanya kumar CH wrote: > Adrian, > > I was not able to re

Re: [gdal-dev] Re: can ogr2ogr split polygons that cross 180 degree longitude

2009-09-28 Thread Even Rouault
Selon Hermann Peifer : I've finally added a new switch to ogr2ogr : -wrapdateline. See http://trac.osgeo.org/gdal/ticket/3158 > Even, > > Thanks for the possible algorithm but to be honest: some sort of > command line switch would be /somewhat more handy/, for non-programmers > like me. > > H

Re: [gdal-dev] Re: can ogr2ogr split polygons that cross 180 degree longitude

2009-09-28 Thread Hermann Peifer
Even, Thanks for the possible algorithm but to be honest: some sort of command line switch would be /somewhat more handy/, for non-programmers like me. Hermann Even Rouault wrote: Selon Hermann Peifer : I think this should be prefectly doable with some code/script just using OGR API.

[gdal-dev] Help with coordinate transformations in OGR

2009-09-28 Thread Alexandre Gacon
Hi, Thanks for the great tool you give us with the OGR library. I actually meet some problems with a specific coordinate transformation : I need to transform coordinates from the NTF Lambert II Etendu system (EPSG:27572) to WGS84 (EPSG:4326). When I 'simply' transform a shapefile with ogr2ogr in

Re: [gdal-dev] Re: can ogr2ogr split polygons that cross 180 degree longitude

2009-09-28 Thread Even Rouault
Selon Hermann Peifer : I think this should be prefectly doable with some code/script just using OGR API. Here's a possible algorithm : 1) Create a new empty WGS84 shapefile 1) Loop over features in the source shapefile (the one after reprojection to WGS84) 2a) If the polygon has points with long