Read Geographical Information in Boundary Format
Reads the geographical information provided in a file in boundary format and stores it in a map object.
name of the boundary file to be read.
should the regions be ordered by the numbers speciying the region names
A boundary file provides the boundary information of a geographical map in terms of closed polygons. For each region of the map, the boundary file contains a block of lines defining the name of the region, the number of lines the polygon consists of, and the polygons themselves. The first line of such a block contains the region code surrounded by quotation marks and the number of lines the polygon of the region consists of. The region code and the number of lines must be separated by a comma. The subsequent lines contain the coordinates of the straight lines that form the boundary of the region. The straight lines are represented by the coordinates of their end points. Coordinates must be separated by a comma.
The following is an example of a boundary file as provided in file
Germany.bnd in the
examples folder of this package.
Hence, the region code of the first region is "1001" and contains of 9 points that form its polygon. The second region has region code "1002" and contains of 18 polygon points (note that only the first two points are shown).
Returns a list of polygons that form the map. Additional attributes are
Parallel list where for each polygon, the name of a possible surrounding region is saved.
Ratio between height and width of the map. Allows customised drawing and storage in files by specifying the appropriate height and width.
Daniel Sabanes Bove, Felix Heinzl, Thomas Kneib, Andreas Brezger.
BayesX Reference Manual. Available at http://www.BayesX.org.
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.