Hi Matt,
Thanks for this. I'll try combining multiple layers in a map.
Best, Scott
On Mon, Aug 13, 2018 at 2:04 AM Matthew Blissett mblissett@gbif.org wrote:
Hi
I tried simply concatenating vector tiles, this is supported by the protocol but only works if the layers have different names. The layer for these tiles is always "occurrence", so it doesn't quite work.
https://labs.gbif.org/~mblissett/2018/08/concatenate-vector-tiles/ has a hack to make this work, but it's probably just as easy to add multiple layers to a map.
Matt
On 11/08/18 16:25, Scott Chamberlain wrote:
Okay, sounds good, I will not use them.
Best, Scott
On Sat, Aug 11, 2018 at 3:57 AM Tim Robertson trobertson@gbif.org wrote:
I’d advise against using the “adhoc” maps. They are incredibly slow and anything beyond small load really causes issue. A loop within an R script will likely kill the server.
We are exploring alternatives (elasticsearch based) but it will be a while before ready.
Thanks
*From: *API-users api-users-bounces@lists.gbif.org on behalf of Scott Chamberlain scott@ropensci.org *Date: *Saturday, 11 August 2018 at 11.08 *To: *Matthew Blissett mblissett@gbif.org *Cc: *"api-users@lists.gbif.org" api-users@lists.gbif.org *Subject: *Re: [API-users] Multiple taxonKey values with maps API ?
Thanks Tim/Matt,
Right, the BOTH example is what I'm looking for. Great, didn't realize that adhoc would work! The use case is this WIP project https://github.com/ropensci/phylodiv where the idea is to let users quickly visualize biodiversity of taxa of a phylogeny (e.g., comparing clade A vs. B, species A vs. B, genus X vs. genus Y, etc.), and there's a lot more possible user questions I can handle if I can include multiple taxa in a map API query. So I think adhoc may be fast enough to give users that quick response they'd need for exploring many questions quickly (much faster than downloading full occurrence data, and just a bit slower than density maps).
Best, Scott
On Fri, Aug 10, 2018 at 9:30 AM Matthew Blissett mblissett@gbif.org wrote:
Hi,
A tile for the western hemisphere showing:
House sparrows: http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&...
Mackrel: http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&...
Both: http://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326&...
I think the both example is what Scott's asking for, and it isn't supported https://github.com/gbif/maps/blob/master/vectortile-server/src/main/java/org/gbif/maps/resource/Params.java#L69 .
It *is* supported with an ad-hoc search, but these are usually much slower: http://api.gbif.org/v2/map/occurrence/adhoc/0/0/0@1x.png?srs=EPSG:4326&b...
I've made an issue for it: https://github.com/gbif/maps/issues/27 since it's not the first time this has been requested. The previous request was for different colours to be applied to each taxon, which is more complicated and different to just adding several taxa's occurrences together.
Cheers,
Matt
On 10/08/18 17:31, Tim Robertson wrote:
I’m not sure if this went unanswered but the API has supported that since the beginning Scott.
Or have I misunderstood something?
In haste,
Tim
Get Outlook for iOS https://aka.ms/o0ukef
*From:* API-users api-users-bounces@lists.gbif.org api-users-bounces@lists.gbif.org on behalf of Scott Chamberlain myrmecocystus@gmail.com myrmecocystus@gmail.com *Sent:* Friday, August 10, 2018 4:02:35 AM *To:* api-users@lists.gbif.org *Subject:* [API-users] Multiple taxonKey values with maps API ?
Hello!
Are there any plans to allow passing any of the primary parameters (taxonKey, datasetKey, country, publishingOrg, publishingCountry) more than once. e.g.
...?taxonKey=1&taxonKey=2
or comma separated. Perhaps up to some max number?
Or is there a good reason not to suppor that? Woud it lead to jobs that run too long on your servers?
Thanks! Scott
API-users mailing list
API-users@lists.gbif.org
https://lists.gbif.org/mailman/listinfo/api-users
API-users mailing list API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users