[R-sig-Geo] testing a crs string

2019-06-20 Thread Roy Mendelssohn - NOAA Federal via R-sig-Geo
Hi All: I am extending a package I have to allow users to provide a crs string, which will eventually through some other packages be sent to sf. I like to try and make at least minimal tests that inputs are valid. Is there some existing code that will check if a string is a valid crs string?

Re: [R-sig-Geo] testing a crs string

2019-06-20 Thread Edzer Pebesma
On 6/20/19 4:18 PM, Roy Mendelssohn - NOAA Federal via R-sig-Geo wrote: > Hi All: > > I am extending a package I have to allow users to provide a crs string, which > will eventually through some other packages be sent to sf. I like to try and > make at least minimal tests that inputs are vali

Re: [R-sig-Geo] testing a crs string

2019-06-20 Thread Roy Mendelssohn - NOAA Federal via R-sig-Geo
perfect. Thank you. I thought there must be a function in one of the packages to check. -Roy > On Jun 20, 2019, at 7:42 AM, Edzer Pebesma > wrote: > > > > On 6/20/19 4:18 PM, Roy Mendelssohn - NOAA Federal via R-sig-Geo wrote: >> Hi All: >> >> I am extending a package I have to allow us

[R-sig-Geo] Surface Chlorophyll data calculation

2019-06-20 Thread JC Arronte
Hello, This is my first post to this list. I am a beginner in R and GIS and I work as researcher at Spanish Institute of Oceanography. I have a ncdf file from the Copernicus webpage with monthly primary production data from the Northeastern Atlantic. In my case, the chlorophyll concentration

[R-sig-Geo] Create a Spatial Weight Matrix based on road distance

2019-06-20 Thread Rolando Valdez
Dear community, Is there any way to create a spatial weight matrix based on road distance? I am trying to use the road distance between two points instead of euclidean distance. I've seen that there is a package named osrm. Can anyone give some advice? Thank you in advance. Regards, -- Rol~

Re: [R-sig-Geo] [FORGED] Create a Spatial Weight Matrix based on road distance

2019-06-20 Thread Rolf Turner
On 21/06/19 12:26 PM, Rolando Valdez wrote: Dear community, Is there any way to create a spatial weight matrix based on road distance? I am trying to use the road distance between two points instead of euclidean distance. I've seen that there is a package named osrm. Can anyone give some adv

Re: [R-sig-Geo] [FORGED] Create a Spatial Weight Matrix based on road distance

2019-06-20 Thread Adrian Baddeley
Rather than converting an object of class 'SpatialLines' or 'SpatialLinesDataFrame' to the spatstat class 'psp' and then converting it to the spatstat class 'linnet', it is safer and more efficient to convert the SpatialLines* object directly to class linnet using as.linnet.SpatialLinesDataFram

Re: [R-sig-Geo] install rgdal from source macOS

2019-06-20 Thread Dominik Schneider
I finally got back to this. Unfortunately this did not work. It still doesn't like PKG_CONFIG_PATH and now pcs.csv was not readable. It did not exist in 'share/gdal' but I found it in miniconda3/pkgs/libgdal* so I copied it to share/gdal. > Sys.getenv('PKG_CONFIG_PATH') [1] "/Users/dosc3612/Applic