qwat / QWAT

TEKSI Water module (project QWAT) - QGIS project
https://www.teksi.ch
GNU General Public License v2.0
58 stars 31 forks source link

QGIS : Digitize Detailled geometries for Water Structures (as example) #220

Open ponceta opened 7 years ago

ponceta commented 7 years ago

With @dsavary we thought that QGIS is not so handy when digitizing alternative geometries for new objects.

Creating a water structure as a tank or eq. with a point geometry is easy.

But then to add the detailled structure, you must change layer, select the newly created line in the attribute table, add a part geometry (and not a new geometry) which is all but clear as water for the user.

With QGEP, @m-kuhn tried another approch using contextual python actions :

image

http://qgep.github.io/docs/fr/user-guide/digitizing/digitizingdetailedgeometry.html

A better integration of this mechanic on QGIS would be nice.

m-kuhn commented 7 years ago

QGIS 3 will hopefully have better integration of additional geometry columns (QgsReferencedGeometry just got merged yesterday), so we are a step closer to this. Jumping on the train here would be great!

3nids commented 7 years ago

@m-kuhn can you explain how QgsReferencedGeometry helps here? what would be the remaining bits?

m-kuhn commented 7 years ago

So far additional geometry columns were exposed as text only, now they can be exposed as (referenced) geometries.

We need tools to work on these.

Either

3nids commented 7 years ago

I see, it's indeed quite promising.

haubourg commented 6 years ago

Is there anything new in QGIS3 concerning the additional geometry handling?

thinking of this, I think that we should keep with something less dependant of the QGIS desktop client.

I would vote for a feature action calling a stored_procedure like "select qgep_api.init_alternative_geometry('myLayer', 'myFeatureId', 'alternative_geometry_field', [object_size]);

that could create a default alternative geometry, with an optionnal default size for polygons. We could create a default octogonal or square object centered on the feature, with a default size of 2m*2m, optionnally bigger or smaller.

Thoughts?