<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Dear Jan,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">thank you very much.
</span><span lang="EN-GB" style="color:#1F497D;mso-fareast-language:EN-US">I will use coordinates from a generalized version of the national park border for future downloads. This will reduce the length of the string significantly and will still be accurate
 enough.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D;mso-fareast-language:EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D;mso-fareast-language:EN-US">Michael<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Mit freundlichen Grüßen</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Im Auftrag</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Michael Reetz</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">*****************************************</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">Nationalpark-Verwaltung Niedersächsisches Wattenmeer</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">Virchowstr. 1</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">26382 Wilhelmshaven</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">Tel.: +49 (0) 4421 911 291</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">Fax.: +49 (0) 441 799 61039</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">e-mail:
</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D"><a href="mailto:michael.reetz@nlpv-wattenmeer.niedersachsen.de"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">michael.reetz@nlpv-wattenmeer.niedersachsen.de</span></a>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">Web:
</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D"><a href="http://www.nationalpark-wattenmeer.niedersachsen.de/"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">http://www.</span></a></span><u><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">nationalpark-wattenmeer.de</span></u><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">Flussgebietsmanagement Übergangs-/Küstengewässer</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">NLWKN * Betriebsstelle Brake / Oldenburg</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">e-mail:
</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D"><a href="mailto:michael.reetz@nlwkn-ol.niedersachsen.de"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">michael.reetz@nlwkn-ol.niedersachsen.de</span></a>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1F497D">Web:</span><u><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
</span></u><u><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue"><a href="http://www.nlwkn.de"><span style="color:blue">http://www.nlwkn.de</span></a></span></u><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1F497D">
</span><span style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Von:</b> Jan Legind [mailto:jlegind@gbif.org] <br>
<b>Gesendet:</b> Mittwoch, 30. Mai 2018 14:23<br>
<b>An:</b> Reetz, Michael (NLPV) <Michael.Reetz@nlpv-wattenmeer.niedersachsen.de>; api-users@lists.gbif.org<br>
<b>Cc:</b> helpdesk <helpdesk@gbif.org><br>
<b>Betreff:</b> RE: Number of coordinates in "within" predicate<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D">Dear Michael,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D">In case you have not received a reply yet – If you are submitting requests through the GBIF API there is a limit to the size of the string that can be submitted. It would seem that
 a 1000 coordinate pairs would break the limit. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D">I would recommend downloading data for the general area you are interested in and filter using a GIS application. I have done something similar using a complex polygon in R and I
 can help you in this regard.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D">Sincerely,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D">Jan K. Legind<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D">Data manager, GBIF<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma",sans-serif"> API-users [<a href="mailto:api-users-bounces@lists.gbif.org">mailto:api-users-bounces@lists.gbif.org</a>]
<b>On Behalf Of </b>Reetz, Michael (NLPV)<br>
<b>Sent:</b> 18 May 2018 09:43<br>
<b>To:</b> <a href="mailto:api-users@lists.gbif.org">api-users@lists.gbif.org</a><br>
<b>Subject:</b> [API-users] Number of coordinates in "within" predicate<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Dear all,<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">I'm working on a procedure for data download for the “Lower Saxon Wadden Sea” national park using the API. It works for a smaller region
 defined by a polygon with 183 coordinate pairs (vertices). For a larger region (more than 1000 coordinate pairs), I receive status 400 and the following response text:<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Instantiation of [simple type, class org.gbif.api.model.occurrence.predicate.WithinPredicate] value failed: null (through reference chain:
 org.gbif.api.model.occurrence.predicate.WithinPredicate["geometry"])<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif">My question is where the limit for the number of coordinate pairs is.
<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks for help.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Kind regards</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Michael Reetz</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:7.5pt;font-family:"Arial",sans-serif">*****************************************</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Nationalpark-Verwaltung Niedersächsisches Wattenmeer</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Virchowstr. 1</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">26382 Wilhelmshaven</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Tel.: +49 (0) 4421 911 291</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Fax.: +49 (0) 441 799 61039</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">e-mail: </span>
<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><a href="mailto:michael.reetz@nlpv-wattenmeer.niedersachsen.de"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">michael.reetz@nlpv-wattenmeer.niedersachsen.de</span></a>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Web: </span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><a href="http://www.nationalpark-wattenmeer.niedersachsen.de/"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">http://www.</span></a></span><u><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">nationalpark-wattenmeer.de</span></u><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Flussgebietsmanagement Übergangs-/Küstengewässer</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">NLWKN * Betriebsstelle Brake / Oldenburg</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">e-mail: </span>
<span style="font-size:12.0pt;font-family:"Times New Roman",serif"><a href="mailto:michael.reetz@nlwkn-ol.niedersachsen.de"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue">michael.reetz@nlwkn-ol.niedersachsen.de</span></a>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Web:</span><u><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
</span></u><u><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:blue"><a href="http://www.nlwkn.de"><span style="color:blue">http://www.nlwkn.de</span></a></span></u><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
</span><o:p></o:p></p>
</div>
</body>
</html>