Skip to content

A package of maps and spatial functions. The initial reason was to make a freely-available, correct simplified shapefile of NZ available - the nzHires map isn't correct in the upper eastern and lower western parts of the country. These maps are taken from LINZ data.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

orb16/southernMaps

Repository files navigation

southernMaps

Package of maps (for NZ) and assorted functions. Why? The map('nzHires') doesn't work with all WGS84 point data (you can end up in the ocean for surprisingly terrestrial points), and when you convert the LINZ map of NZ in WGS84, they don't line up:

bad maps

The data include the following maps as SpatialPolygonsDataFrames:

  1. nzHigh (high res), nzMed, nzSml (low res) in NZTM
  2. nzHigh84, nzMed84, nzSml84 as above, but in WGS84.

install as follows (you'll need devtools installed (install.packages('devtools')))

devtools::install_github("orb16/southernMaps")
require(southernMaps)

examples:


# whole country 

par(mfrow = c(1, 3))
plot(nzHigh, main = "nzHigh", border = "red2")
plot(nzMed, main = "nzMed", col = "orange")
plot(nzSml, main = "nzSml")
par(mfrow = c(1, 1))

# Stewart Island - shows difference in resolution 

par(mfrow = c(1, 3))
plot(nzHigh[nzHigh@data$name == "Stewart Island/Rakiura", ], main = "nzHigh: Stewart Island")
plot(nzMed[nzMed@data$name == "Stewart Island/Rakiura", ], main = "nzMed: Stewart Island")
plot(nzSml[nzSml@data$name == "Stewart Island/Rakiura", ], main = "nzSml: Stewart Island")
par(mfrow = c(1, 1))

# get CRS for NZTM

find_CRS(search = "New Zealand") 
# gives 2 options, select NZTM. CRS code is in the "code" column
find_CRS(epsg = "2193")

About

A package of maps and spatial functions. The initial reason was to make a freely-available, correct simplified shapefile of NZ available - the nzHires map isn't correct in the upper eastern and lower western parts of the country. These maps are taken from LINZ data.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages