Re: [R-sig-Geo] writeOGR KML question

2007-06-13 Thread Roger Bivand
On Wed, 13 Jun 2007, Bob Sutherland wrote: > Hi, > > I read in polygon shape file and write the KML for GE using the writeOGR > function > > tmpshpPoly<-readShapePoly("tmpshp",IDvar="AKUCU83_", > proj4string=CRS("+proj=longlat")) > > writeOGR(tmpshpPoly, "test2.kml", "Location","KML") > > In the t

[R-sig-Geo] Plots from netcdf file

2007-06-13 Thread Thomas Szegvary
I am using the RNetCDF package to extract data from netcdf files. I've got a nc file (from an atmospheric model) with coordinates as the following: >dim(lon) [1] 67 46 > dim(lat) [1] 67 46 I suppose the lon and lat values are given to grid points. If I get the variables and plot(lon,lat) it shows

[R-sig-Geo] writeOGR KML question

2007-06-13 Thread Bob Sutherland
Hi, I read in polygon shape file and write the KML for GE using the writeOGR function tmpshpPoly<-readShapePoly("tmpshp",IDvar="AKUCU83_", proj4string=CRS("+proj=longlat")) writeOGR(tmpshpPoly, "test2.kml", "Location","KML") In the test2.kml file I'd also like to include a name for eac

[R-sig-Geo] Network K function

2007-06-13 Thread Markus Loecher
Dear list members, does anyone know of an R package that computes the network K function instead of the "normal" planar K function ? This concept is described in the nice article "Comparison of planar and network K-functions in traffic accident analysis", by Yamada and Thill (Journal of Transpor

Re: [R-sig-Geo] pairwise geodesic distances

2007-06-13 Thread Roger Bivand
On Wed, 13 Jun 2007, Markus Loecher wrote: > Dear list members, > I find the dist() function in R very useful to quickly compute > pairwise distances between vectors of points. > Is there an equivalent function which uses the geodesic distance > between lat/lon vectors instead of the ones offered

[R-sig-Geo] pairwise geodesic distances

2007-06-13 Thread Markus Loecher
Dear list members, I find the dist() function in R very useful to quickly compute pairwise distances between vectors of points. Is there an equivalent function which uses the geodesic distance between lat/lon vectors instead of the ones offered by dist() ? Thanks ! Markus Loecher _

Re: [R-sig-Geo] Points2grid() from spatial points

2007-06-13 Thread Roger Bivand
On Wed, 13 Jun 2007, Thomas Szegvary wrote: > Hello, I'm new to R and try to use the geostatistical packages. > I have a problem making grid from ESRI shapefiles. I imported the shapefile > (polygon) and projected the coordinates. Then I used spsample() to produce a > spatial points for the given

[R-sig-Geo] Points2grid() from spatial points

2007-06-13 Thread Thomas Szegvary
Hello, I'm new to R and try to use the geostatistical packages. I have a problem making grid from ESRI shapefiles. I imported the shapefile (polygon) and projected the coordinates. Then I used spsample() to produce a spatial points for the given regions resp. polygons. With points2grid I wanted to

Re: [R-sig-Geo] Issue reading ESRI polygon shapefiles with PBSMapping 'importShapefile'

2007-06-13 Thread Roger Bivand
On Tue, 12 Jun 2007, Rick Reeves wrote: > > Hello, > > Using R 2.5.0 with PBSmapping package version 2.09: > > When I try to read in a polygon shapefile (eight polygons, the file was > written by the > Feature Class to Shapefile command in ArcMap GIS 9.2) using the command: > > importShapefile("