-
|
Hello developers, I have been trying to implement WPS in TerriaJS. When I execute a process, I get the following error: The parameter poly_in is not a supported type of parameter and then the screen goes blank. I don't know what I'm doing wrong. On the server side, everything is fine. Can anyone please assist? Regards, Zolo |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 10 replies
-
|
Hi @ZoloKiala Thank you for your interest in Terria and for reporting this issue. Can you please provide more details about the error that you are having?
To learn more about Terria's WPS function parameters, please refer to the following resources: |
Beta Was this translation helpful? Give feedback.
-
|
@zoran995 Thank you for your reply. It has really helped me understand many things. However, the BoundingBoxInput can only draw a rectangle. It can't draw complex geometries or select existing polygons. I tried to use "ComplexInput" for complex polygons with 'application/vnd.terriajs.catalog-member+json', but I got the previous error: "The parameter polygon is not a supported type of parameter." The following is the process that calculates the area of a polygon (e.g., can be the area of a farm): |
Beta Was this translation helpful? Give feedback.
-
|
@zoran995 Thank you once again. I really appreciate your assistance. My last concern is how to output an image to the workbench. For example, the user draws a polygon on top of a classified image that's already visible in the TerriaJS. Then PyWPS clips the raster to the polygon, analyzes class areas, and returns a pie chart. Below is an attempt on how this can be done: |
Beta Was this translation helpful? Give feedback.
-
|
Hi @zoran995 Thank you for this. I didn't make any changes to terriajs source code. I just added an empty dict "properties". For creating a selector for different geometry types, according to the doc you had shared earlier, I used the code below: It worked. Thank you for everything. |
Beta Was this translation helpful? Give feedback.
-
|
@zoran995 Do you have any idea on how to make the figure interactive. Until now, it's served as a static figure. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @zoran995 The Python code below defines a PyWPS (Python Web Processing Service) process called SearchGeoServerAttributes, which interacts with a GeoServer WFS (Web Feature Service) layer to search for specific land parcel data based on a PRCL_KEY (Parcel Key). The process returns both the parcel attributes and the polygon geometry, intended for display on a map. However, I'm currently experiencing an issue: the geometry is not displaying on the map as expected. Could you please assist or advise on how to properly return and visualize the geometry, particularly in a way compatible with TerriaJS. Can you please assist ? Regards, Zolo |
Beta Was this translation helpful? Give feedback.











@zoran995 I've managed to solve this using nginx.
Thank you a lot for your support. I think this discussion should be closed.