Difference between revisions of "Sandbox"

From Testiwiki
Jump to: navigation, search
m (Kuopio buildings on Google maps test)
m (Kuopio buildings on Google maps test)
Line 130: Line 130:
 
kmldescription<-"Random stuff about here"
 
kmldescription<-"Random stuff about here"
 
icon<-"http://maps.google.com/mapfiles/kml/pal2/icon18.png"
 
icon<-"http://maps.google.com/mapfiles/kml/pal2/icon18.png"
name<-paste("ika value: ", shp2$ika)
+
name<-paste("Value: ",shp2$ika)
description <- paste("<b>Value:</b>",shp2$ika,"<br><b>Description:</b>",shp2$kayttotark)
+
description <- paste("<b>Ikä:</b>",shp2$ika,"<br><b>Rakennustunnus:</b>",shp2$rakennustunnus)
 
 
  
 
MyPointKML<-function(obj = NULL, kmlname = "", kmldescription = "", name = NULL, description = "", icon = "http://maps.google.com/mapfiles/kml/pal4/icon24.png",col=NULL)  
 
MyPointKML<-function(obj = NULL, kmlname = "", kmldescription = "", name = NULL, description = "", icon = "http://maps.google.com/mapfiles/kml/pal4/icon24.png",col=NULL)  
Line 150: Line 149:
 
             i))
 
             i))
 
     }
 
     }
    if (length(name) < nrow(obj)) {
+
 
        if (length(name) > 1)
 
            warning("kmlPoints: length(name) does not match nrow(obj). The first name will be replicated.")
 
        name <- rep(name, nrow(obj))
 
    }
 
    if (length(description) < nrow(obj)) {
 
        if (length(description) > 1)
 
            warning("kmlPoints: length(description) does not match nrow(obj). The first description will be replicated.")
 
        description <- rep(description, nrow(obj))
 
    }
 
    if (length(icon) < nrow(obj)) {
 
        if (length(icon) > 1)
 
            warning("kmlPoints: length(icon) does not match nrow(obj). Only the first one will be used.")
 
        icon <- icon[1]
 
    }
 
 
     col2kmlcolor <- function(col) paste(rev(sapply(col2rgb(col, TRUE), function(x) sprintf("%02x", x))), collapse = "")
 
     col2kmlcolor <- function(col) paste(rev(sapply(col2rgb(col, TRUE), function(x) sprintf("%02x", x))), collapse = "")
 
     kml <- kmlStyle <- ""
 
     kml <- kmlStyle <- ""

Revision as of 13:09, 18 June 2012


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

Edited by ehac

Failed to parse (Missing <code>texvc</code> executable. Please see math/README to configure.): L_{Aeq} = 10 \log \int_{t_0}^{t_1} \frac{p_A^2(t)}{p_0^2} dt


Failed to parse (Missing <code>texvc</code> executable. Please see math/README to configure.): \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

Building minimum age:

+ 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 (Missing <code>texvc</code> executable. Please see math/README to configure.): \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