Comments (5)
Can you
library(sf)
p1 = st_point(c(7,52))
p2 = st_point(c(-30,20))
sfc = st_sfc(p1, p2, crs = 4326)
sfc
st_transform(sfc, 3857)
or does that error too?
from mapview.
Please try installing the dev version of sf from r-universe, and report back whether that solved the issue. See also r-spatial/sf#2298
from mapview.
@edzer @tim-salabim you were correct, the issue was connected to the sf package - I installed it from the r-universe and mapview does not give that error anymore. Thanks!
from mapview.
It gives back an error, yes...
> library(sf)
> p1 = st_point(c(7,52))
> p2 = st_point(c(-30,20))
> sfc = st_sfc(p1, p2, crs = 4326)
Warning message:
In CPL_crs_from_input(x) :
GDAL Error 1: PROJ: proj_create_from_database: C:\Program Files\PostgreSQL\9.6\share\contrib\postgis-3.1\proj\proj.db lacks DATABASE.LAYOUT.VERSION.MAJOR / DATABASE.LAYOUT.VERSION.MINOR metadata. It comes from another PROJ installation.
> sfc
Geometry set for 2 features
Geometry type: POINT
Dimension: XY
Bounding box: xmin: -30 ymin: 20 xmax: 7 ymax: 52
CRS: NA
POINT (7 52)
POINT (-30 20)
> st_transform(sfc, 3857)
Error in st_transform.sfc(sfc, 3857) :
cannot transform sfc object with missing crs
from mapview.
I think something is wrong with you sf
installation. In any case, it doesn't seem to be a mapview issue
from mapview.
Related Issues (20)
- Saving Mapview Locally that have HTML Widget Popups HOT 2
- mapview not working with Raster* objects HOT 2
- Some `mapview` usage prevents caching chunk on knitr
- Plot only the last raster in mapview HOT 2
- mapview for inherited classes HOT 4
- Undefined Cartesian SRS HOT 4
- Error in validateScalarName using some specific variable names HOT 2
- Categorical raster data not displaying in mapshot output, using leaflet 2.2.2 HOT 3
- Identifying two sets of data in a single map HOT 2
- mapview not rendering with R version 4.4.0? HOT 2
- mapview values of raster are not shown on hover HOT 6
- Duplicated colors when plotting more than 16 discrete colors
- Lines between nearest neighbours (from st_connect) are not shown on map HOT 5
- Error in h(simpleError(msg, call)) HOT 3
- mapview not rendering on vscode and mapviewOptions(fgb = TRUE)
- Unable to map lwd to a variable HOT 1
- mapview::mapshot output png file image does not match the leaflet image in app.R
- mapview 2.11.2 doesn't show any map (while mapview 2.11.0 did) HOT 2
- problem when passing layerId (mapview_2.11.2.9000) HOT 3
- mapview can't install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapview.