Description References Examples
BE_OSM_ADMIN: SpatialPolygonsDataFrame with administrative boundaries of Belgium. Extracted on 2015/11/19. It contains polygons of all administrative boundaries (levels 2, 4, 6, 7, 8, 9). Polygons are stored in degrees latitude/longitude (EPSG:4326 WGS 84). The data slot in the SpatialPolygonsDataFrame contains the following fields:
The OpenStreetMap data of Europe (europe-latest.osm.pbf as of 2015-11-18T22:23:02Z) was clipped with the bounding box 51.6, 49.4, 2.3, 6.5 using osmosis and the resulting file was imported with osm2pgsql in PostGIS and converted to a shapefile with pgsql2shp to obtain shape files of polygons of administrative boundaries of administrative levels 2, 4, 6, 7, 8, 9.
SQL: select osm_id, boundary, admin_level, name, way_area, way, id, way_off, rel_off, parts, members, rels.tags from (select * from planet_osm_polygon where boundary = 'administrative' and admin_level IN ('2', '4', '6', '7', '8', '9')) polygon left outer join (select * from planet_osm_rels) as rels on -polygon.osm_id = rels.id;
The data was further joined based on the INS code with aggregated TF_SOC_POP_STRUCT_2015 data from the BelgiumStatistics package and spatially grouped at different administrative levels which were retained from the TF_SOC_POP_STRUCT_2015 data namely: municipality / district / province / region / country as well as clipped to the Belgium boundary. All the administrative boundaries are made available in the BE_OSM_ADMIN dataset which can be found inside the package.
Mark that Brussels is not considered a a province and that in this dataset at the province level the region level information is taken from the TF_SOC_POP_STRUCT_2015 dataset.
osm.id: the OpenStreetMap id of the polygon
boundary: the boundary OpenStreetMap tag of the polygon: always administrative
admin.level: the admin_level OpenStreetMap tag of the polygon: either 2, 4, 6, 7, 8, 9 (national, regions, provinces, districts, municipalities, nissections)
name: the OpenStreetMap name of the polygon
way.off: part of the planet_osm_rels table
rel.off: part of the planet_osm_rels table
parts: ways field, part of the planet_osm_rels table
members: members field, part of the planet_osm_rels table
tags: tags field, part of the planet_osm_rels table
tag.type: type tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.admin.level: admin_level tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.boundary: boundary tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.name: name tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.name.nl: name:nl tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.name.fr: name:fr tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.official.name: official_name tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.official.name.nl: official_name:nl tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.official.name.fr: official_name:fr tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.wikipedia.fr: wikipedia:fr tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.addr.postcode: addr:postcode tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.ref.ins: ref:INS tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.old.ref.ins: old_ref:INS tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.wikipedia: wikipedia tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.wikidata: wikidata tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.website: website tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
tag.is.in: is_in tag, extracted using tag_extractor
from the tags field of the planet_osm_rels table
http://wiki.openstreetmap.org/wiki/Tag:boundary=administrative, http://download.geofabrik.de/europe.html, https://en.wikipedia.org/wiki/World_Geodetic_System
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
data(BE_OSM_ADMIN)
str(as.data.frame(BE_OSM_ADMIN))
library(sp)
plot(BE_OSM_ADMIN)
plot(subset(BE_OSM_ADMIN, admin.level %in% "2"))
plot(subset(BE_OSM_ADMIN, admin.level %in% "4"))
plot(subset(BE_OSM_ADMIN, admin.level %in% "6"))
plot(subset(BE_OSM_ADMIN, admin.level %in% "7"))
plot(subset(BE_OSM_ADMIN, admin.level %in% "8"))
plot(subset(BE_OSM_ADMIN, admin.level %in% "9"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.