Re: [R] Using GIS data in R

2011-11-20 Thread Zuofeng Shang
Many thanks Rolf! Your help is highly appreciated since it helps me understand the clue of solving my problem. Have a wonderful Sunday! Jeff 于 2011/11/20 15:52, Rolf Turner 写道: On 21/11/11 10:19, Zuofeng Shang wrote: Hi Rolf, Thanks very much for suggestions! Sorry if I made my question not v

Re: [R] Using GIS data in R

2011-11-20 Thread Zuofeng Shang
Hi Rolf, Thanks very much for suggestions! Sorry if I made my question not very clear. The context is as follows. I have a set of locations with coordinates (latitude and longitude) from Texas region. Some of the locations are within Texas while some of them are not. I am trying to find thos

Re: [R] Using GIS data in R

2011-11-20 Thread Rolf Turner
On 21/11/11 10:19, Zuofeng Shang wrote: Hi Rolf, Thanks very much for suggestions! Sorry if I made my question not very clear. The context is as follows. I have a set of locations with coordinates (latitude and longitude) from Texas region. Some of the locations are within Texas while some

Re: [R] Using GIS data in R

2011-11-20 Thread Rolf Turner
On 21/11/11 08:01, JeffND wrote: Hi Rolf, I have a similar question. I want to test whether a point with certain coordinates is inside a state, say Texas. It seems that inside.owin() only works for testing if a point lies in a regular region, say a polygon. Since Texas has irregular boundary, ho

Re: [R] Using GIS data in R

2011-11-20 Thread JeffND
Hi Rolf, I have a similar question. I want to test whether a point with certain coordinates is inside a state, say Texas. It seems that inside.owin() only works for testing if a point lies in a regular region, say a polygon. Since Texas has irregular boundary, how do we achieve this? Or there is

Re: [R] Using GIS data in R

2010-04-02 Thread Rolf Turner
On 2/04/2010, at 4:37 AM, Scott Duke-Sylvester wrote: > I have a simple problem: I need to load a ERSI shapefile of US states > and check whether or not a set of points are within the boundary of > these states. I have the shapefile, I have the coordinates but I'm > having a great deal of difficu

Re: [R] Using GIS data in R

2010-04-01 Thread Don MacQueen
I'm currently doing a lot of simple GIS work in R, including points in polygon queries. My .Rprofile file has require(maptools) require(rgdal) With that as a starting point, I find that the data structures play well together. Define a coordinate reference system object with crs.ll <-

[R] Using GIS data in R

2010-04-01 Thread Scott Duke-Sylvester
I have a simple problem: I need to load a ERSI shapefile of US states and check whether or not a set of points are within the boundary of these states. I have the shapefile, I have the coordinates but I'm having a great deal of difficulty bringing the two together. The problem is the various GIS pa