Learn R Programming

mapycusmaximus (version 1.0.7)

vic: Victoria Local Government Areas (sf)

Description

An example polygon layer of Victoria's LGAs for demos and tests. Built from data-raw/map/LGA_POLYGON.shp, Z/M dropped, transformed to a projected CRS, simplified, validated, and reduced to LGA_NAME + geometry.

Usage

vic

Arguments

Format

An sf object with:

LGA_NAME

Character, LGA name (upper case).

geometry

MULTIPOLYGON / POLYGON in a projected CRS.

Details

The CRS stored in the object is whatever st_crs(vic) reports at build time. In data-raw/gen-data.R we:

  1. drop Z/M (st_zm()),

  2. transform to a projected CRS (st_transform()),

  3. simplify (st_simplify(dTolerance = 100)),

  4. repair geometries (st_make_valid()),

  5. upper-case names and select columns.

Examples

Run this code
library(sf)
plot(sf::st_geometry(vic), col = "grey90", border = "grey50")

Run the code above in your browser using DataLab