-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OGC API Features - Part 4: Create Replace Delete #152
base: master
Are you sure you want to change the base?
OGC API Features - Part 4: Create Replace Delete #152
Conversation
Part4 - Create, Replace, Delete
This needs a better title. Have you looked at PR #127? In particular, see this requirement about enabling update capabilites via a config setting. |
Yes, looked at the PR. As for configuration requirement to enable transactions, it is a valid observation. My understanding is that pg_featureserv phylosophy is to rely on the database to handle acces control. I think it goes beyond simple on/off, and requires configuration to enforce optimistic locking. |
This does seem simpler. And fewer (or no) dependencies is better. |
Yes, and ideally
Can you elaborate? |
Hi @fredmorin, I am wondering the status of this PR. I'm hoping to implement a WFS-T server for QGIS editing, and this PR looks like it might be almost there. It looks from the linked issue that there might be a problem on their end blocking editing on the QGIS platform. Is that the current status? Is the WFS-T implementation here complete on its own terms? Thanks. |
Part4 - Create, Replace, Delete
Related issue: #4
Support for Part4 Create, Replace, Delete
Create feature
POST query to the path
/collections/{collid}/items
allows to createa new feature in a feature collection.
The geojson feature must be part of the request body.
If the geometry geometry crs is different from the storage crs, the geometry will be transformed.
Missing properties will be ignored and the table default value for the column will be applied.
The id specified in the body is ignored and the database default value is used to create the feature.
Example
Replace feature
PUT query to the path
/collections/{collid}/items/{fid}
allows to replacea feature in a feature collection.
The geojson feature must be part of the request body.
If the geometry geometry crs is different from the storage crs, the geometry will be transformed.
Missing properties will be replaced with null (unless a database trigger is applied)
The id specified in the body is ignored.
Example
Delete feature
DELETE query to the path
/collections/{collid}/items/{fid}
allows to deletea feature in a feature collection.
Example