qgis / qgis4.0_api

Tracker for QGIS 4.0 API related issues and developer discussion
3 stars 1 forks source link

Multiple geometry columns #21

Open m-kuhn opened 8 years ago

m-kuhn commented 8 years ago

Situation is: additional geometry columns are internally propagated as EKWT (SRID=XXX;WKT)

Proposal: propagate them as QgsGeometry internally and move the CRS information to the field definition.

nyalldawson commented 8 years ago

I would VERY much like to see this, as it would open up lots of possibilities such as:

It would also allow us to make the attribute table usable for layers with multiple geometry columns. Currently the conversion to EKWT can result in huge strings, which kill performance in the attribute table.

I would like to see the the attribute table use a special "geometry widget" to display additional geometries - see eg https://github.com/nyalldawson/QGIS/commit/0b14f82b411bc5c68b8cbab49a9a1dfbb86bca65 (more of a proof-of-concept than anything usable - but allows easy copying of geometry as wkt/json and pasting geometries into an existing row, or removing geometries from a row) and http://hub.qgis.org/issues/10283

haubourg commented 7 years ago

+1 !