Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linhas de desejo e shapefile #19

Open
temospena opened this issue Jul 10, 2020 · 0 comments
Open

Linhas de desejo e shapefile #19

temospena opened this issue Jul 10, 2020 · 0 comments
Labels
geo operações geoespaciais

Comments

@temospena
Copy link
Owner

Simplificar, usando o stplanr

library(sf)
library(stplanr)

# 1 -- Importar lista de coordenadas que estava em shp
COORD = st_read("path/centroides.shp")
# 2 -- criar linhas entre pares OD, que estão em formato long (O | D | num)
desire_lines <- od2line(LISTAOD, COORD)
# 3 -- exportar shapefile
st_write(desire_line, "linhasdesejo.shp")
@temospena temospena added the geo operações geoespaciais label Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
geo operações geoespaciais
Projects
None yet
Development

No branches or pull requests

1 participant