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

feat: allow geojson POSTs to select area page #197

Merged
merged 8 commits into from
Jul 21, 2023
Merged

feat: allow geojson POSTs to select area page #197

merged 8 commits into from
Jul 21, 2023

Conversation

alee
Copy link
Member

@alee alee commented Jun 9, 2023

resolves #196

alee and others added 8 commits June 8, 2023 09:47
refs #196

currently testing via curl:

```
curl -X POST --data "data={\"type\":\"Feature\",\"properties\":{},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-107.971802,36.048799]}}" http://localhost:3000/dataset/paleocar_v3 --header "Content-Type: application/json"
```
accepts a `studyArea` form post attribute to dataset selection page at
/dataset/<dataset_id>

still needs further testing
no need for auth
still seems to only work on Point geojson, more complex polygons or
feature collections are not coming through properly
consuming the full POST data is sometimes incomplete otherwise
should display timeout errors / loading / etc
@alee alee requested a review from cpritcha July 21, 2023 00:12
@alee alee merged commit 8aafcea into main Jul 21, 2023
1 check passed
@alee alee deleted the post-geojson branch July 28, 2023 21:55
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.

support geojson / polygon POST requests to SelectDatasetArea from cybersw
1 participant