Sandbox: Difference between revisions

From Opasnet
Jump to navigation Jump to search
Line 102: Line 102:
== Kuopio buildings on Google maps test ==
== Kuopio buildings on Google maps test ==


<rcode name='kuorakonmaps'>
<rcode name='kuorakonmaps' variables="name:age|description:Rakennuksen minimi-ikä|default:100">


library(rgdal)
library(rgdal)
Line 109: Line 109:
library(classInt)
library(classInt)
library(OpasnetBaseUtils)
library(OpasnetBaseUtils)
library(RODBC)


shp<-readOGR('PG:host=localhost user=postgres dbname=spatial_db','kuopio_house')
#shp<-readOGR('PG:host=localhost user=postgres dbname=spatial_db','kuopio_house')
 
channel<-odbcConnect("spatial_db")
shp<-sqlQuery(channel,paste('SELECT * FROM kuopio_house WHERE ika >= ',age,';',sep=''))
 
coordinates(shp)=c("y_koord","x_koord")
 
#shp<-readOGR('PG:host=localhost user=postgres dbname=spatial_db','kuopio_house')
plotvar<-shp@data$ika
plotvar<-shp@data$ika
nclr<-8
nclr<-8
Line 164: Line 172:
     kmlHeader <- c("<?xml version=\"1.0\" encoding=\"UTF-8\"?>","<kml xmlns=\"http://earth.google.com/kml/2.2\">", "<Document>")
     kmlHeader <- c("<?xml version=\"1.0\" encoding=\"UTF-8\"?>","<kml xmlns=\"http://earth.google.com/kml/2.2\">", "<Document>")
     kmlFooter <- c("</Document>", "</kml>")
     kmlFooter <- c("</Document>", "</kml>")
     #for (i in 1:nrow(obj)) {
     for (i in 1:nrow(obj)) {
    for (i in 1:100) {
         point <- obj[i, ]
         point <- obj[i, ]
         pt_name = name[i]
         pt_name = name[i]

Revision as of 09:30, 14 June 2012


http://ytoswww/yhteiset/YMAL/Projects/

Edited by ehac

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle L_{Aeq} = 10 \log \int_{t_0}^{t_1} \frac{p_A^2(t)}{p_0^2} dt }


Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \textstyle L_{Aeq} = 10 \log \int_{t_0}^{t_1} \frac{p_A^2(t)}{p_0^2} dt }

Static GoogleMaps test

+ Show code


Kuopio buildings on Google maps test

Rakennuksen minimi-ikä:

+ Show code


GoogleMaps Sorvi MML TEST

+ Show code

GoogleMaps PostgreSQL test 2

+ Show code

GoogleMaps PostgreSQL test

+ Show code

Opasnet.csv test

+ Show code

Opasnet.data and BUGS test

+ Show code

+ Show code

Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \alpha 444 + 9999 / 123}


Hello

  • this works

Bluebox

  • works
  • ok


R-tools code include example

+ Show code

Jatropan viljelyala (ha):

n:

Mitkä tekijät halua eritellä tuloksessa?:
Katalyytin määrä
Ikä
Kastelu
Käytetty puristin

Minkä yhden tekijän halua eritellä kuvaajassa?:

+ Show code

+ Show code

Rectangle area test

width:

Rect height:

+ Show code