knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
forked from sf 49504352e685702ee749a042e26476fc91b66014 2017-01-28
library(sf) dsn <- system.file("shape/nc.shp", package="sf") nc <- st_read(dsn) wkt <- readLines(system.file("shape/nc.prj", package = "sf")) sf:::CPL_crs_from_wkt(wkt) mls <- "POINT (20 30)" a <- sf::st_sfc(sf:::CPL_sfc_from_wkt(mls)) x <- sf:::gv(dsn)
We need "agr.R", "sf.r" and "sp.R".
nc <- st_read(system.file("shape/nc.shp", package="sf")) Reading layer `nc' from data source `/perm_storage/home/mdsumner/R/x86_64-pc-linux-gnu-library/3.3/sf/shape/nc.shp' using driver `ESRI Shapefile' converted into: MULTIPOLYGON Error in st_sf(x, ..., agr = agr) : object 'NA_agr_' not found
We need sp.R for st_as_sfc generic.
op st_intersects is a problem, so will have to hack the slice [
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.