[R] Raster extract by polygon generating NAs

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Wed May 16 18:09:24 CEST 2018


Better posted on the r-sig-geo list, I think.

-- Bert



Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, May 16, 2018 at 8:11 AM, Joao Carreiras <j.carreiras using sheffield.ac.uk
> wrote:

> Greetings!
>
> I'm using the extract command (raster package) with a raster layer (x)
> and a spatial polygons dataframe (y). I'm using it to extract the sum
> of raster values by each spatial polygon. However, I'm getting NAs as
> a result for some polygon IDs, which I know isn't true because that
> doesn't happen in ArcGIS.
>
> Does anyone experienced the same issue?
>
> Thanks!
> Joao
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

	[[alternative HTML version deleted]]




More information about the R-help mailing list