Closed andrewxhill closed 13 years ago
First draft API method is available now, http://prototype.mol-lab.appspot.com/api/points/gbif/animalia/species/puma_concolor
If you use Chrome, I suggest you install the 'JSONView for Chrome' extension
right now the GbifDataHandler method replaces any uncertainty=0 with uncertainty=null (i.e. unknown) for the JSON response. makes sense to me, let me know if this is a bad idea.
John, does uncertainty = 0 have a different meaning than no uncertainty at all?
That GbifDataHandler method is the correct treatment. Uncertainty cannot be zero - any value given to GBIF as zero is an error (ha) and really means that the uncertainty is unknown and should therefore be better represented by a null, unless the client understands that zero means something special.
Went ahead and changed the GbifDataHandler to reflect a few comments from today's talk. Primarily, the default method returns a 'small' dataset, limited to only 1000 records max, only with coordinates, and with minimal additional data fields for the records. I will code up a 'full' method in GbifDataHandler when the time comes that will parse a complete set no matter the size and give back more complete statement of a record.
I also added a 'skipcache' variable to the url, if it is included it will not check the cache first but query GBIF and rebuild cache no matter. This is good for both testing and later will give the client code the ability to force the server to get the newest gbif data.
+1 all around.
Big change to the JSON standard and harvest method, not getting records from GBIF XML not KML, http://prototype.mol-lab.appspot.com/api/points/gbif/animalia/species/puma_concolor I've reduced the max records by default to 200 for now.
The workflow is in place and has been tested during UI development. I think we are at a good place to close this now. We can open specific Issues as they arise.
Aaron and I just had a chat to lay out some of the steps for point data. We are going to begin developing methods to display GBIF points on maps. Here are the steps for phase one