EDSC-3903: Fix granule highlighting when polygons cross the antimeridian twice #1830
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
What is the feature?
Our granule outlines are being drawn correctly when polygons cross the antimeridian multiple times, but the highlighting of that granule is wrong. See this page
What is the Solution?
Use the same
dividePolygon
util that is used for granule outlines in the granule highlightingWhat areas of the application does this impact?
Drawing granules on the map
Testing
Hover over the granule on the map or in the results list to draw the granule highlight.
See the incorrect drawing here, https://search.uat.earthdata.nasa.gov/search/granules?p=C1258816710-ASDC_DEV2!C1258816710-ASDC_DEV2&pg[1][a]=1259235357!ASDC_DEV2&pg[1][v]=t&pg[1][id]=PREFIRE_SAT1_2B-ATM_S02_R00_20210101190614_00013.nc&pg[1][gsk]=-start_date&q=C1258816710-ASDC_DEV&tl=1704472317!3!!&lat=6.751072007114942&long=-167.34375&zoom=0
Load that same granule locally here http://localhost:8080/search/granules?p=C1258816710-ASDC_DEV2!C1258816710-ASDC_DEV2&pg[1][v]=t&pg[1][id]=PREFIRE_SAT1_2B-ATM_S02_R00_20210101190614_00013.nc&pg[1][gsk]=-start_date&ee=uat&q=C1258816710-ASDC_DEV&tl=1731348943!3!!&lat=-59.340602465477474&long=-137.25&zoom=0
Attachments
Incorr
ect
Correct
Checklist