Re: [R-sig-Geo] [FORGED] circular spatial polygon

2017-09-12 Thread Loïc Dutrieux
This is also possible with rgeos library(sp) library(rgeos) x <- 673593.21 y <- 673593.21 sp0 <- SpatialPoints(coords = data.frame(x=x, y=y), proj4string = CRS('+proj=utm +zone=20 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs')) sp1 <- gBuffer(sp0, byid=TRUE, width =

[R-sig-Geo] circular spatial polygon

2017-09-12 Thread Kátia Emidio
Dear all, My question is how to create a circular spatial polygon, with 8 arcs of 45 degrees, and radius measuring 15m. Having in the centre point the UTM coordinates, zone 20S. x= *673593.21* *y= **9365367.08* *Thanks* -- Kátia Emídio da Silva DSc Eng. Florestal Manaus/AM Forestry

[R-sig-Geo] quadracount on multitype points

2017-09-12 Thread Guy Bayegnak
Dear all, I am working on a multitype point pattern, and I'd like to estimate how many of each type of point occurs into each quadrant. I know it is possible to use the quandracount on split marks as follows using spatstats: quadratcount(split(marks)). But the result produces as many windows

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Roger Bivand
$ g++ -v ... gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC) in my case on Fedora 26. Recent versions should be OK, but < 5 may be problematic. If you have upgraded in place but not upgraded the compile trains, installing r-base will not force that. On Tue, 12 Sep 2017, Agustin Lobo

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Agustin Lobo
How do I find out that? Agus On Tue, Sep 12, 2017 at 1:39 PM, Roger Bivand wrote: > On Tue, 12 Sep 2017, Agustin Lobo wrote: > >> Yes, r-base in Buster is 3.3.3.1: >> https://packages.debian.org/buster/r-base >> >> I'll wait to see if the maintainers answer... > > > What is

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Roger Bivand
On Tue, 12 Sep 2017, Agustin Lobo wrote: Yes, r-base in Buster is 3.3.3.1: https://packages.debian.org/buster/r-base I'll wait to see if the maintainers answer... What is the version of g++ on your buster system - the buster r-base does not seem to require a version that supports CXX11 or

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Agustin Lobo
Yes, r-base in Buster is 3.3.3.1: https://packages.debian.org/buster/r-base I'll wait to see if the maintainers answer... Thanks On Tue, Sep 12, 2017 at 1:09 PM, Roger Bivand wrote: > On Tue, 12 Sep 2017, Agustin Lobo wrote: > >> I just installed r-base through synaptic.

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Roger Bivand
On Tue, 12 Sep 2017, Agustin Lobo wrote: I just installed r-base through synaptic. alobo@debi:~$ dpkg -s r-base Package: r-base Status: install ok installed Priority: optional Section: gnu-r Installed-Size: 60 Maintainer: Dirk Eddelbuettel Architecture: all Version: 3.3.3-1

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Agustin Lobo
I just installed r-base through synaptic. alobo@debi:~$ dpkg -s r-base Package: r-base Status: install ok installed Priority: optional Section: gnu-r Installed-Size: 60 Maintainer: Dirk Eddelbuettel Architecture: all Version: 3.3.3-1 Depends: r-base-core (>= 3.3.3-1),

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Roger Bivand
From the entrails, GDAL was built with a CXX11 compiler, but R was very possibly not, hence the messages. Where did R come from, and was it itself built for the same Debian version? Roger On Tue, 12 Sep 2017, Agustin Lobo wrote: I assume that from the repos I have defined, this is an

[R-sig-Geo] "Zelig" function for Logistic regression

2017-09-12 Thread Omar Faisel via R-sig-Geo
Dear All, I have misleadings with "Zelig" function to process the data with Logistic regression. Here is a glance at my data> head(data.variables, n=4)  target  F1 F2 F3 F41     1  103.6462  13.460189         15          52     1 1138.1763  14.049833         15          53     1  731.   

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Roger Bivand
My guess is that your g++ is being used differently to build R and GDAL (seen before off-list in August). If you install PROJ, GDAL and R from source on your platform, they will (most likely) match. It looks as though R was not built with -std=c++11 or -std=gnu++11. On your current platform,

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Agustin Lobo
Using Synaptic. I just tested with a live usb with Debian Stretch, and with stretch rgdal installs with no problems (after installing gdal-bin, gdal-dev and dependencies) . Agus On Tue, Sep 12, 2017 at 10:15 AM, Edzer Pebesma wrote: > How did you install gdal and

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Edzer Pebesma
How did you install gdal and proj on that machine? On 12/09/17 09:10, Agustin Lobo wrote: > Thanks, > > As indicated, I do: > $ R CMD INSTALL rgdal_1.2-8.tar.gz 2>&1 | tee rgdal.log > > The whole output is here: > https://drive.google.com/open?id=0B_LsZU5NlOztb0ZYQzZZRDQ0WkU > > The problem

Re: [R-sig-Geo] Errors at installing rgdal on Debian Buster

2017-09-12 Thread Agustin Lobo
Thanks, As indicated, I do: $ R CMD INSTALL rgdal_1.2-8.tar.gz 2>&1 | tee rgdal.log The whole output is here: https://drive.google.com/open?id=0B_LsZU5NlOztb0ZYQzZZRDQ0WkU The problem starts at: configure: PROJ.4 version: 4.8.0 ./configure: line 3725: 8390 Segmentation fault