[Gdal-dev] Wrong geometry type detected

Frank Warmerdam warmerdam at pobox.com
Mon Jan 30 14:12:17 EST 2006


On 1/30/06, Petteri Packalen <packalen at cs.joensuu.fi> wrote:
> Frank et al.
>
> I observed that the OGR recognizes incorrect point type in some occasions.
> When the real point type is wkbPoint25D but the Z-value is exactly zero
> getGeometryType() returns wkbPoint. This happens at least when the
> shapefile driver is used (GDAL 1.2.6.0).
>
> I cannot see this to be preferred logic, or do I miss something?

Petteri,

There was a major overhaul of OGR geometry in the
early fall of 2005 to carry along coordinate dimension
information explicitly.   That overhaul should fix the particular
problem you are seeing.

I would encourage you to upgrad eto GDAL 1.3.1.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list