Opasnet map: Difference between revisions
Jump to navigation
Jump to search
| Line 207: | Line 207: | ||
</rcode> | </rcode> | ||
=== | ====Rasters on Google maps==== | ||
<rcode graphics=1> | |||
<rcode | |||
library(OpasnetUtils) | library(OpasnetUtils) | ||
library(OpasnetUtilsExt) | library(OpasnetUtilsExt) | ||
library(rgdal) | library(rgdal) | ||
| Line 228: | Line 218: | ||
library(raster) | library(raster) | ||
altiste <- "Ni" | |||
pitoisuus <- new("ovariable", | pitoisuus <- new("ovariable", | ||
| Line 311: | Line 302: | ||
27.999601 | 27.999601 | ||
)) | )) | ||
oprint(locs) | |||
data <- merge(data, locs) | data <- merge(data, locs) | ||
Revision as of 06:19, 26 December 2013
| Moderator:Jouni (see all) |
| This page is a stub. You may improve it into a full page. |
| Upload data
|
Question
How should GIS data be handled and visualised in Opasnet?
Answer
- Original GIS data is stored in a PostgreSQL database.
- Data is accessed by R using the RGDAL package and ?? connection.
- Data in manipulated in R.
- Ovariables are converted to SpatialPointsDataFrame objects using ova2spat function.
- Data is displayed by producing a KML file with ?? package.
- The KML file is created with MyPointKML function, if pins are shown.
- The KML file is saved at the R-tools server.
- Google Maps is used to show the KML file on a web page.
Currently, ova2spat and MyPointKML functions are located in OpasnetUtils/Drafts. Therefore, you need this command:
objects.latest("Op_en6007", code_name = "answer") # OpasnetUtils/Drafts. We need MyPointsKML and ova2spat.
This is the projection that the National Land Survey Finland uses: [1].
Key guidance:
- OpasnetUtils/Drafts contains many functions needed.
- Help:Drawing graphs contains guidance for making non-map graphs.
- rgdal package for R
- sp package for R: contains descriptions about the key spatial objects.
- Changing the coordinate system of Spatial objects
Rationale
Calculations
Kuopio buildings with Google pin map
GoogleMaps Sorvi MML
⇤--#: . Something wrong with sorvi. --Jouni (talk) 12:54, 23 December 2013 (EET) (type: truth; paradigms: science: attack)
Google with shapefiles
Google show data from url on map
Google circles
Rasters on Google maps
Static GoogleMaps
See also
Keywords
References
Related files
<mfanonymousfilelist></mfanonymousfilelist>