hypertidy / anglr

Mesh creation and topology for spatial data (and not just geographic)
https://hypertidy.github.io/anglr/
83 stars 10 forks source link

non-numeric vertices #116

Open mdsumner opened 4 years ago

mdsumner commented 4 years ago

Probably should disallow these earlier

nz <- spData::nz
cl <- raster::rasterToContour(raster::crop(quadmesh::etopo, 
                  sf::st_transform(nz, 4326)))

copy_down(SC0(cl), "level")
# class       : SC
# type        : Primitive
# vertices    : 1054 (3-space)
# primitives  : 527 (1-space)
# crs         : +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +towgs84=0,0,0
# Warning message:
#   In find_z(x, z) : z is not numeric

plot3d(copy_down(SC0(cl), "level"))
# Warning message:
#   In find_z(x, z) : z is not numeric