I've created Postgres/PostGIS sequences before to assign unique gid values when a feature is created in QGIS but is it possible to create a sequence that will automatically populate an area column? Equally would it be possible for a sequence to be created to calculate the length of a line and even better the X Y values of a point?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
Here's a sample I use to update both lon/lat columns and x-y columns each time a point is added
|
|||
|
|
|
triggers can do that for you. Search for example, you have a plsql function that uses x y data to fill geometry column. Régis |
||||
|
|
|
A sequence isn't what you want here. You are looking for Triggers and Rules Example coming |
|||
|
|
