tubackkhoa / gbif-dataportal

Automatically exported from code.google.com/p/gbif-dataportal
0 stars 1 forks source link

Occurrence Web Service response returns (maxresults+1) #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When requesting data from the occurrence web service,  and the 'maxresults' 
parameter is 
specified, the results returned are always going to be (maxresults+1) when it 
should only be 
(maxresults)

Examples:

http://data.gbif.org/ws/rest/occurrence/list?
scientificname=solanum+&format=darwin&startindex=1815&coordinatestatus=true&maxr
esults=1

Reported by Robert Hijmans

Original issue reported on code.google.com by josecua...@gmail.com on 15 Dec 2009 at 9:04

GoogleCodeExporter commented 8 years ago
Fixed in Revision: r77 by deleting the "+ 1"

Original comment by daniel.amariles88 on 22 Apr 2010 at 2:10

GoogleCodeExporter commented 8 years ago
When making the change (deleting +1) the resulting screen does provide the 
exact occurrence count, but we are 
missing the <gbif:nextRequestUrl> element when there are more than 1000 records 
available:

http://data.gbif.org/ws/rest/occurrence/list?scientificname=solanum returns 
differently from the changes on 
the branch CIAT.

Original comment by josecua...@gmail.com on 11 May 2010 at 11:37

GoogleCodeExporter commented 8 years ago
ok, now with the changes of the revision r99, the link "Next page of records" 
is showed.

Original comment by daniel.amariles88 on 12 May 2010 at 4:01

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Commited to the trunk at r105

Original comment by josecua...@gmail.com on 14 May 2010 at 12:04