[R] data from SpatialGridDataFrame

2010-07-20 Thread kfleis
Dear All,

I have a raster map of the class 'SpatialPointsDataFrame' and coordinates
of the class 'SpatialPoints'. I would like to retrieve the values that are
contained in the raster map at the specific locations given by the
coordinates.

Can anyone help me out?

Kind regards,
Katrin Fleischer

__
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] data from SpatialGridDataFrame

2010-07-20 Thread chris howden
I'm not that familiar with this type of data.

I just had a similar issue, but had a GIS person do it in Arc view.

But maybe try some of the following functions?
Match
%in%

Plus I'll forward U the replies I got to my post

Good luck :-)

-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of kfl...@falw.vu.nl
Sent: Tuesday, 20 July 2010 9:42 PM
To: r-help@r-project.org
Subject: [R] data from SpatialGridDataFrame

Dear All,

I have a raster map of the class 'SpatialPointsDataFrame' and coordinates
of the class 'SpatialPoints'. I would like to retrieve the values that are
contained in the raster map at the specific locations given by the
coordinates.

Can anyone help me out?

Kind regards,
Katrin Fleischer

__
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-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] data from SpatialGridDataFrame

2010-07-20 Thread Kingsford Jones
see ?sp::overlay and section 5.2 of Applied Spatial Data Analysis with R

I see there is now also raster::overlay, but I can't claim experience
with that funciton (however my impression is that the raster package
is a powerful tool for working with potentially very large rasters in
R).

hth,
Kingsford



On Tue, Jul 20, 2010 at 6:12 AM,  kfl...@falw.vu.nl wrote:
 Dear All,

 I have a raster map of the class 'SpatialPointsDataFrame' and coordinates
 of the class 'SpatialPoints'. I would like to retrieve the values that are
 contained in the raster map at the specific locations given by the
 coordinates.

 Can anyone help me out?

 Kind regards,
 Katrin Fleischer

 __
 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-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.