Ahhh, I see, the wkb25DBit. <div>Thanks Even! <div><br></div><div>Giovanni<br><br><div class="gmail_quote">2013/6/5 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le mercredi 05 juin 2013 12:13:41, G. Allegri a écrit :<br>
<div class="im">> It's a long time I do not use the OGR Python APIs, but I remember I could<br>
> test layer's GetGeomType and geometry's GetGeometryType against the<br>
> integere corresponding to the<br>
> OGRwkbGeometryType enumeration [1].<br>
> Using Python-OGR from the latest Osgeo4W (Python 2.7.4 and GDAL 1.9.2) I<br>
> alwasy obtain -2147483645 (the integer type lower boundary), while ogrinfo<br>
> outputs the right type, 3D Polygon.<br>
><br>
> Am I doing something wrong?<br>
<br>
</div>No, see :<br>
<br>
$ python<br>
Python 2.6.6 (r266:84292, Oct 29 2012, 23:09:05)<br>
[GCC 4.4.3] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> from osgeo import ogr<br>
>>> ogr.wkbPolygon25D<br>
-2147483645<br>
>>> ogr.wkbPolygon | ogr.wkb25DBit<br>
-2147483645<br>
<div class="im">>>><br>
<br>
<br>
> Giovanni<br>
><br>
> [1]<br>
> <a href="http://www.gdal.org/ogr/ogr__core_8h.html#a800236a0d460ef66e687b7b65610f12a" target="_blank">http://www.gdal.org/ogr/ogr__core_8h.html#a800236a0d460ef66e687b7b65610f12a</a><br>
<br>
--<br>
</div>Geospatial professional services<br>
<a href="http://even.rouault.free.fr/services.html" target="_blank">http://even.rouault.free.fr/services.html</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a>
</div></div>