Maps API returning nothing
Dear ALL,
I have been trying the Maps API (https://www.gbif.org/developer/maps), but when attempting to run one of the demos at https://api.gbif.org/v2/map/occurrence/density/%7Bz%7D/%7Bx%7D/%7By%7D@1x.pn...
I keep getting back an empty ("400") image. What may be the problem?
Thanks in advance for any assistance you can provide.
With warmest regards,
Dear Mauro,
You need to replace the {z}/{x}/{y} with coordinates of a tile on the map, for example 0/0/0:
https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?taxonKey=212&...
Depending what software or libraries you are using (if any), you can probably find further information by searching for "tile maps" or "slippy maps". Open Street Map have examples for calculating the required tile(s) for a given location: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
Best,
Matt Blissett
On 28/07/2023 16:38, Mauro Cavalcanti via API-users wrote:
Dear ALL,
I have been trying the Maps API (https://www.gbif.org/developer/maps), but when attempting to run one of the demos at |https://api.gbif.org/v2/map/occurrence/density/%7Bz%7D/%7Bx%7D/%7By%7D@1x.pn... https://api.gbif.org/v2/map/occurrence/density/{z}/{x}/{y}@1x.png?taxonKey=212&bin=hex&hexPerTile=30&style=classic-noborder.poly|
I keep getting back an empty ("400") image. What may be the problem?
Thanks in advance for any assistance you can provide.
With warmest regards,
-- Dr. Mauro J. Cavalcanti E-mail: maurobio@gmail.com Web: https://github.com/maurobio "Life is complex. It consists of real and imaginary parts."
API-users mailing list API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users
Hi, Matt!
Of course! I just blindly copied the example provided, without noticing that the coordinates were missing...
Sorry for the trouble.
Thanks a lot.
With warmest regards,
Em sex., 28 de jul. de 2023 às 13:24, Matthew Blissett via API-users < api-users@lists.gbif.org> escreveu:
Dear Mauro,
You need to replace the {z}/{x}/{y} with coordinates of a tile on the map, for example 0/0/0:
https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?taxonKey=212&...
Depending what software or libraries you are using (if any), you can probably find further information by searching for "tile maps" or "slippy maps". Open Street Map have examples for calculating the required tile(s) for a given location: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
Best,
Matt Blissett On 28/07/2023 16:38, Mauro Cavalcanti via API-users wrote:
Dear ALL,
I have been trying the Maps API (https://www.gbif.org/developer/maps), but when attempting to run one of the demos at https://api.gbif.org/v2/map/occurrence/density/%7Bz%7D/%7Bx%7D/%7By%7D@1x.pn...
I keep getting back an empty ("400") image. What may be the problem?
Thanks in advance for any assistance you can provide.
With warmest regards,
-- Dr. Mauro J. Cavalcanti E-mail: maurobio@gmail.com Web: https://github.com/maurobio "Life is complex. It consists of real and imaginary parts."
API-users mailing listAPI-users@lists.gbif.orghttps://lists.gbif.org/mailman/listinfo/api-users
API-users mailing list API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users
Hi, Matt!
I still cannot generate a proper map. Using the most simple API call, with all default parameters for a given taxon, I got just the density distribution of points, without an overlaid map: https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?taxonKey=2974832
Is there a way of generating a simple 'classic' distribution map as in the attached image?
Thanks in advance!
With warmest regards,
Em sex., 28 de jul. de 2023 às 13:24, Matthew Blissett via API-users < api-users@lists.gbif.org> escreveu:
Dear Mauro,
You need to replace the {z}/{x}/{y} with coordinates of a tile on the map, for example 0/0/0:
https://api.gbif.org/v2/map/occurrence/density/0/0/0@1x.png?taxonKey=212&...
Depending what software or libraries you are using (if any), you can probably find further information by searching for "tile maps" or "slippy maps". Open Street Map have examples for calculating the required tile(s) for a given location: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
Best,
Matt Blissett On 28/07/2023 16:38, Mauro Cavalcanti via API-users wrote:
Dear ALL,
I have been trying the Maps API (https://www.gbif.org/developer/maps), but when attempting to run one of the demos at https://api.gbif.org/v2/map/occurrence/density/%7Bz%7D/%7Bx%7D/%7By%7D@1x.pn...
I keep getting back an empty ("400") image. What may be the problem?
Thanks in advance for any assistance you can provide.
With warmest regards,
-- Dr. Mauro J. Cavalcanti E-mail: maurobio@gmail.com Web: https://github.com/maurobio "Life is complex. It consists of real and imaginary parts."
API-users mailing listAPI-users@lists.gbif.orghttps://lists.gbif.org/mailman/listinfo/api-users
API-users mailing list API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users
participants (2)
-
Matthew Blissett
-
Mauro Cavalcanti