Difference between revisions of "Opasnet map"

From Testiwiki
Jump to: navigation, search
m (Rationale)
m (Answer)
Line 24: Line 24:
  
 
Key guidance:
 
Key guidance:
 +
* [[OpasnetUtils/Drafts]] contains many functions needed.
 +
* [[Help:Drawing graphs]] contains guidance for making non-map graphs.
 
* [http://cran.r-project.org/web/packages/rgdal/rgdal.pdf rgdal package for R]
 
* [http://cran.r-project.org/web/packages/rgdal/rgdal.pdf rgdal package for R]
 
** [http://www.gdal.org/ GDAL - Geospatial Data Abstraction Library]
 
** [http://www.gdal.org/ GDAL - Geospatial Data Abstraction Library]

Revision as of 14:38, 23 December 2013



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:


Rationale

Calculations

Kuopio buildings with Google pin map

+ Show code


GoogleMaps Sorvi MML

#: Something wrong with sorvi. --Jouni (talk) 12:54, 23 December 2013 (EET)

+ Show code

Google with shapefiles

+ Show code

Google show data from url on map

+ Show code

Google circles

+ Show code

Static GoogleMaps

+ Show code

See also

Keywords

References


Related files

<mfanonymousfilelist></mfanonymousfilelist>