Re: [gdal-dev] S57 questions

2009-12-16 Thread ogr user
In case anyone is interested, here is a simple patch for the polygon outer ring issue. It's not a perfect way to detect the outer ring since in some cases inner rings can have the *same* envelope area as the outer ring, but in any practical chart case this works just fine. Calculating actual ring a

Re: [gdal-dev] How to set BoundingBox within a shapefile using OGR Pythons bindings

2009-12-16 Thread Frank Warmerdam
Daniele Romagnoli wrote: Hi list, I'm creating a shapefile using the OGR python bindings. (from the 1.6.1 installer) I have some issues in creating the boundingBox for it. This is a snippet of the code I'm using: - from osgeo import ogr from

Re: [gdal-dev] How to set BoundingBox within a shapefile using OGR Pythons bindings

2009-12-16 Thread Even Rouault
Daniele, Try: ogr.CreateGeometryFromWkt(wkt) Best regards, Even Daniele Romagnoli a écrit : Hi list, I'm creating a shapefile using the OGR python bindings. (from the 1.6.1 installer) I have some issues in creating the boundingBox for it. This is a snippet of the code I'm using: ---

Re: [gdal-dev] SWIG Version

2009-12-16 Thread Ari Jolma
Frank, SWIG 1.3.39 is ok for Perl bindings. However, it introduces (I previously used 1.3.36) a warning (125) that is related to SWIGmake.base, which can be removed by defining the complete path to the interface file in the swig command line. I committed the fix. Ari Frank Warmerdam kirjoi

Re: [gdal-dev] 1.7.0 MSYS build broken in GPX

2009-12-16 Thread Ari Jolma
Roger, I have no problems with building the GPX driver. However, I've got several problems with the basic build process with MSYS. I seem to need to run libtoolize, aclocal, and autoconf (is the libtool in repo old?). Then I need to fix the cpl_config.h with MSYS related defines (something br

[gdal-dev] How to set BoundingBox within a shapefile using OGR Pythons bindings

2009-12-16 Thread Daniele Romagnoli
Hi list, I'm creating a shapefile using the OGR python bindings. (from the 1.6.1 installer) I have some issues in creating the boundingBox for it. This is a snippet of the code I'm using: - from osgeo import ogr from osgeo import osr no

[gdal-dev] New York Code Sprint

2009-12-16 Thread Paul Ramsey
Fellow members of the C tribe! I hope the holidays find you in good spirits, and that you'll consider joining your other tribe members at the New York Code Sprint early next year: http://wiki.osgeo.org/wiki/New_York_Code_Sprint_2010 All details and planning on the wiki page. If you want to join i

Re: [gdal-dev] Death by Complexity

2009-12-16 Thread Frank Warmerdam
Ray Gardener wrote: You're right -- that post was incomprehensible. I read it twice and still wonder what it's all about. :) Ray, Given the amount of time it took me to grasp the problem (and the fact that this understanding is already fraying around the edges) I knew I wouldn't be able to exp

Re: [gdal-dev] Death by Complexity

2009-12-16 Thread Ray Gardener
You're right -- that post was incomprehensible. I read it twice and still wonder what it's all about. :) But it's a good lesson to learn. And it happens to everyone. The software is telling us "Please refactor me, even my interfaces or fundamental design if you have to, because I'm getting ove