An Interactive Temperature Prediction Map : Central Gothenburg City : Rstudio + Mapview + Raster

1 Load CentralaGBG.shp file

## OGR data source with driver: ESRI Shapefile 
## Source: "C:\Users\Heatfront\Desktop\blibtexfolder\javainRstdio\CentralaGBG\CentralaGBG.shp", layer: "CentralaGBG"
## with 8534 features
## It has 8 fields
## Warning in readOGR("CentralaGBG/CentralaGBG.shp"): Z-dimension discarded
## CRS arguments: NA
## class      : Extent 
## xmin       : 38550 
## xmax       : 39950 
## ymin       : 27443 
## ymax       : 28843

2 Import csv file and view data structure

## 'data.frame':    57 obs. of  3 variables:
##  $ X         : int  39477 39425 39332 39260 39405 39521 39554 39640 39716 39747 ...
##  $ Y         : int  27543 27588 27678 27830 27874 27902 27809 27819 27899 27977 ...
##  $ Temperatur: num  11.1 11 10.8 11.1 11.5 ...
## [1] "data.frame"

3 Create spatial object

## [1] "SpatialPointsDataFrame"
## attr(,"package")
## [1] "sp"

4 Interactive Actual Temperature Map : Central Gothenburg City

7 Set CRS to shape file

## OGR data source with driver: ESRI Shapefile 
## Source: "C:\Users\Heatfront\Desktop\blibtexfolder\javainRstdio\CentralaGBG\CentralaGBG.shp", layer: "CentralaGBG"
## with 8534 features
## It has 8 fields
## Warning in readOGR("CentralaGBG/CentralaGBG.shp"): Z-dimension discarded
## CRS arguments: NA
## class      : Extent 
## xmin       : 38550 
## xmax       : 39950 
## ymin       : 27443 
## ymax       : 28843
## [1] "+init=epsg:3847 +proj=tmerc +lat_0=0 +lon_0=15.80628452944445 +k=1.00000561024 +x_0=1500064.274 +y_0=-667.711 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
## [1] "+init=epsg:3847 +proj=tmerc +lat_0=0 +lon_0=15.80628452944445 +k=1.00000561024 +x_0=1500064.274 +y_0=-667.711 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
## [1] "data.frame"
## [inverse distance weighted interpolation]

8 Interactive Temperature Prediction Map : Central Gothenburg City

2019-07-30