I think it's better not to specify the .shp extension, too:
Assuming that test.shp, test.shx, and test.dbf are in your working directory
(see setwd() for more on that):
library(maptools)
spdat <- readShapeSpatial('test')
On Friday 16 October 2009 15:42:33 Danlin Yu wrote:
> Sunny:
>
> For the f
Sunny:
For the first case, you probably shall set the path to where you store
your shapefiles in the R main menu. In addition, as the warning message
indicates, the readShapeSpatial function probably is better for spatial
data management than read.shape. For the second case, other than setting
I am trying to load my point shape file to R. I searched for hours and found
there are two ways, one is read.shape and the other one is readOGR. I tried
both but but can't do it successfully. Any help is appreciate.
> x <- read.shape(system.file("test.shp", package="maptools")[1])
Error in getinfo
Emmanuel, It depends on your reason for exporting. You can use
write.table with the DF of the SGDF object if you want ascii data to
analyze elsewhere. Alternatively you can use rgdal to write the data
to a geotiff file, if your purpose is display in a mapping program.
Robert
On Fri, Oct 16, 2009 a
Hi Rob,
You could start with the maps available within R. Here is some text taken from
page 88-89 from the ASDAR-book:
" It is often attractive to make use of the spatial databases in the maps
(comm: and also the mapdata) package. They can be converted to sp class objects
using functions such
Dear all,
after interpolation with the gstat package, I created a grid of class
SpatialGridDataFrame.
The grid is not regular. I tried to export it with write.asciigrid
function but didn't succed, I suppose because of the non-regularity of
my grid.
How can I turn around that problem ?
--
Hi,
a GDAL interface to SAGA grids would of course be very welcome. Right
now the easiest (but indirect) way of importing SAGA grids is with
read.sgrd("mysagagrid")
which uses rsaga.sgrd.to.esri (to a tempfile()) and then read.ascii.grid
In the next RSAGA release I will consider using read
Tom, the idea is that you write (or find someone else to write) the
required driver for gdal, in C++, and contribute this to the gdal
project. If Frank Warmerdam then accepts it (which he usually will), the
next version of gdal will have the support, and calls like
meuse.grid <- readGDAL("meuse_so
On Fri, 16 Oct 2009, Tomislav Hengl wrote:
Dear r-sig-geo,
I would like to initiate the processes of registering the SAGA grid format
under GDAL (the SAGA 2.0.4 source code is available for download here
http://sourceforge.net/projects/saga-gis/files/SAGA%20-%202.0/SAGA%202.0.4/saga_2.0.4_sr
Dear r-sig-geo,
I would like to initiate the processes of registering the SAGA grid
format under GDAL (the SAGA 2.0.4 source code is available for
download here
http://sourceforge.net/projects/saga-gis/files/SAGA%20-%202.0/SAGA%202.0.4/saga_2.0.4_src.zip/download).
Do I have to follow so
10 matches
Mail list logo