hypertidy / silicate

A general form for complex data
https://hypertidy.github.io/silicate/
53 stars 4 forks source link

TRI0 not getting Z #113

Closed mdsumner closed 4 years ago

mdsumner commented 4 years ago

E.g.

library(sf)

f <- "/rdsi/PRIVATE/raad/data_staging/maps.nyc.gov/download/3dmodel/DA_WISE_Multipatch/DA_WISE_Multipatch/DA10_3D_Buildings_Multipatch.gdb"
d <- read_sf(f)
library(anglr)
r0 <- silicate::TRI0(d[1:10, ])
r1 <- silicate::TRI(d[1:10, ])

r0
class       : TRI0
type        : Primitive
vertices    : 93 (2-space)
primitives  : 146 (2-space)
crs         : NAD83 / New York Long Island (ftUS)
r1
class       : TRI
type        : Primitive
vertices    : 192 (3-space)
primitives  : 146 (2-space)
crs 
mdsumner commented 4 years ago

We can't get sense out of multipatch with TRI0 ... but we get the Z now at least ba4e75e9