linz / gazetteer

New Zealand Gazetteer of official place names
http://www.linz.govt.nz/regulatory/place-names/find-name/new-zealand-gazetteer-official-geographic-names/new-zealand-gazetteer-search-place-names#zoom=0&lat=-41.14127&lon=172.5&layers=BTTT
Other
2 stars 2 forks source link

New feature IDs for postgres layers that are auto incremental fields are not being populated #158

Closed SPlanzer closed 3 years ago

SPlanzer commented 3 years ago

When saving a geometry the below is being raised

Python error: An error has occurred while executing Python code: See message log (Python Error) for more details.

This is because when editing a postgres feature the ID fields are not populated from the server side.

SPlanzer commented 3 years ago

This is not related to database sequences but rather the source code should be getting the feature_id from the feature open and being edited.

The database will then auto increment the geom_id.

This may be related to #156 that appears to the a symptom of the proper geom editing workflow noting being initiated.

SPlanzer commented 3 years ago

Addressed by 162.

The postgres data-provider was no the issue.

The UI Edit Form and its code to get default field values was not being executed.