Skip to content

Subdivision morpher does nothing on my network #211

Answered by agila5
Jean-Romain asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Jean-Romain. I think you may have some problems with the input data.

  1. The LINESTRINGS stored in network.gpkg have a Z dimension which explains why to_spatial_subdivision does not split any segment (since the common points probably have a different value for the Z covariate);
# packages
library(sf)
#> Linking to GEOS 3.9.1, GDAL 3.2.1, PROJ 7.2.1; sf_use_s2() is TRUE

seg = st_read("C:/Users/Andrea Gilardi/Downloads/network.gpkg", quiet = TRUE)
seg
#> Simple feature collection with 48 features and 1 field
#> Geometry type: LINESTRING
#> Dimension:     XYZ
#> Bounding box:  xmin: 269011.3 ymin: 5154036 xmax: 277985.3 ymax: 5161983
#> z_range:       zmin: 1 zmax: 177
#> Projected CRS: N…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Jean-Romain
Comment options

@Jean-Romain
Comment options

Answer selected by Jean-Romain
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants