qgis / qwc2-demo-app

QWC2 demo application
Other
243 stars 155 forks source link

generate getFeatureInfo Form from a json file #359

Closed claudiadragoste closed 2 years ago

claudiadragoste commented 2 years ago

Hello,

I saw that I can customize the Attribute Form in the qgis project and then I can see it on the web when I do getFeatureInfo (Identify). My question is: is there a way to generate the form from a json file? The same question for the form in Editing (can I generate the form from a json file?)

manisandro commented 2 years ago

What do you mean to generate the form from a json file? If you use the feature-info-service [1], you can create custom feature-info templates, don't know if this satisfies your requirements?

[1] https://github.com/qwc-services/qwc-feature-info-service

claudiadragoste commented 2 years ago

Thank you!! I was just preparing myself to detail more my doubt. I also will explain where i appear from. We are using Giswater and we decided to use as a web client the QWC2 cause it works great! We are on the point that we configure it, trying to use as much as it is possible the standard. Checking the code of the plugin Identify.jsx and the component IdentifyViewer.jsx, I saw that there was the possibility to use templates but I didn't know how to use them and how to create them from the json outputs of Giswater's postgres database functions. I think that the link you sent can help me more. Thanks again

claudiadragoste commented 2 years ago

Thanks again! i thing I was on the wrong way at the beginning - I arrived to check the jasper-reporting-service instead of feature-info-service. I think that feature-info-service is the solution for what I wanted.