Closed aleruete closed 3 years ago
longitudes all over the place
locations... the latitude of the search is right, but longitude not
the same search seems right in the bioatlas portal
@shahmanash any idea why this could be like this? the order of the coordinates?
@shahmanash I saw in the Bioatlas portal that spatial searches like the one above use the parameter MULTIPOLYGON() instead of POLYGON. When changes "POLYGON((14.94 58.88, 14.94 59.69, 18.92 59.69, 18.92 58.88, 14.94 58.88))" by "MULTIPOLYGON(((14.94 58.88, 14.94 59.69, 18.92 59.69, 18.92 58.88, 14.94 58.88)))" the search went just fine!.
I add a note to this example
A search within a very Swedish polygon
wkt <- "POLYGON((14.94 58.88, 14.94 59.69, 18.92 59.69, 18.92 58.88, 14.94 58.88))" env_layers <- c("el10007","el10011") x <- occurrences(taxon="family:Fabaceae", wkt=wkt, qa="none", download_reason_id="testing", extra=env_layers)
returns observations in e.g. Alaska... The observation is from LUND collection which is not either within the search polygon