pacificclimate / scip-frontend

Salmon Climate Impacts Portal
GNU General Public License v3.0
1 stars 1 forks source link

Front end sometimes passes WKT and sometimes geoJSON #43

Closed corviday closed 9 months ago

corviday commented 1 year ago

According to specifications, the front end should pass the backend WKT for overlap parameters. In practice, the front end sometimes passes WKT and sometimes passes geoJSON. The backend doesn't currently check the geometry data it receives, just passes it along to the database, which can interpret either format, so everything is working, but we'd definitely like to follow the spec here and also verify inputs in the backend.

Fix the front end to always pass WKT, then add geometry verification code to the backend.