Skip to content
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

Add project properties support #81

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

pblottiere
Copy link
Owner

This PR adds a generic method to handle all QGIS project properties based on readEntry and writeEntry methods. For now only WMSAddWktGeometry and WMSPrecision are registered (to fix #70), but more can be easily added in the future (PAL, service capabilities, WMS, ...).

For example to retrieve all properties for a specific project:

$ curl "http://localhost:5000/api/projects/my_project/properties"
{
  "wms": {
    "getfeatureinfo_geometry": false,
    "getfeatureinfo_geometry_precision": 8
  }
}

Then to update specific properties:

curl "http://localhost:5000/api/projects/my_project/properties" \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{
    "wms": {
      "getfeatureinfo_geometry": true
    }
  }'

@pblottiere pblottiere added this to the v1.1.0 milestone Sep 24, 2024
@pblottiere
Copy link
Owner Author

Hello @JakobMiksch,

What do you think about this PR?

@pblottiere pblottiere modified the milestones: v1.1.0, v1.2.0 Sep 24, 2024
@JakobMiksch
Copy link
Contributor

elegant idea. this would make #75 superfluous as well I guess.

regarding the naming. This PR uses the term getfeatureinfo_geometry and translates it to WMSAddWktGeometry. This is indeed more userfriendly as API user, but a lot of work to implement. I am just wondering, if the API user could instantly edit the QGIS Projects using the terms used in the QGIS project file directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to add Geometry to GetFeatureInfo Request
2 participants