[API-users] Number of coordinates in "within" predicate

Reetz, Michael (NLPV) Michael.Reetz at nlpv-wattenmeer.niedersachsen.de
Thu May 31 07:52:51 CEST 2018


Dear Jan,

thank you very much. 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.

Best regards
Michael



Mit freundlichen Grüßen
Im Auftrag
Michael Reetz
*****************************************
Nationalpark-Verwaltung Niedersächsisches Wattenmeer
Virchowstr. 1
26382 Wilhelmshaven
Tel.: +49 (0) 4421 911 291
Fax.: +49 (0) 441 799 61039
e-mail: michael.reetz at nlpv-wattenmeer.niedersachsen.de<mailto:michael.reetz at nlpv-wattenmeer.niedersachsen.de>
Web: http://www.<http://www.nationalpark-wattenmeer.niedersachsen.de/>nationalpark-wattenmeer.de
Flussgebietsmanagement Übergangs-/Küstengewässer
NLWKN * Betriebsstelle Brake / Oldenburg
e-mail: michael.reetz at nlwkn-ol.niedersachsen.de<mailto:michael.reetz at nlwkn-ol.niedersachsen.de>
Web: http://www.nlwkn.de
Von: Jan Legind [mailto:jlegind at gbif.org]
Gesendet: Mittwoch, 30. Mai 2018 14:23
An: Reetz, Michael (NLPV) <Michael.Reetz at nlpv-wattenmeer.niedersachsen.de>; api-users at lists.gbif.org
Cc: helpdesk <helpdesk at gbif.org>
Betreff: RE: Number of coordinates in "within" predicate

Dear Michael,

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.
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.


Sincerely,

Jan K. Legind
Data manager, GBIF

From: API-users [mailto:api-users-bounces at lists.gbif.org] On Behalf Of Reetz, Michael (NLPV)
Sent: 18 May 2018 09:43
To: api-users at lists.gbif.org<mailto:api-users at lists.gbif.org>
Subject: [API-users] Number of coordinates in "within" predicate


Dear all,



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:



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"])



My question is where the limit for the number of coordinate pairs is.



Thanks for help.
Kind regards
Michael Reetz
*****************************************
Nationalpark-Verwaltung Niedersächsisches Wattenmeer
Virchowstr. 1
26382 Wilhelmshaven
Tel.: +49 (0) 4421 911 291
Fax.: +49 (0) 441 799 61039
e-mail: michael.reetz at nlpv-wattenmeer.niedersachsen.de<mailto:michael.reetz at nlpv-wattenmeer.niedersachsen.de>
Web: http://www.<http://www.nationalpark-wattenmeer.niedersachsen.de/>nationalpark-wattenmeer.de
Flussgebietsmanagement Übergangs-/Küstengewässer
NLWKN * Betriebsstelle Brake / Oldenburg
e-mail: michael.reetz at nlwkn-ol.niedersachsen.de<mailto:michael.reetz at nlwkn-ol.niedersachsen.de>
Web: http://www.nlwkn.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gbif.org/pipermail/api-users/attachments/20180531/562e4ddc/attachment-0001.html>


More information about the API-users mailing list