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

Z coordinate management ( altimetry) #74

Closed vpicavet closed 8 years ago

vpicavet commented 8 years ago

The altitude ( z coordinate) is stored inside QgsGeometry objects. We can access it via an expression z($geometry)

The z coordinates of vertices should now be displayed and editable in the node tool dock. It does not seem to work with the PostGIS driver.

mhugo commented 8 years ago

I've just tested in the last master, and there is "Vertex editor" dock widget that allows to edit thz Z coordinate of a node. Successfully tested on two postgis tables with 3D points and 3D linestrings

3nids commented 8 years ago

main problem is when creating new features, not editing. If you have create geometry column using postgis 2 (ALTER TABLE...ADD COLUMN) and not v 1 (AddGeometryColumn), you can't commit the feature.

mhugo commented 8 years ago

Indeed, reproduced. I am on it

mhugo commented 8 years ago

PR https://github.com/qgis/QGIS/pull/2703

mhugo commented 8 years ago

Merged in master. To be tested

vpicavet commented 8 years ago

Closing, Reopen if commited code has problems