shapes: Spatial data on Poland

Description polska.shp: Contour of Poland voiv.shp: Voivodships Accessing the shape files References Examples

Description

Package mapoland provides some extra data files with spatial information about Poland. These are in ESRI shape files stored in the shapes folder of the package directory.

The policy that is implemented in package mapoland is to:

  1. Store polygon data in shape files instead of in R images (rda files) of objects of class "SpatialPolygonsDataFrame". The user can easily import them using getShape function in this package.

  2. Limit the number of polygon attributes in the shape files to absolute minimum necessary for identifying the polygons. Currently the polygons can be identified with TERYT codes as well as area names in various encodings, see sections below for details.

  3. All additional polygon attributes are stored in separate data frames, to be loaded with data. They can be matched with the polygons "on the fly" as well as used for other purposes.

Quick list of available shape files (see sections below for details):

polska.shp

low-quality contour of Poland

voiv.shp

low-quality polygons for Polish voivodships

See section "Accessing the shape files" at the end for how to get your hands on the data.

polska.shp: Contour of Poland

File: polska.shp
Source: Unknown

This is a simple low-quality contour of Poland. Very usefull for presentation purposes, not for any serious geo-/spatial purposes. Point coordinates do not have any geographical interpretation and the projection is unknown. The shape file does not contain any polygon attributes.

voiv.shp: Voivodships

File: voiv.shp
Source: Unknown

Sixteen low-quality polygons of polish voivodships (top administrative units). Point coordinates do not have any geographical interpretation and the projection is unknown.

The shape has the following polygon attributes:

teryt

Area code from TERYT database, official territorial classification (http://www.stat.gov.pl)

names_asci

Voivodship names in plain ASCII, without Polish diacritics

names_utf8

Voivodship names in UTF-8 encoding

names_lati

Voivodship names in Latin2 encoding

Accessing the shape files

The files can be accessed directly using for example:

1
system.file("shapes", "voiv.shp", package="mapoland")

or using the getShape wrapper function which returns objects of class "SpatialPolygonsDataFrame" (package sp).

References

TERYT database, National Official Register of Territorial Division of the Country http://www.stat.gov.pl/bip/36_ENG_HTML.htm

Poland and its administrative units: http://en.wikipedia.org/wiki/Voivodeships_of_Poland

Examples

1
2
3
4
5
6
7
# Contour of Poland
plot(getShape("polska"))

# Voivodships with their names
pl <- getShape("voiv")
plot(pl)
text(coordinates(pl), labels=voivNames(), cex=0.8)

mapoland documentation built on May 2, 2019, 6:53 p.m.