Displaying 20 results from an estimated 7000 matches similar to: "maps maptools"
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
2008 Jan 27
2
maptools no such file
Hello,
I'm having problems reading a shapefile with read.shape (maptools). I'm absolutely sure my file is there, but I get "no such file". The wd is ok, since read.table for example does find the file.
> getwd()
[1] "D:/somedirectory/R scripts"
> read.table("cities.shp")
Error in read.table("cities.shp") : empty beginning of file
In addition:
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 deprecated)
but now when I do
plot(spb,
2006 Nov 30
2
*** caught segfault *** error
Dear R users,
I use R 2.4.0 on an iMac running Mac OS X 10.4.8, with a 2.16GHz
Intel Core 2 Duo and 2GB 667 MHz DDR2 SDRAM.
> sessionInfo()
R version 2.4.0 (2006-10-03)
i386-apple-darwin8.8.1
locale:
es_ES.UTF-8/es_ES.UTF-8/es_ES.UTF-8/C/es_ES.UTF-8/es_ES.UTF-8
attached base packages:
[1] "methods" "stats" "graphics" "grDevices"
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
2009 Jun 03
2
Arc/Info Ungenerate - shp - Maps
Hi list.
I would like to know if someone had already successfully loaded and Arc/Info
Ungenerated (.dat – extracted from
http://rimmer.ngdc.noaa.gov/mgg/coast/getcoast.html) file on R. I’m able to
do so with shape files using maptools functions, but these ungenerated data
are making me crazy.
I don’t have any of ArcGIS tools (one of them probably can do that), and I
can’t find any free tool that
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.ramp function (I am reporting only the relevant
2009 Oct 28
2
Re ading and Creating Shape Files
Hello R Community,
I have imported a dataset which contain X Y coordinates and would like to
recreate a shape file after some data analysis. What i have done is to
import some taxlot data and join them based on some criteria. I want to
check to see how well the joining went by reviewing the results in GIS.
A couple things. I cant seem to import a shape file correctly using the
maptools
2014 Oct 08
2
Pregunta sobre manipulación de shapefile
Oscar, al final no he podido esperar hasta mañana
Con:
library(maptools)library(sp)
poligonos <- readShapeLines("C:\\...\\DATOS\\MUNICIPIO.shp")
sink("C:\\ ... \\DATOS\\MUNICIPIO.csv")
coordinates(poligonos)
Consigo un fichero con la suficiente estructura para tratarlo fácilmente y de una tacada montar la tabla .csv tal y como he indicado en un correo anterior
Necesito el
2014 Oct 08
3
Pregunta sobre manipulación de shapefile
Hola buenos días:
Hace algún tiempo mandé una duda que sobre fichero tipo shapefile que publica el Instituto Geográfico Nacional de España y que detallo en el word Duda_sobre_shp. El tema es que al final no obtuve respuesta (es cierto que lo mandé en Agosto y en esa fechas entiendo que sea normal, por tanto por recomendación de un conocido vuelvo de nuevo a remitir la cuestión)
Como no podía
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
(conformed to 8.3
2012 Oct 10
2
mapa municipios Andalucía con R
Hola a todos.
Estoy utilizando R , más concretamente los paquetes maptools y sp,
para realizar mapas de España por comunidades y provincias y de
Andalucía por provincias y municipios.
El caso es que para el mapa de municipios en Andalucía, una vez leído
el fichero shp con readShapePoly , si luego por ejemplo , quiero poner
todos los polígonos de un color utilizando
library(maps)
2011 May 25
1
plotting texas school district using shape files
Hi,
I was plotting or creating a map for Texas school districts using the shape file
of Texas. I could not find any other helpful mail in the mailing list.
txshp<-read.shape(system.file("S:\\Districts_10_11.shp", package="maptools"))
Error- read.shape no found. But read.shape is there in maptools.
If anyone can help me out it will be great. Thanks in advance.
Shant
2010 Apr 06
0
Adding labels on maps (using sp, maptools, or something else suggested)
Hello,
I would like to place region names (or abbreviations if space is too
limited) on a map. I have tried the following, copying and adapting
various examples I have seen but without success. The first example
is self-contained, but the second one requires the .shp file, which
can retrieved at http://www.gadm.org/country.
----- Example 1 -----
library(sp)
con <-
2007 May 21
1
Graphically show population density for a specific geographic area using R
Hi,
we all know that R is powerful in dealing with graphics.
I am now trying to use R to show some geographic attributes for a
specific geographic area on a graph. For example, if I would like to
generate a graph showing the population densities (in terms of the
intensity of colors) for Illinois State by zip codes. I did some
research; and it seems that package "maptools" is
2004 Feb 25
2
writing polygons/segments to shapefiles (.shp) or other ArCGIS compatible file
I am not sure a previous e-mail reached the list (no mail aknowledgement from R-boundle etc.). The question was how to write polygon
or segment coordinates into a shapefile set or any other ArcGIS supported format. The library shapefiles seems to do something but
the documentation is a bit beyond of my mind.... and I cannot get the meaning of the functions write**** and its application to the
case
2011 Jan 01
2
Problem with uploading library
Hello.
I'm new on that forum, so I would use some help... I'm programing with R
program, have some exercise to do.
So here it goes.
1. I have to upload two libraryes "sp" and "maptools"
2. This command is troubling me : towns <- readShapeSpatial("OB/OB.shp")
3. When I'm pressing f5, there is an error called: Error: could not find
function
2011 Jul 28
3
smooth scatterplot and geo map
Hello everybody,
I'm trying to understand how to draw a smoothed scatterplot on a geographic
map with R.
Have a dataframe with point locations (long, lat) and was able to simply
plot these points on a shp map by using the maptools package. However,
instead of having simply the raw points on the map, I would like to have a
"smoothed" scatterplot of the same superimposed on the map.
2005 Feb 09
1
FW: Drawing maps of UK
Hi Guys
Thanks for this! As I am a beginner, I bet I'm running into some really
basic problems. Using the example from the Map2poly function in
maptools:
try <- read.shape("euadmll.shp")
mappolys <- Map2poly(try)
# this produces 14 warnings() of the type:
# 1: level 2 circularity at 62 in: .mtlbuild(.mtafters(r1), rD) # etc #
14: From next release, default hole handling
2008 Mar 29
3
Generating maps in R
Greetings!
I am trying plot some data on a map in R. Here's the scenario.
I have a variable called probworkinghealthy which contains a predicted
probability of employment for every individual in my sample (about
100,000 observations).
I have another variable, called a001ter, which contains the subject of
residency in the Russian Federation (akin to a US state) for every
individual in the