Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add eurobis_occurrences_grid #22

Open
salvafern opened this issue May 10, 2022 · 1 comment
Open

add eurobis_occurrences_grid #22

salvafern opened this issue May 10, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@salvafern
Copy link
Collaborator

Previous version had getOccurrencesGrid().
To look into adding this layer in the new version too.

Ideally also:

  • add leaflet map that displays the occurrences with WMS.
  • option to convert into raster? or explain how in a vignette?
@salvafern salvafern added the enhancement New feature or request label May 10, 2022
@salvafern salvafern self-assigned this May 10, 2022
@salvafern
Copy link
Collaborator Author

These approaches work: the first one works fine, the second is not filtering fine but returns a grid. Something must be wrong about the filter.

library(magrittr)
test <- eurobis:::eurobis_base_map() %>%
  leaflet.extras2::addWMS(
    baseUrl = "http://geo.vliz.be/geoserver/Eurobis/wms?VIEWPARAMS=tablename:1d;AphiaID:495077",
    layers = "eurobis_grid",
    options = leaflet::WMSTileOptions(
      transparent = TRUE,
      format = "image/png",
      info_format = "text/html"
    ),
    attribution = shiny::HTML("<a href='https://marineregions.org/'>Marine Regions</a>") 
  )

They use different layers

library(magrittr)
test <- eurobis:::eurobis_base_map() %>%
  leaflet.extras2::addWMS(
    baseUrl = "http://geo.vliz.be/geoserver/Dataportal/wms?VIEWPARAMS=where:dasid=8045",
    layers = "eurobis_grid_1d-obisenv",
    
    options = leaflet::WMSTileOptions(
      transparent = TRUE,
      format = "image/png",
      info_format = "text/html"
    )
  )

I am not sure this is a feature that we need in the package. I would not put more time in this and only pick up again if we get some requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant