Re: [R-sig-Geo] Helping with write a function. Merging shape files?

2010-01-20 Thread Sean O'Riordain
Hi Zia, Can I suggest that you have a good read of ?list.files and in particular the section on pattern=... and possibly also ?glob2rx so you might be modifying Matt's script by changing to list.files(glob2rx('poly_shape.*.shp')) or similar cheers, Sean On Thu, Jan 21, 2010 at 2:40 AM, Zia Ah

Re: [R-sig-Geo] Helping with write a function. Merging shape files?

2010-01-20 Thread Zia Ahmed
Hi Matt, Your code work perfectly. As a test run, I am able to merge lower 48 states and create a polygon of Con. USA when all files are in one folder. But SSURGO data organized like following way (not exactly) state_name (wd)/ state_001 (subfolder)/spatial/several shape files (a_s

Re: [R-sig-Geo] Plotting shapefiles on top of Google map tiles

2010-01-20 Thread Markus Loecher
Patrick, that was the main point of the package, that you could easily plot on the mp canvas anything that R offers in terms of plotting, so overlaying points and lines is its main functionality ! PlotOnStaticMap() has an argument FUN which by default is points but if you change that to lines it'l

Re: [R-sig-Geo] Helping with write a function. Merging shape files?

2010-01-20 Thread Zia Ahmed
Thank you so much Matt. I will try this code with my data. I like to merge all shape files of a county (SSURGO polygons) and want to create a single shape file for a state. I did it before for 15 states of NE-region of USA. I used ArcGIS. I do not like to work with ArcGIS. I now it is not po

Re: [R-sig-Geo] Plotting shapefiles on top of Google map tiles

2010-01-20 Thread Patrick Crutcher
Thanks. This has been very helpful and I am very appreciative. A few more queries I have though, if you don't mind. Is there an easy to way to plot axes onto the png? I am trying to make an 'atlas' of an area to create a printable map that is gridded by the lat/longs. I basically have an area of i

[R-sig-Geo] Helping with write a function. Merging shape files?

2010-01-20 Thread Zia Ahmed
Thanks! I am trying to write a function to merge or combine several shape files. First I try to use following function when all shape files in one folder. It showed error. setwd("E:/Zia/SURRGO_Data/SSURGO_RAW_DATA/Test1") library(rgdal) ## obtain shapefile names in current directory fs <- lis

[R-sig-Geo] Call for papers: useR! 2010 conference

2010-01-20 Thread Virgilio Gómez-Rubio
Dear all, I believe that this conference will be of interest to some of the people on this list. We are hoping to organise a specific session(s) on spatial and spatio-temporal data analysis, depending on the number of submissions. There will also be a 3-hour tutorial on spatial data analysis the

Re: [R-sig-Geo] Merging shape files?

2010-01-20 Thread alexandre villers
ation from ESET Mail Security, version of virus signature database 4788 (20100120) __ The message was checked by ESET Mail Security. http://www.eset.com ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listi