Re: [gdal-dev] Unable to use geom.ExportToWkt() in Python ?

2010-11-23 Thread Frank Warmerdam
Gregor at HostGIS wrote: Hey all. I am using the OGR binding for python, to open a SHP and print a geometry's WKT. This works until I try to call geom.ExportToWkt() At that time I simply get Premature end of script headers Running it from the command line I get a segmentation fault. The code

Re: [gdal-dev] Unable to use geom.ExportToWkt() in Python ?

2010-11-23 Thread Gregor at HostGIS
from the geometry type and iterating over the vertices? Sent from my Verizon Wireless Phone - Reply message - From: Frank Warmerdam warmer...@pobox.com Date: Tue, Nov 23, 2010 6:31 pm Subject: [gdal-dev] Unable to use geom.ExportToWkt() in Python ? To: Gregor at HostGIS gre...@hostgis.com

Re: [gdal-dev] Unable to use geom.ExportToWkt() in Python ?

2010-11-23 Thread Frank Warmerdam
Gregor at HostGIS wrote: That's strange, the docs show ExportAsWkt as being a method of a Geometry, as does the source code for the Python wrapper. Well, you would know best... If I do spatialref.ExportAsWkt() it gives the WKT of the SRS, right? What if I want a feature's geometry? Would I

RE: [gdal-dev] Unable to use geom.ExportToWkt() in Python ? [SEC=UNCLASSIFIED]

2010-11-23 Thread Pinner, Luke
: Re: [gdal-dev] Unable to use geom.ExportToWkt() in Python ? That's strange, the docs show ExportAsWkt as being a method of a Geometry, as does the source code for the Python wrapper. Well, you would know best... If I do spatialref.ExportAsWkt() it gives the WKT of the SRS, right? What if I want

Re: [gdal-dev] Unable to use geom.ExportToWkt() in Python ? [SEC=UNCLASSIFIED]

2010-11-23 Thread Gregor at HostGIS
at HostGIS Sent: Wednesday, 24 November 2010 1:50 PM To: Frank Warmerdam Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Unable to use geom.ExportToWkt() in Python ? That's strange, the docs show ExportAsWkt as being a method of a Geometry, as does the source code for the Python wrapper. Well