Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

R package with the administrative boundaries of Spain, including CCAA, provinces and municipalities

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
LICENSE.md
NotificationsYou must be signed in to change notification settings

rOpenSpain/mapSpain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataLast Update

This branch is used as CDN to distribute CartoBase ANE data tomapSpain.

Due to poor API, data is not easily reachable, so this branch would be used asAPI endpoint.

Last update :2024-08-02, containingdata up to 2024.

Source data {#source-data}

Atlas Nacional de España (ANE)CC BY4.0ign.es.

http://centrodedescargas.cnig.es/CentroDescargas/buscar.do?filtro.codFamilia=CAANE

Structure {#structure}

Raw data is available under data-raw/YYYY. Zipped version and unzipped (selectedfiles) are provided.

Distribution {#distribution}

Thedist folder contains a distribution ofCartoBaseANE onGPKG format.

Azip file (dist/CartoBase.zip, 26.4 Mb ) is alsoprovided, including all the data ondist.

Files included {#files-included}

The files provided ondist come from the foldertodo from each distribution.These file contains the whole history on each dataset, with two relevant fields,allowing to track historical changes between data sets:

  • fecha_alta: Start validity date
  • fecha_baja: End validity date

It is necessary to apply some filtering depending on the date requested:

library(sf)library(dplyr)library(ggplot2)munic<- read_sf("dist/se89_3_admin_muni_a_x.gpkg",quiet=TRUE) %>%  filter(rotulo=="Arenas del Rey")ggplot(munic)+  geom_sf()+  facet_wrap(~fecha_alta,nrow=1)

munic %>%  st_drop_geometry() %>%  select(fecha_alta,fecha_baja,rotulo) %>%knitr::kable()
fecha_altafecha_bajarotulo
2005-12-312015-02-19Arenas del Rey
2015-02-192018-12-13Arenas del Rey
2018-12-13NAArenas del Rey

An example of filtering:

# 2010 shapeyear<-2010year.fmt<- as.Date(paste(year,"01","01",sep="-"))shp2010<-munic %>%# If fecha_baja is NA means it is the current valid shape  mutate(fecha_baja= ifelse(is.na(fecha_baja), Sys.Date(),fecha_baja)) %>%  filter(fecha_alta<year.fmt&year.fmt<=fecha_baja)ggplot(shp2010)+  geom_sf()+  labs(title=year)# 2017 shapeyear<-2017year.fmt<- as.Date(paste(year,"01","01",sep="-"))shp2017<-munic %>%  mutate(fecha_baja= ifelse(is.na(fecha_baja), Sys.Date(),fecha_baja)) %>%  filter(fecha_alta<year.fmt&year.fmt<=fecha_baja)ggplot(shp2017)+  geom_sf()+  labs(title=year)# Current valueshpcurrent<-munic %>% filter(is.na(fecha_baja))ggplot(shpcurrent)+  geom_sf()+  labs(title="Current")

Table of files {#table-of-files}

Full reference of each dataset in thedata-raw folder.

There are 77 files available:

fileresscopesize
se89_3_admin_ccaa_a_x.gpkg3Europe380 Kb
se89_3_admin_ccaa_a_y.gpkg3Europe112 Kb
se89_3_admin_muni_a_x.gpkg3Europe5.5 Mb
se89_3_admin_muni_a_y.gpkg3Europe176 Kb
se89_3_admin_prov_a_x.gpkg3Europe616 Kb
se89_3_admin_prov_a_y.gpkg3Europe112 Kb
se89_3_hidro_demc_a_x.gpkg3Europe304 Kb
se89_3_hidro_demc_a_y.gpkg3Europe96 Kb
se89_3_hidro_demt_a_x.gpkg3Europe340 Kb
se89_3_hidro_demt_a_y.gpkg3Europe120 Kb
se89_3_hidro_rio_a_x.gpkg3Europe268 Kb
se89_3_hidro_rio_l_x.gpkg3Europe1.2 Mb
se89_3_hidro_rio_l_y.gpkg3Europe104 Kb
se89_3_orog_hipso_a_x.gpkg3Europe4.7 Mb
se89_3_orog_hipso_a_y.gpkg3Europe324 Kb
se89_3_orog_hipso_l_x.gpkg3Europe2.7 Mb
se89_3_orog_hipso_l_y.gpkg3Europe216 Kb
se89_3_urban_capimuni_a_x.gpkg3Europe136 Kb
se89_3_urban_capimuni_a_y.gpkg3Europe96 Kb
se89_3_urban_capimuni_p_x.gpkg3Europe1.5 Mb
se89_3_urban_capimuni_p_y.gpkg3Europe116 Kb
se89_3_vias_ctra_l_x.gpkg3Europe768 Kb
se89_3_vias_ctra_l_y.gpkg3Europe116 Kb
se89_3_vias_ffcc_l_x.gpkg3Europe340 Kb
se89_3_vias_ffcc_p_x.gpkg3Europe128 Kb
se89_6m5_admin_ccaa_a_x.gpkg6.5Europe336 Kb
se89_6m5_admin_ccaa_a_y.gpkg6.5Europe100 Kb
se89_6m5_admin_cela_a_x.gpkg6.5Europe680 Kb
se89_6m5_admin_cela_a_y.gpkg6.5Europe116 Kb
se89_6m5_admin_muni_a_x.gpkg6.5Europe5.4 Mb
se89_6m5_admin_muni_a_y.gpkg6.5Europe160 Kb
se89_6m5_admin_prov_a_x.gpkg6.5Europe540 Kb
se89_6m5_admin_prov_a_y.gpkg6.5Europe104 Kb
se89_6m5_hidro_demc_a_x.gpkg6.5Europe196 Kb
se89_6m5_hidro_demc_a_y.gpkg6.5Europe96 Kb
se89_6m5_hidro_demt_a_x.gpkg6.5Europe216 Kb
se89_6m5_hidro_demt_a_y.gpkg6.5Europe104 Kb
se89_6m5_hidro_rio_a_x.gpkg6.5Europe144 Kb
se89_6m5_hidro_rio_l_x.gpkg6.5Europe312 Kb
se89_6m5_orog_hipso_a_x.gpkg6.5Europe1.8 Mb
se89_6m5_orog_hipso_a_y.gpkg6.5Europe256 Kb
se89_6m5_orog_hipso_l_x.gpkg6.5Europe660 Kb
se89_6m5_orog_hipso_l_y.gpkg6.5Europe180 Kb
se89_6m5_vias_ffcc_e_x.gpkg6.5Europe204 Kb
se89_10_admin_ccaa_a_x.gpkg10Spain196 Kb
se89_10_admin_ccaa_a_y.gpkg10Spain100 Kb
se89_10_admin_cela_a_x.gpkg10Spain560 Kb
se89_10_admin_cela_a_y.gpkg10Spain112 Kb
se89_10_admin_cels_a_x.gpkg10Spain544 Kb
se89_10_admin_cels_a_y.gpkg10Spain112 Kb
se89_10_admin_muni_a_x.gpkg10Spain5.3 Mb
se89_10_admin_muni_a_y.gpkg10Spain160 Kb
se89_10_admin_prov_a_x.gpkg10Spain300 Kb
se89_10_admin_prov_a_y.gpkg10Spain104 Kb
se89_10_hidro_demc_a_x.gpkg10Spain168 Kb
se89_10_hidro_demc_a_y.gpkg10Spain96 Kb
se89_10_hidro_demt_a_x.gpkg10Spain212 Kb
se89_10_hidro_demt_a_y.gpkg10Spain104 Kb
se89_10_hidro_rio_a_x.gpkg10Spain116 Kb
se89_10_hidro_rio_l_x.gpkg10Spain220 Kb
se89_10_urban_capiccaa_p_x.gpkg10Spain96 Kb
se89_10_urban_capilasp_p_y.gpkg10Spain96 Kb
se89_10_urban_capimuni_p_x.gpkg10Spain1.5 Mb
se89_10_urban_capimuni_p_y.gpkg10Spain116 Kb
se89_10_urban_capiprov_p_x.gpkg10Spain104 Kb
se89_10_urban_capiprov_p_y.gpkg10Spain96 Kb
se89_10_urban_capitene_p_y.gpkg10Spain96 Kb
se89_10_vias_ffcc_e_x.gpkg10Spain108 Kb
se89_10_vias_ffcc_l_x.gpkg10Spain200 Kb
se89_10_vias_ffcc_p_x.gpkg10Spain112 Kb
ee89_14_admin_pais_a.gpkg14Europe1.8 Mb
ee89_14_urban_capital_p.gpkg14Europe120 Kb
ww84_60_admin_pais_a.gpkg60World2.2 Mb
ww84_60_admin_paismar_a.gpkg60World112 Kb
ww84_60_hidro_pesc_a.gpkg60World420 Kb
ww84_60_urban_capital_p.gpkg60World156 Kb
se89_mult_admin_provcan_l.gpkgNANA96 Kb

Preview {#preview}

About

R package with the administrative boundaries of Spain, including CCAA, provinces and municipalities

Topics

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
LICENSE.md

Contributing

Stars

Watchers

Forks

Contributors7

Languages


[8]ページ先頭

©2009-2025 Movatter.jp