Re: [R-sig-Geo] rgdal installation on Fedora 28

2018-06-16 Thread Colin Rundel
As I mentioned in the tweet, I was able to fix this on both a Fedora 23 and Fedora 27 machine by making the following change to configure.ac: diff --git a/configure.ac b/configure.ac index 8ff72be..ab4c772 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,8 @@ define([pkgversion],

Re: [R-sig-Geo] Which dimension should a matrix returned by a binary topological operaor have?

2016-09-09 Thread Colin Rundel
that lets you t() the result makes sense to me if only as a backwards compatibility feature. -Colin - Colin Rundel Assistant Professor of the Practice Duke University, Department of Statistical Science colin.run...@stat.duke.edu www.stat.duke.edu/~cr173/ > On Sep 7, 2016, at 8:23 AM, Ro

Re: [R-sig-Geo] RGEOS error

2014-08-27 Thread Colin Rundel
Hi Sancta, The issue is likely occurring due to the version of the geos C library you have installed on your system. You will need to provide us with a few more detail on what operating system you are running. Additionally, if you are on a unix/linux or mac system try running `geos-config

Re: [R-sig-Geo] Problem with gIntersections {rgeos}

2013-11-01 Thread Colin Rundel
This issue is occurring because your poly2 object contains a canopy polygon that is also in the poly object, as such when calculating the intersection the resulting geometry contains that canopy polygon as well as the intersection polygon which is not a valid geometry hence the error. You can

Re: [R-sig-Geo] Package for fitting spatial model on large dataset

2013-07-15 Thread Colin Rundel
You can look into using the spBayes package using gaussian predictive process models to handle the large number of observations. -Colin On Jul 15, 2013, at 1:08 PM, Moshood Agba Bakare bak...@ualberta.ca wrote: Dear All, Please which of these packages - gstat and geoR is better for fitting

Re: [R-sig-Geo] simplify a polygon window

2012-10-04 Thread Colin Rundel
The gSimplify function in rgeos wraps geos' implemention of the Douglas-Peucker algorithm so it should be easy to try it out for this particular problem, the topologyPreserve argument may also help (the geos documentation doesn't mention the specific implementation differences between the two

Re: [R-sig-Geo] unpacking polygon geometry with holes

2012-04-21 Thread Colin Rundel
Hi Colin, You can try the following code to separate the resulting polygons and their holes from the other polygons. Basically you can find the parent / hole relationship by checking the comment attribute of the Polygon object. Currently it is a kludgy hack since sp objects were not originally

Re: [R-sig-Geo] Extracting minimum convex polygons of species distributions

2012-03-15 Thread Colin Rundel
While I think it is somewhat simplistic for modeling a species' distribution you can use a convex hull to get a convex bounding polygon for your presence locations. This will not take into account islands but you can remove non-terristrial areas by getting an intersection of the bounding

Re: [R-sig-Geo] downsampling a lines shapefile?

2011-10-25 Thread Colin Rundel
That is odd, it isn't an error that I've seen before. What version of R are you running and can you check what version of plyr and stringr you have installed? -Colin On Oct 25, 2011, at 3:11 PM, Nick Matzke wrote: Thanks so much! I've almost gotten rgeos to install, however I'm getting a

Re: [R-sig-Geo] Installing rgeos on Mac OS X 10.4 (was Re: downsampling a lines shapefile?)

2011-10-25 Thread Colin Rundel
PM, Colin Rundel wrote: That is odd, it isn't an error that I've seen before. What version of R are you running and can you check what version of plyr and stringr you have installed? -Colin On Oct 25, 2011, at 3:11 PM, Nick Matzke wrote: Thanks so much! I've almost gotten rgeos

Re: [R-sig-Geo] [rgeos] A gIntersection operation causes RStudio to crash

2011-10-18 Thread Colin Rundel
Hi Mathieu, I'm not sure why RStudio is crashing on you with that input, on my apple laptop with R 2.13.2 I get the following error when I run your sample code: Error in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, rgeos_intersection) : TopologyException: no outgoing dirEdge found at 898287

Re: [R-sig-Geo] rgeos 'union' causes R crash

2011-09-07 Thread Colin Rundel
Hi Ben, My best guess based on the information you have provided is that R is running out of memory, particularly for complex polygons Unions can use a huge amount of memory. Can you check with the task manager what the memory usage looks like when running your code? -Colin On Sep 7, 2011,

Re: [R-sig-Geo] rgeos::gBuffer quadsegs argument in respect to SpatialPoints - SpatialPolygons

2011-04-15 Thread Colin Rundel
Which sp objects does quadsegs argument in gBuffer affect (or rather, which it does not)? Based on my experiments, SpatialPoints - SpatialPolygons is not affected. I use SpatialPoints to draw circles (see below) and I figured that specifying the quadsegs would alter the roughness of the circle