Issue 18160

Searches across 180° longitude fail

18160
Reporter: mblissett
Type: Bug
Summary: Searches across 180° longitude fail
Priority: Major
Resolution: Duplicate
Status: Closed
Created: 2016-01-18 12:04:16.051
Updated: 2017-10-10 14:51:11.447
Resolved: 2017-10-10 14:51:11.413
        
Description: Searches using polygons across the 180° latitude line fail.

For example, this should be a polygon drawn roughly around American Samoa: http://www.gbif.org/occurrence/search?GEOMETRY=189.080200+-13.950061%2C190.788574+-13.875413%2C191.123657+-14.338904%2C189.909667+-14.727073%2C188.931884+-14.402759%2C189.080200+-13.950061]]>
    


Author: mblissett
Created: 2016-01-18 12:10:02.932
Updated: 2016-01-18 12:10:02.932
        
It's the UI element that's wrong, notice the URL has figures like 191°.

This could be because I scrolled to the right, and American Samoa is in the far west.
    


Author: mblissett
Comment: Could also relate to PF-2435
Created: 2016-08-02 10:51:36.535
Updated: 2016-08-02 10:51:36.535


Author: ahahn@gbif.org
Created: 2017-01-11 14:24:01.292
Updated: 2017-01-11 14:25:06.687
        
Similar issue: a search by bounding box for the Chatham Islands (east of NZ) is reported to consistently respond with a "Service Unavailable" error while other bounding box searches work ok. NB: the Chatham Islands do not fall on the date line.

This happens when scrolling to the right hand side of the map displayed for the bounding box: the resulting filter in that case is
http://www.gbif.org/occurrence/search?GEOMETRY=182.911376+-43.604261%2C182.911376+-44.319918%2C183.999023+-44.319918%2C183.999023+-43.604261%2C182.911376+-43.604261
(note coordinates > 180)

Setting the same bounding box filter around these islands after moving to the left hand side of the filter map, on the other hand, produces
http://www.gbif.org/occurrence/search?GEOMETRY=-177.022705+-43.663897%2C-177.022705+-44.382765%2C-176.050415+-44.382765%2C-176.050415+-43.663897%2C-177.022705+-43.663897
This filter also returns the records.

Suggest this as a temporary workaround suggestion to users until the new portal is released.
    


Author: hoefft
Comment: https://github.com/gbif/occurrence/issues/21
Created: 2017-10-10 14:51:11.443
Updated: 2017-10-10 14:51:11.443