search for: maptools

Displaying 20 results from an estimated 274 matches for "maptools".

2010 Jan 29
1
Compilation error with maptools
I had downloaded and installed a number of packages, successfully, when I ran into some problem with maptools: It would eat up CPU and most of all memory. I rebooted, and tried again, only running the terminal after the reboot; with the same result: " sp2WB text html latex example sp2tmap text html latex example spCbind-methods text html latex example Out of memory! ERROR: building help failed for...
2004 Oct 01
3
Reading multiple files into R
I want to read data from a number of files into R. Reading individual files one by one requires writing enormous amount of code that will look something like the following. **************** maptools:::dbf.read("wb-01vc.dbf")->dist1 maptools:::dbf.read("wb-02vc.dbf")->dist2 maptools:::dbf.read("wb-03vc.dbf")->dist3 maptools:::dbf.read("wb-04vc.dbf")->dist4 maptools:::dbf.read("wb-05vc.dbf")->dist5 maptools:::dbf.read("wb-06vc...
2008 Mar 11
2
Error opening SHP file (maptools)
I am having difficulty loading a points shapefile (1600 records) I generated from ArcGIS as a PointsSpatialDataFrame using the maptools readShapePoints function. library(maptools) surveypts <- readShapePoints(system.file("C:/temp/survey.shp", package="maptools")[1] Error in getinfo.shape(filen) : Error opening SHP file I've tried numerous re-exports and renames of the dataset, to no avail. I've also...
2010 Nov 10
2
maptools package
A few years back, I wrote some code to plot maps with the maptools package. Now I am trying to reproduce my results, only to find out that maptools has been updated and my code no longer works. I've been able to fix the first part of it by forcing spb <- maptools:::read.shape("/home/sasha/Documents/maps/spb.shp") (as read.shape has been deprecat...
2011 Jul 23
1
Problem with read.shape in maptools
Hi, I'd like to read a shapefile into a Map object. This is exactly what read.shape{maptools} is suppoed to do, according to the documentation I found in the link below. However, this doesn't seem to work library(maptools)x <- read.shape(system.file("shapes/sids.shp", package="maptools")[1])Error: could not find function "read.shape" I haven't...
2005 Sep 16
1
Question:manipulating spatial data using combination of Maptools and Splancs
Hi, I have a problem that concerns combination of the package Maptools and Splancs I have 2 shapefiles that i want to manipulate (one of type point and one polygon).I import them in R using Maptools but then i can't estimate a quartic Kernel using Splancs. The package doesn't recognize the shapes (invalid points and poly argument).I don't know if this...
2000 Aug 06
1
make pkg on windows NT
...nning windows 98. I am using the cygwin 1.1 bash shell and tolls with the MingW compiler, version 2.95.2-1 installed seperately and first in the path. I have active perl 6.16 as well. Here is the error I get when i run the make pkg- script from the gnuwin32 directory bash-2.03$ make DEBUG=T pkg-maptools make DLLNM= EXTRADOCS= \ -C c:/Rnew/rw1010/src/library/maptools PKG=maptools RHOME=c:/Rnew/rw1010 RLIB= c:/Rnew/rw1010/library \ -f c:/Rnew/rw1010/src/gnuwin32/MakePkg make[1]: Entering directory `c:/Rnew/rw1010/src/library/maptools' Syntax error: Unterminated quoted string make[1]: *** [c...
2009 Feb 05
3
maptools: Test if point is in polygon
In R's maptools package, is there a built-in function to test if a given point is "inside" a given polygon on the map? The map was loaded from an ESRI Shapefile. The point's latitude and longitude are known. Thank you! Aleks -- ------------------------ Aleksandr Andreev Fulbright Fellow Graduate...
2005 Sep 07
0
Revised versions of the maptools and sp packages
Revised versions of maptools, a package for reading geographical data from shapefiles, and sp, a package with classes and methods for spatial data handling, have been released on CRAN. They are maptools release 0.5-1 and sp release 0.8-1. The maptools package now depends on sp (>= 0.8), so that users of maptools will need...
2005 Sep 07
0
Revised versions of the maptools and sp packages
Revised versions of maptools, a package for reading geographical data from shapefiles, and sp, a package with classes and methods for spatial data handling, have been released on CRAN. They are maptools release 0.5-1 and sp release 0.8-1. The maptools package now depends on sp (>= 0.8), so that users of maptools will need...
2010 Sep 21
1
Colorramp in Maptools, how to choose min and max values for the fg= argument
Hello, I am using maptools for plooting geographical data. The colour of the region indicates some region dependent value (population for example). I pass the colours of the regions to the plot.Map function by defining the foreground colour: jet.colors = colorRampPalette(c("#00007F", "blue", "#00...
2005 Mar 05
2
maptools, filename writing shapefiles
Hi, I meet a strange trouble writing shapefiles with write.pointShape() from maptools. > write.pointShape(mylines[,5:9], file="Sxtplinshp", mycoordspt) Error in write.pointShape(mylines[, 5:9], file = "Sxtplinshp", mycoordspt) : shapefile names must conform to the 8.3 format It seems that the function request a special shapefile name spelling (con...
2010 Mar 02
1
how to import map data (maptools?) from a html set of 'coords'
Dear R users, I would like to draw map and import it in maptools/spatstat packages. The 'raw data' I have come from a web page (<map>...</map>) and are basically a list of coordinates of a polygon. I would like to know how to import them in R; I checked the maptools packages, but all the examples use existing .dbf files. I just have a (ser...
2008 Nov 09
1
maptools sunrise sunset function
##This is a function that I am trying to write to calculate sunrise and sunset and works "mostly", but returns nonsensical values. What am I #missing? Thanks in advance. ###remember to include maptools as dependence### library(maptools) sunrise.set <- function(lat, long, date, timezone="UTC", num.days=1){ #this needs to be long lat# lat.long <- matrix(c(long, lat), nrow=1) day <- as.POSIXct(date, tz=timezone) sequence <- seq(from=day, length.out=num.days , by="days&...
2004 Jan 05
2
Installing spdep
Hello all, I am trying to install the package 'spdep' and get the following error message when I invoke library(spdep) at the R prompt: Error in loadNamespace(i, c(lib.loc, .libPaths()), keep.source) There is no package called 'maptools' Error in library(spdep) : package/namespace load failed I get this if I try to install 'on the fly' AND if I download directly from the download mirror (http://probability.ca/cran/) and then install inside my terminal (in superuser of course). Any thoughts on where I can get 'map...
2003 Oct 22
4
adjacency matrix
Dear R experts, I am new to the list and R software. I need to convert arcview file to Winbugs having R has middle package. Got from friends that it is possible following the steps: 1. Converting arcview shapefile to "cgm clear text file" 2. Downloading "convert.r" to into R 2.1 use source("convert.r") 2.2 convert("filename_cgm") without the
2010 Jan 26
1
Maptools runs out of memory installing the help files for spCbind-methods
Hi, I'd be grateful for help with the following:- Running R version 2.9.2 (2009-08-24) on Gentoo Linux, on an x86 PC. I am trying to install maptools, (via CRAN from maptools_0.7-29.tar.gz'), for the first time. All runs smoothly until the installation gets to "*** installing help indices" for spCbind-methods, about two thirds of the way through the help files, at which point the installation hangs until R runs out of memory. The...
2006 Nov 30
2
*** caught segfault *** error
...s shapefiles and spdep, and two different shapefiles, and get the error in all 4 combinations. The shapefile is imported correctly, and I get the error only when I try to plot the map. I specifically use commands > library(spdep) Loading required package: tripack Loading required package: maptools Loading required package: foreign Loading required package: sp Loading required package: SparseM Package SparseM (0.71) loaded. To cite, see citation("SparseM") Loading required package: boot > library(maptools) > district.shp <- read.shape("~/Documents/SAHSU/MD/data/Cart...
2004 Mar 26
1
color.ramp in maptools
Dear list members, I am trying to use the maptools library to display geographical data. At the moment I have some trouble understanding how the " auxvar " variable is supposed to be used in the plot.Map function. I am using R Version 1.8.1 (2003-11-21) on Linux Looking at the plot.Map function itself, I see that it calls a color.ra...
2023 Apr 10
1
Retirement/archiving of rgdal, rgeos and maptools October 2023
The third report on the R-spatial evolution project has been published. https://r-spatial.org/r/2023/04/10/evolution3.html It links back to earlier blogs and presentations, and focuses on work that maintainers of R packages and workflows using rgdal, rgeos and maptools need to put in train now before the packages are archived on CRAN. The first changes will occur in June 2023, and the retiring packages will be archived during October 2023. If you are giving a workshop or tutorial during the Northern hemisphere summer, aim for June. If you still need more ass...