id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	platform_version	platform	must_fix	status_info
278	2.5D/3D geometry support	holl@…	mhugent	"Hi developers,

currently I am writing a plugin for Oracle-access (similar to the postgres) through OGR. Loading a vector using QgisIface::addVectorLayer() works partly, the attribute-table gets populated with the correct attributes, but the geometry is unknown to QGIS.

The shell displays the following warning:
{{{
[...]
UNKNOWN WKBTYPE ENCOUNTERED
[...]
UNKNOWN WKBTYPE ENCOUNTERED
Debug: qgsogrprovider.cpp: 581: (getNextFeature) Feature is null
Debug: qgsvectorlayer.cpp: 948: (draw) Total features processed is 458
Debug: qgsmaprender.cpp: 285: (render) QgsMapRender::render: Done
[...]
}}}

Indeed, when I use ogrinfo to query my layers in Oracle it recognizes it at Geometry: Unknown (any).

I discussed this with Marco Off-list and he pointed out that QGIS cannot handle 3d geometry currently.
But OGR supports the following geometries so it could be included in QGIS as well:
{{{
typedef enum 
{
    wkbUnknown = 0,             /* non-standard */
    wkbPoint = 1,               /* rest are standard WKB type codes */
    wkbLineString = 2,
    wkbPolygon = 3,
    wkbMultiPoint = 4,
    wkbMultiLineString = 5,
    wkbMultiPolygon = 6,
    wkbGeometryCollection = 7,
    wkbNone = 100,              /* non-standard, for pure attribute records */
    wkbLinearRing = 101,        /* non-standard, just for createGeometry() */
    wkbPoint25D = 0x80000001,   /* 2.5D extensions as per 99-402 */
    wkbLineString25D = 0x80000002,
    wkbPolygon25D = 0x80000003,
    wkbMultiPoint25D = 0x80000004,
    wkbMultiLineString25D = 0x80000005,
    wkbMultiPolygon25D = 0x80000006,
    wkbGeometryCollection25D = 0x80000007
} OGRwkbGeometryType;
}}}

In future Versions it would be nice to have this included in QGIS, so that at least 25d layers could be loaded.

Best regards

      Stephan
"	enhancement	closed	major: does not work as expected		OGR Layer support	Trunk	fixed	Oracle OCI	marco.hugentobler@…		Debian	No	
