<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Dag,
<div class="">you seem to be the first person that issues such a large polygon filter.</div>
<div class="">It is actually causing a stackoverflow in our code. </div>
<div class="">I have filed a jira here and hope we can fix it some time soon:</div>
<div class=""><a href="http://dev.gbif.org/issues/browse/POR-3042" class="">http://dev.gbif.org/issues/browse/POR-3042</a></div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Markus</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 18 Feb 2016, at 14:33, Dag Endresen <<a href="mailto:dag.endresen@gmail.com" class="">dag.endresen@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi all,<br class="">
<br class="">
I am trying to download all occurrences inside the CAFF boundary area<br class="">
following a request from the CAFF focal point in Norway. I have<br class="">
converted the polygon to a Well Known Text object for use with the<br class="">
GBIF API. (The WKT polygon looks fine when I test to open in QGIS).<br class="">
<br class="">
<a href="http://www.gbif.org/developer/summary#authentication" class="">http://www.gbif.org/developer/summary#authentication</a><br class="">
http://www.gbif.org/developer/occurrence#predicates<br class="">
http://www.gbif.org/developer/occurrence#p_geometry<br class="">
<br class="">
My filter.json file is attached and looks like this (the polygon<br class="">
definition is truncated here at (...) for the purpose as example):<br class="">
<br class="">
{<br class="">
 "creator":"dag.endresen",<br class="">
 "notification_address": ["dag.endresen@gmail.com"],<br class="">
 "predicate":<br class="">
 {<br class="">
   "type":"within",<br class="">
   "geometry":"POLYGON((179.285633734761433<br class="">
50.81429697072722,179.600130309538514 50.798132663162107,180.0<br class="">
50.825202656741141,-179.985731034706419<br class="">
50.826168623278733,-179.642658093259286<br class="">
50.834515997684633,-179.213664117412264 (...)<br class="">
50.826278190103068,179.014229185979531<br class="">
50.811745655072343,179.285633734761433 50.81429697072722))"<br class="">
 }<br class="">
}<br class="">
<br class="">
<br class="">
Error message:<br class="">
Instantiation of [simple type, class<br class="">
org.gbif.api.model.occurrence.predicate.WithinPredicate] value failed:<br class="">
null (through reference chain:<br class="">
org.gbif.api.model.occurrence.predicate.WithinPredicate["geometry"])<br class="">
<br class="">
<br class="">
It might possible to download all occurrence data north of 50 degrees<br class="">
(southernmost edge of the CAFF area) - and cut to CAFF area offline.<br class="">
But because this is more than 200 million records, I am very<br class="">
interested to check if it is possible to filter using the CAFF<br class="">
boundary polygon.<br class="">
<br class="">
http://www.gbif.org/occurrence/search?HAS_COORDINATE=true&decimalLatitude=50,90<br class="">
<br class="">
<br class="">
Best wishes<br class="">
Dag<br class="">
<br class="">
-- <br class="">
Dag Endresen<br class="">
Node manager for GBIF Norway<br class="">
ORCID: http://orcid.org/0000-0002-2352-5497<br class="">
<span id="cid:13350A3C-FE62-41DD-B29C-72B0C3A7312F@fritz.box"><filter.json></span><span id="cid:DB1E8B04-8813-432C-8630-F48048539B24@fritz.box"><caff_wkt_wgs84.csv></span></div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>