[R] One-To-Many Spatial JOIN
Hello all, I am trying to do a one-to-many Spatial Join with PolyLines and Polygons. I have about a couple of thousands of PolyLines (streets) and I want to assign them all the Polyogons (regions) they cross or touch. I know this is possible in ArcGIS, do you have any idea how this is possible in R? the simple over-methods dont seem to cut it. Thanks a bunch, Jacqueline -- View this message in context: http://r.789695.n4.nabble.com/One-To-Many-Spatial-JOIN-tp4676447.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Transform Coordinate System of an ASCII-Grid
Dear all, I have an ASCII-Grid for Switzerland in the Swiss National Coordinate System of CH1903. Now for a Webapplication of the ASCII-Grid, I need to deliver the ASCII-Grid in the WGS84 System. Via coordinates(ascii) I can export the coordinates and convert them with a formula into WGS84. My problem is now, how can I implement these into the ASCII-Grid, so that the whole grid-structure is from now on gonna be saved in the WGS84-coordinate format? (important: I don't want to change the projection, I want to actually change the numeric format of the coordinates) Thank you so much for your help, jas -- View this message in context: http://r.789695.n4.nabble.com/Transform-Coordinate-System-of-an-ASCII-Grid-tp4667786.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Transform Coordinate System of an ASCII-Grid
Hello Berry, thank you for your reply. yes, the flat versus round earth projection is a difficulty, as my grid isn't that far spread out, I thought I would just use the method anyways. I usually use raster or maptools (readAsciiGrid). I am gonna look in to the mapper's forum, thank you for that tipp :) Jacqueline -- View this message in context: http://r.789695.n4.nabble.com/Transform-Coordinate-System-of-an-ASCII-Grid-tp4667786p4667799.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] 3D-plots of 2D-grids
Hello David, thanks again for your reply. Two things remain unclear. That the data is disjointed is ok, as there are only values in hectares, where there are actually buildings and stuff, forest/nature is NA. The presp-scan that I get from persp(grd) has no similarity to the image in 2d. My guess is that the order and regularity in the data somehow gets lost in the process of making the matrix?! The grid-extraction that I uploaded contains 40x20 cells. if its a bigger grid with 7million cells, does it still work the same way or can the vectors only be a maximum of 100 cells? Thank you for your help jas -- View this message in context: http://r.789695.n4.nabble.com/3D-plots-of-2D-grids-tp4658517p4658639.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] 3D-plots of 2D-grids
Hello everybody, I have an Ascii-grid (100x100m) with population density over Switzerland (local coordinations system, CH LV03). Now I would like to have a nice graphic to present the data. I would like to make a plot that will show the density as the z-variable and raise for example a stacking pillar showing how high the density is in that hectare. I attached a map that's similar to what I would like, to give you an idea incase I am not making myself clear. http://r.789695.n4.nabble.com/file/n4658517/Bildschirmfoto_2013-02-14_um_10.08.51.png Can you tell me how I can do this? I tried persp and persp3d, but there the x and y-vectors have to be increasing values, where as the coordinates in a grid don't necessarily increase for both x and y, as they follow the line horizontally... Your help would be greatly appreciated :), Thank you jacqueline -- View this message in context: http://r.789695.n4.nabble.com/3D-plots-of-2D-grids-tp4658517.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] 3D-plots of 2D-grids
calc_ext3.asc http://r.789695.n4.nabble.com/file/n4658564/calc_ext3.asc I supplied a small extent of the grid, that I am trying to visualize. It s a ascii-grid with 800 cells. My goal is to display the Grid-Values as the z-variable. The point that I dont understand, is what is my input as x and y-Variable in the persp-function? Do I have to make 8 vectors with 100 entries and plot them individually? Your help is greatly appreciated, jas pop.grid pop.mat - as.matrix(pop.grid) # order is not right here already z - pop.mat x - 1:nrow(z) y - 1:nrow(z) persp(x,y,z, phi=30, border=NA) # Error n persp.default(x, y, z, phi = 30, border = NA) : invalid 'z' Argument -- View this message in context: http://r.789695.n4.nabble.com/3D-plots-of-2D-grids-tp4658517p4658564.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.