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

28 GIS basics code runtime errors #413

Open
goodfoxs opened this issue Nov 16, 2024 · 0 comments
Open

28 GIS basics code runtime errors #413

goodfoxs opened this issue Nov 16, 2024 · 0 comments

Comments

@goodfoxs
Copy link

pacman::p_load(OpenStreetMap)

Fit basemap by range of lat/long coordinates. Choose tile type

map <- OpenStreetMap::openmap(

  • upperLeft = c(max(linelist$lat, na.rm=T), max(linelist$lon, na.rm=T)), # limits of basemap tile
  • lowerRight = c(min(linelist$lat, na.rm=T), min(linelist$lon, na.rm=T)),
  • zoom = NULL,
  • type = c("osm", "stamen-toner", "stamen-terrain", "stamen-watercolor", "esri","esri-topo")[1])
    java.lang.NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getRGB(int, int, int, int, int[], int, int)" because the return value of "org.openstreetmap.gui.jmapviewer.Tile.getImage()" is null
    at edu.cens.spatial.RTileController.getTileValues(RTileController.java:109)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:577)
    at RJavaTools.invokeMethod(RJavaTools.java:399)
    错误于osmtile(x%%nX, y, zoom, type):
    could not obtain tile: 7588 7804 14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant