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

fix: Polygon simplification on E&A page #1268

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

hanbyul-here
Copy link
Collaborator

@hanbyul-here hanbyul-here commented Nov 21, 2024

Close #1267, Close US-GHG-Center/veda-config-ghg#648

Description of Changes

Increased the limit of the number of each polygon.
Separated out a function that handles the aoi validation for an easy test and better readability.
Fix error handling.

Notes & Questions About Changes

The number that I ended up with is an outcome of my experiment with our GHG endpoint, details are in : US-GHG-Center/veda-config-ghg#648 (comment)

I think our current setup was more for multiple simple polygons - and this setup is more for 1 complicated polygon (which also hopefully covers the multiple simple polygons case.)

Validation / Testing

We should test with GHG endpoint because of AWS setup there, I made a preview link : https://deploy-preview-664--ghg-demo.netlify.app/exploration

@hanbyul-here hanbyul-here changed the title Fix: Polygon simplifications on E&A page Fix: Polygon simplification on E&A page Nov 21, 2024
Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit 2b7a016
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/67451aea1b5cbe0008e392eb
😎 Deploy Preview https://deploy-preview-1268--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hanbyul-here hanbyul-here changed the title Fix: Polygon simplification on E&A page fix: Polygon simplification on E&A page Nov 21, 2024
@aboydnw
Copy link
Contributor

aboydnw commented Nov 21, 2024

hm, I'm not able to get anything to load. Here are the files I tried:

Alabama_State_Boundary-shp.zip
bs.shp.zip
alabama state geojson
Indianapolis geojson

Each time I get this error:
image

@hanbyul-here
Copy link
Collaborator Author

hanbyul-here commented Nov 26, 2024

@aboydnw Thanks for testing and catching the bug that I pushed at the last minute 😓 Please test it again when you have a chance.

@aboydnw
Copy link
Contributor

aboydnw commented Nov 27, 2024

This seems to be working much better now! The shape for Indianapolis still doesn't show exactly accurate, but now it seems to be because rings are not supported, which I think is an acceptable limitation.

image

image

I was able to upload a fairly complex shapefile and it worked well. I think this should give folks at AGU more ability to find a shapefile that works @Jeanne-le-Roux @slesaad
image

Copy link
Contributor

@aboydnw aboydnw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a manual testing perspective, looks good to me.

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.

Investigate reported E&A shapefile upload issue [Bug] Issues with EnA geojson/shapefiles upload
2 participants