[Gdal-dev] Possible bug in getGeometryType() version 1.3.0

Chapman, Martin MChapman at sanz.com
Mon Oct 10 17:27:23 EDT 2005


Sean,

Hmmm, ok that is good info.  I will dig into the 1.3.0 code and see if I can identify what exactly the problem is then.  

Thank you very much,
Martin


-----Original Message-----
From: Sean Gillies [mailto:sgillies at frii.com] 
Sent: Monday, October 10, 2005 3:03 PM
To: Chapman, Martin
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Possible bug in getGeometryType() version 1.3.0

On Oct 10, 2005, at 2:48 PM, Chapman, Martin wrote:

> Frank,
>  
> When I call pOgrGeometry->getGeometryType(); in version 1.3.0 it 
> returns the wrong value (basically an unsigned int value) for esri 
> shape files that contain point geometry.  Polygons and LineStrings 
> work as expected.  Can you confirm that this is a bug?  This is on 
> Windows XP, haven't tried it on Linux yet, but I will shortly.
>  
> Best regards,
> Martin

Martin,

I ran into something like this last night on Linux. The data were 
points digitized using QGis 0.7. Ogrinfo reported this shapefile as 
containing 3D points, and getGeometryType returned an invalid value. I 
used ogr2ogr with -nlt POINT to coerce these into "normal" points with 
GeometryType 1.

Sean

--
Sean Gillies
sgillies at frii dot com
http://zcologia.com




More information about the Gdal-dev mailing list