[Gdal-dev] LinearRing and GetGeometryType

Didrik Pinte dpinte at itae.be
Wed Feb 8 05:51:44 EST 2006


Hi,

I'm using the Python interface to OGR, but the problem will be
encountered in all the languages

As a subclass of OGRLineString, when calling geometry.GetGeometryType()
on a OGRLinearRing object, it returns ogr.wkbLineString type and not an
ogr.wkbLinearRing type.

It this behaviour normal ? or should it be modified ?

What should be the best fix for this problem ? 

[1] implement GetGeometryType in OGRLinearString ?
[2] if the current behaviour is the right way to do it, just fix it in
my ogr.py file redefining the GetGeometryType for the LinearRing
objects ?

Didrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060208/b6f26e6d/attachment.bin


More information about the Gdal-dev mailing list