Skip to content
Prev 22285 / 29559 Next

gDistance problem on RHEL 6 64-bit

On Thu, 5 Feb 2015, Hollister, Jeff wrote:

            
No, since the other examples work, it isn't likely. On my former RHEL5, 
gcc is 4.1.2 of 2008 and still works.

If you need to follow this up, that is that your RHEL6 machine is mission 
critical, make sure that it is fully updated, remove and reinstall GEOS, 
run /sbin/ldconfig, look for other GEOS installations, remove all GEOS, 
reinstall GEOS; once you are sure that GEOS is installed uniquely, and 
runs its own make check correctly, remove rgeos and reinstall it. If the 
problem persists, run R under GDB (R -d gdb) to give a traceback on error, 
and run:

.Call("rgeos_distance", rgeos:::.RGEOS_HANDLE, pt2, pt1, c(FALSE, FALSE),
   PACKAGE = "rgeos")

as the most stripped-down version. What is of interest is where in 
src/rgeos_misc.c in rgeos_distancefunc() the failure occurs, that is, does 
it occur in converting the sp objects into GEOS representation, in 
computing the distance, or in destroying the GEOS representations of the 
input objects?

Does gDistance(pt2, pt1, byid=TRUE) make a difference (probably not)?

Roger