Closed jhnwllr closed 8 months ago
It's probably necessary to interpolate the long lines slightly, e.g. every 90°, as otherwise polygons can be interpreted as going over the dateline.
Is this a real use case @jhnwllr ? If it is just for a download, then perhaps a not predicate is easier?
@MortenHofft This is just an anticipated question from users. We got an email from helpdesk from people who were using the clockwise polygons intentionally.
@MattBlissett thanks interpolation does appear to work! https://www.gbif.org/occurrence/map?has_coordinate=true&has_geospatial_issue=false&geometry=POLYGON((-180%20-90,-90%20-90,0%20-90,90%20-90,180%20-90,180%2090,90%2090,0%2090,-90%2090,-180%2090,-180%20-90),(-5%20-5,-5%205,5%205,5%20-5,-5%20-5))&occurrence_status=present
I was wondering if hole-in-the-earth downloads were still possible by specifying two boxes.
These types of polygons appear to be accepted on the front end UI. https://www.gbif.org/occurrence/map?has_coordinate=true&has_geospatial_issue=false&geometry=POLYGON((35%2010,45%2045,15%2040,10%2020,35%2010),(20%2030,35%2035,30%2020,20%2030))&occurrence_status=present
Making a fairly big outer box also appears to work...
https://www.gbif.org/occurrence/map?has_coordinate=true&has_geospatial_issue=false&taxon_key=1427007&geometry=POLYGON((-90%20-45,90%20-45,90%2045,-90%2045,-90%20-45),(-5%20-5,-5%205,5%205,5%20-5,-5%20-5))&occurrence_status=present downloads also work for this polygon https://www.gbif.org/occurrence/download/0026095-240229165702484
But making a "entire earth outer box" seems to fail. POLYGON ((-180 -90,180 -90,180 90, -180 90,-180 -90),(-5 -5,-5 5,5 5,5 -5,-5 -5))
https://www.gbif.org/occurrence/map?has_coordinate=true&has_geospatial_issue=false&geometry=POLYGON((-180%20-90,180%20-90,180%2090,-180%2090,-180%20-90),(-5%20-5,-5%205,5%205,5%20-5,-5%20-5))&occurrence_status=present
Also downloads through the API reject this whole earth attempt.