Issue 17698

Search filter = continent

17698
Reporter: feedback bot
Assignee: ahahn
Type: Feedback
Summary: Search filter = continent
Status: InProgress
Created: 2015-07-16 17:21:49.927
Updated: 2015-08-10 16:01:56.042
        
        
Description: For the following use cases search for continents is necessary:
(i) Specimens of Taxon xy in South America
(ii) Ocurrences of Taxon xy in Asia without coordinates

There must be a list of countries matching the continents in GBIF. The problematic countries are not that much (i.e. Turkey, Russia...).

Filtering for all countries in a given continent or drawing a polygon is not user friendly.

*Reporter*: Wolf-Henning Kusber
*E-mail*: [mailto:w.h.kusber@bgbm.org]]]>
    


Author: trobertson@gbif.org
Comment: We should implement, but in the meantime approach Wolf-Henning and ask if he needs some data export
Created: 2015-07-17 10:00:03.298
Updated: 2015-07-17 10:00:03.298


Author: ahahn@gbif.org
Comment: Contacting by email.
Created: 2015-07-17 10:02:36.222
Updated: 2015-07-17 10:02:36.222


Author: ahahn@gbif.org
Created: 2015-07-17 11:17:41.821
Updated: 2015-07-17 11:17:41.821
        
discussed:
- grouped filter, similar to the "taxon group" filters at http://www.gbif.org/species or as pre-prepared polygon filters, allowing to run a combined search for occurrences in countries with geographical location on a given continent. Problematic cases located cross-continent may need special handling if coordinates do not allow resolution, or double inclusion and a disclaimer
- further evaluation of special filters taking political affiliation into account would require further requirements specification
    


Author: mdoering@gbif.org
Created: 2015-07-17 11:36:37.275
Updated: 2015-07-17 11:36:37.275
        
The Occurrence class has an interpreted field continent based on an enumeration which we should use to filter on:
https://github.com/gbif/gbif-api/blob/master/src/main/java/org/gbif/api/model/occurrence/Occurrence.java#L126

If we interpret that field consistently it should behave the same way we deal with countries.
That is we try to interpret incoming raw values but also calculate a continent value based on lat/lon or country values.
Unfortunately I see that we have not implemented continent processing properly yet:
https://github.com/gbif/occurrence/blob/master/occurrence-processor/src/main/java/org/gbif/occurrence/processor/interpreting/LocationInterpreter.java#L115

That way records could even have a continent applied when there is no coordinate or even country given.