<div dir="ltr">Dear list,<div><br></div><div>My group has been developing some tools that depend on the occurrence density data that GBIF provides through its API: </div><div><br></div><div><a href="https://www.gbif.org/en/developer/maps">https://www.gbif.org/en/developer/maps</a> </div><div><br></div><div>We have been using the R function rgbif::map_fetch to query the api. The data is returned faithfully but we are experiencing some issues with projections of the raster data. </div><div><br></div><div>I have posted a reproducible example in R here: 

<a href="https://github.com/ropensci/rgbif/issues/366">https://github.com/ropensci/rgbif/issues/366</a> . But briefly the issue is that EPSG:3857 that is downloaded from the API has an extent from -180 to 180 in the x-axis and -86 to 86 in the y-axis but when converting longitude latitude coordinates into the EPSG:3857 coordinate reference system the spatial domain is much larger (I think because it is defined in meters rather than degrees). What am I missing here? I am still a neophyte when it comes to projections so I apologize if this an obvious question. </div><div><br></div><div>One other quick point is that the GBIF maps API does not seem to serve up the same spatial domain for each projection that is possible. Specifically compare the following two queries to the api: </div><div><a href="https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:3857">https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:3857</a> </div><div><a href="https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326">https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?srs=EPSG:4326</a> <br></div><div><br></div><div>Note that EGSG:4326 is on a smaller spatial domain that does not include the whole Earth. Maybe this is by design but this webpage led me to believe differently: 

<a href="https://tile.gbif.org/ui/">https://tile.gbif.org/ui/</a> '</div><div><br></div><div>Thanks in advance for your help!</div><div><br></div><div>Dan </div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Daniel J. McGlinn, PhD<br>Assistant Professor<br>mailing address:<br>Department of Biology<br>College of Charleston<br>66 George Street<br>Charleston, SC 29424<br><a href="https://www.mcglinnlab.org" target="_blank">https://www.mcglinnlab.org</a><br>physical address:<br>Rita Hollings Science Center (office: 239, lab: 292)<br>58 Coming Street, Suite 245-255<br>Charleston, SC 29401<br>office: 843-953-0190</div></div></div>