[Gdal-dev] Wrong geometry type detected

Chapman, Martin MChapman at sanz.com
Mon Jan 30 15:46:05 EST 2006


If that doesn't work just call flattenTo2D() before using the geometry
and that will make sure it's 2D.

Martin

-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Frank
Warmerdam
Sent: Monday, January 30, 2006 12:12 PM
To: Petteri Packalen
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Wrong geometry type detected

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

_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list