Re: [R-sig-Geo] Spatial join/intersection in R

2019-05-06 Thread Edzer Pebesma
I guess the problem is that if you represent a regular raster with polygons, and the polygons won't tell you for points falling on polygon edges or nodes that they should intersect with only one, rather than with two (edge) or four (nodes) polygons. The reprex below shows the difference of doing a

Re: [R-sig-Geo] Spatial join/intersection in R

2019-05-06 Thread Edzer Pebesma
On 5/6/19 12:23 PM, Edzer Pebesma wrote: > # raster does the same as stars: That was too quick: raster::extract returns cell values, stars::st_intersects returns cell indexes. If we fill the raster with values 100:1 rather than 1:100, we see library(stars) # Loading required package: abind # Lo

[R-sig-Geo] Fwd: Question spdep package - lagsarlm not terminating

2019-05-06 Thread Raphael Mesaric via R-sig-Geo
> Dear Roger, > > Thank you very much for your fast response. > > My weight matrix stems from a rectangular (but not square) grid. So, I think > I will have to use the „LU“ method. > > However, by doing that several other error messages popped up. The first one > was the following: > > Erro

Re: [R-sig-Geo] Fwd: Question spdep package - lagsarlm not terminating

2019-05-06 Thread Roger Bivand
On Mon, 6 May 2019, Raphael Mesaric via R-sig-Geo wrote: Dear Roger, Thank you very much for your fast response. My weight matrix stems from a rectangular (but not square) grid. So, I think I will have to use the „LU“ method. No, this is a misunderstanding. All weights matrices used for f

[R-sig-Geo] error to extract soil grids data

2019-05-06 Thread Mª Eliza Turek
Dear all, I need to extract texture and bulk density data for Brazil, in order to convert it to soil hydraulic parameters using PTF functions. I read in soil grids website that for this kind of evaluation is better to use "tile" data. How can I perform that? I Couldn't find a manual for that. (I

Re: [R-sig-Geo] error to extract soil grids data

2019-05-06 Thread Tomislav Hengl
Hi Eliza, The gsif.isric.org tutorials have been migrated to: https://envirometrix.github.io/PredictiveSoilMapping/ Soil texture fractions and bulk density you can now download directly from e.g.: https://landgis.opengeohub.org/#/?base=Stamen%20(OpenStreetMap)¢er=-12.8118,-54.3164&zoom=5&

Re: [R-sig-Geo] Question spdep package - lagsarlm not terminating

2019-05-06 Thread Raphael Mesaric via R-sig-Geo
Dear Roger, Thank you again for your fast response and the helpful answers and clarifications. I will try to resolve all the issues with your recommendations in the coming days. Just a few comments here: I created the listw object by nb2listw() (without any error messages) and set „zero.polic