Re: [R-sig-Geo] Converting UTMs to SpatialPolygons object

2012-07-16 Thread Michael Sumner
Here we go, I'm assuming each ring is its own simple object, and a few other things. id = rep(seq(1,3),each=12) az = rep(seq(0,359,30),3) ## assume you meant to use all ids here? d = data.frame(id,az) d$dist = round(rnorm(36,10,3),1) xp = function(azimuth, r){cos(((90-azimuth)*pi)/180)*r} yp =

Re: [R-sig-Geo] How to get each bandwidth values on observation points using adaptive kernel in spgwr ?

2012-07-16 Thread Lilis Husna
when i run res - gw.adapt(cbind(columbus$x, columbus$y), cbind(columbus$x, columbus$y), quant=0.5) there is error message Error: could not find function gw.adapt why did it happen?    Best Regards, Lilis Nurul Husna Institute of Statistics  Jakarta [[alternative HTML version

Re: [R-sig-Geo] Converting UTMs to SpatialPolygons object

2012-07-16 Thread seth
Michael,  the code for converting a data frame containing UTM coordinates identified by group, into SpatialPolygon objects, works spectacularly well. Many thanks --Seth - Original Message - From:Michael Sumner To: Cc: Sent:Mon, 16 Jul 2012 16:30:46 +1000 Subject:Re: [R-sig-Geo]

Re: [R-sig-Geo] How to get each bandwidth values on observation points using adaptive kernel in spgwr ?

2012-07-16 Thread Barry Rowlingson
On Mon, Jul 16, 2012 at 10:36 AM, Lilis Husna lily_frankn...@yahoo.com wrote: when i run res - gw.adapt(cbind(columbus$x, columbus$y), cbind(columbus$x, columbus$y), quant=0.5) there is error message Error: could not find function gw.adapt why did it happen? Who told you about

[R-sig-Geo] ERROR: dependency ‘png’ is not available for package ‘RgoogleMaps’

2012-07-16 Thread Anisha Kaul
Greetings, I installed R, Rcpp, RInside successfully on my computer (Linux - openSUSE 11.3, 64 bit). Now when I try to install `RgoogleMaps` package, I get this error: _ linux-y3pi:# R CMD INSTALL RgoogleMaps_1.2.0.tar.gz * installing to library

Re: [R-sig-Geo] ERROR: dependency ‘png’ is not available for package ‘RgoogleMaps’

2012-07-16 Thread Anisha Kaul
Okay, sorry for bothering - I couldn't have guessed that 'png' is a tar file that needs to installed separately. http://cran.r-project.org/web/packages/png/index.html On 16 July 2012 16:47, Anisha Kaul born.rebel...@gmail.com wrote: Greetings, I installed R, Rcpp, RInside successfully on my

[R-sig-Geo] Error in eval(expr, envir, enclos) : could not find function “GetMap”

2012-07-16 Thread Anisha Kaul
Greetings, System: openSUSE 11.3 64 bit Here's the content of my file - mow.R MyMap - GetMap(markers = '40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc', destfile = MyTile1.png); as

Re: [R-sig-Geo] Error in eval(expr, envir, enclos) : could not find function “GetMap”

2012-07-16 Thread Anisha Kaul
:sigh: Didn't know that the program shown here is not complete. http://rgm2.lab.nig.ac.jp/RGM2/func.php?rd_id=RgoogleMaps:RgoogleMaps-package The following needs to be added in the file. library(RgoogleMaps) png(filename=RgoogleMaps-package_%03d_med.png, width=480, height=480) On 16 July

[R-sig-Geo] cannot open: HTTP status was '403 Forbidden' The sensor parameter specified in the request must be set to either true or false.

2012-07-16 Thread Anisha Kaul
The mow.R now contains: __ library (RgoogleMaps) png (filename=RgoogleMaps-package_%03d_med.png, width=480, height=480) MyMap - GetMap(markers = '40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc', sensor = false, destfile

Re: [R-sig-Geo] How to get each bandwidth values on observation points using adaptive kernel in spgwr ?

2012-07-16 Thread Roger Bivand
On Mon, 16 Jul 2012, Barry Rowlingson wrote: On Mon, Jul 16, 2012 at 10:36 AM, Lilis Husna lily_frankn...@yahoo.com wrote: when i run res - gw.adapt(cbind(columbus$x, columbus$y), cbind(columbus$x, columbus$y), quant=0.5) there is error message Error: could not find function gw.adapt

[R-sig-Geo] Package: Remote Sensing: HelpFile

2012-07-16 Thread Vikram Ranga
Hello, I have recently installed the 'RemoteSensing' package but I could not find any help file with package describing about the functions. I have R 2.13.2 version, so it could be installed by first downloading the package from the repository and installing from downloaded file (.zip). Is

[R-sig-Geo] Adding Spatial Polygon Data Frame to spplot output

2012-07-16 Thread Roosbeh Nowrouzian
Dear List members: I have plotted a SpatialPointsDataFrame (originated from GWR estimation) using spplot function. I need to add county boundaries(a SpatialPolygonsDataFrame ) of the points where they belong to. I can plot these two spatial data frame separately but how can I show the spplot of

Re: [R-sig-Geo] Adding Spatial Polygon Data Frame to spplot output

2012-07-16 Thread Samuel Turgeon
Hi Roosbeh, one way to that is: ## a=SpatialPointsDataFrame ## b= SpatialPolygonsDataFrame pts - list(sp.points,a[,column_to_map]) spplot(b[,column_to_map],sp.layout=list(pts)) in the first line you can add parameters cex, pch, col,... In the second line you can add parameters such as

[R-sig-Geo] back transforming kriged values

2012-07-16 Thread Kerry Ritter
Hi. I am trying to back transform the predicted values from universal kriging. Is there an example of how to do this? Below is the code I use to get the kriging predictions. vgm.aniso7=variogram(LN_tLAB~X_UTM + Y_UTM, OCSDCalib.spdf, alpha=c(0,90,180,270), cutoff=3000,cressie=TRUE)

Re: [R-sig-Geo] cannot open: HTTP status was '403 Forbidden' The sensor parameter specified in the request must be set to either true or false.

2012-07-16 Thread Anisha Kaul
This is solved - credit to Marcelo from stackoverflow. Attached the '' to the front of the markers list as follows: MyMap - GetMap(markers='40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc', destfile=MyTile1.png); This resulted in the url:

[R-sig-Geo] Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection

2012-07-16 Thread Anisha Kaul
Greetings, R version 2.15.1 RgoogleMaps version 1.2.0 openSUSE 11.3, 64 bit The source code file 'mow.R' now contains: ___ library(RgoogleMaps); png(filename=RgoogleMaps-package_%03d_med.png, width=480, height=480); MyMap -

Re: [R-sig-Geo] Problem connecting to GRASS via spgrass6 and plr - SOLVED

2012-07-16 Thread Mark Wynter
Thanks to Joe Conway and Greg Booma on the plr mailing list. They saw the problem as a permissions issue. The solution was to create a new GRASS mapset under the postgres user, due to the way mapset permissions work in GRASS. I then changed initGRASS to the mapset=postgres as per below. And