https://github.com/mdsumner/vegmapdata
https://github.com/mdsumner/vegmapdata
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdsumner/vegmapdata
- Owner: mdsumner
- License: other
- Created: 2018-04-11T01:52:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-11T02:08:23.000Z (about 8 years ago)
- Last Synced: 2024-12-28T12:16:57.204Z (over 1 year ago)
- Language: R
- Size: 52.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
# vegmapdata
The goal of vegmapdata is to provide a fast and simple compromise to accessing
TASVEG polygon classifications.
WORK IN PROGRESS
The basic idea is to have the data frame of fields, and a nicely compressed GeoTIFF version of the data frame row IDs. Currently at 10m resolution only.
(See /data-raw/).
TODO
rerun the script to put the UTM zone CRS on properly, the GeoTIFF is currently un-crs ready because I read the geometry on its own. (Use "+init=epsg:32755").
How to use?
pseudocode:
```{r vegmap-lookup, eval = FALSE}
r <- raster(rasterfile)
d <- readRDS(datafile)
ids <- raster::extract(r, mypts)
## data attributes
mytps$vegcode <- d[ids, c("VEGCODE"), drop = FALSE]
```