Re: [API-users] Number of coordinates in "within" predicate
![](https://secure.gravatar.com/avatar/2def7e6b8eebc9b8d6bdfb3a30184c68.jpg?s=120&d=mm&r=g)
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@nlpv-wattenmeer.niedersachsen.demailto:michael.reetz@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@nlwkn-ol.niedersachsen.demailto:michael.reetz@nlwkn-ol.niedersachsen.de Web: http://www.nlwkn.de Von: Jan Legind [mailto:jlegind@gbif.org] Gesendet: Mittwoch, 30. Mai 2018 14:23 An: Reetz, Michael (NLPV) Michael.Reetz@nlpv-wattenmeer.niedersachsen.de; api-users@lists.gbif.org Cc: helpdesk helpdesk@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@lists.gbif.org] On Behalf Of Reetz, Michael (NLPV) Sent: 18 May 2018 09:43 To: api-users@lists.gbif.orgmailto:api-users@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@nlpv-wattenmeer.niedersachsen.demailto:michael.reetz@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@nlwkn-ol.niedersachsen.demailto:michael.reetz@nlwkn-ol.niedersachsen.de Web: http://www.nlwkn.de
participants (1)
-
Reetz, Michael (NLPV)