search for: shapefil

Displaying 20 results from an estimated 233 matches for "shapefil".

Did you mean: shapefile
2004 Feb 26
1
writing polygons/segments to shapefiles (.shp) or other A rcGIS compatible file
The main limitation of the shapefiles package that I put together is that it does not create shapefiles from R objects - rather it only writes shapefiles that have been read into R and manipulated within the constraints of the existing file structure. By this I mean that for example you can change the coordinates of points and write...
2011 Nov 04
2
How to write a shapefile with projection
Hi, ? I am trying to write a shapefile with projection. I have my data in a data.frame called try and consists in xy coordinates and a numerical attribute value z1. ? Libraries loaded are: sp, rgdal, raster, maptools ? head(try) ???????? x?????? ??? y??? ? ? ? ? ? ? ??? z1 1 610237.1 ???????? 3375751 ???????????? 8.221 2 610236....
2003 Dec 01
1
Re: using shapefile as owin
My sincerest apologies, as this is a very elementary problem, but I have searched through archives and FAQs and on the web, and I am at the end of my own resources. I need to do analysis of a spatial point process occuring with four counties, using spatstat. I've had no trouble importing the shapefiles, but I can't seem to figure out what I need to do in order to use the boundary as an owin. Why I use the Map2poly command, it appears to work, but not when I attempt define the window using the shapefile; it also gives me errors when I try to define a ppp.object. I am using the latest releas...
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 below: In simple words, is there a somewhere a function taking polygo...
2005 Sep 09
2
shapefiles manipulations ??
cheers , I need help in shapefile manipulations. I have two shapefiles of my country Cameroon. The first contain 10 provinces and each province contains a certain number of administratives units. I dont have ESRI Arc view. I want to add a admistrative unit of the center province to the map with 10 province. Is it possible to to...
2012 Feb 23
1
using shapefiles in adehabitat/ converting shapefile to spatial pixel data frame
...HS manual a map containing elevation information is loaded (class= spatial pixels data frame) as well as the GPS points of the animals being tracked, these are then plotted on each other and estimation of habitat suitability performed. I have a map containing sea depth information in the form of a shapefile which I want to relate to some GPS tracks I have, however I believe that the shapefile with my sea depth information has to be of the class spatial pixels data frame before I can perform many of the analysis in AdehabitatHS, I have tried converting the shapefile to a spatial pixel data frame usin...
2006 Nov 30
2
*** caught segfault *** error
...s_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" "utils" "datasets" "base" I get an error below whenever I try to plot a map from a shapefile imported into R; I've tried packages 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...
2011 Apr 03
1
another question on shapefiles and geom_point in ggplot2
...re people use it if needed. library(rgdal) library(ggplot2) library(sp) library(maptools) gpclibPermit() manuel <- readOGR(dsn=".", layer="AI_BIOTICA_010411_CRTM05") names(manuel);dim(manuel)   slotNames(manuel) # look at the slot names # add the 'id' variable to the shapefile and use it to merge both files   manuel@data$id = rownames(manuel@data) # convert shapefile to dataframe   manuel.df <- as.data.frame(manuel) # fortify to plot with ggplot2   manuel_fort <- fortify(manuel,region="id")   head(manuel_fort) # Merge shapefile and the as.dataframe shape...
2007 Nov 13
3
ESRI Shapefile for EU-25
Hi all, who knows how to get an ESRI Shapefile for the NUTS-2 Regions of the enlarged European Union? Particularly I want to draw maps of Germany, Poland, Czech Republik, Hungary and Austria. I've found Shapefiles for the US, Russia and other countries elsewhere in the web, but for Europe it seems really difficult. With many thanks for an...
2006 Feb 09
1
Shapefiles
Dear List, I have examined the sp, maptools, and shapefiles packages (Windows) but cannot seem to figure out a solution for writing shapefiles for 'curvy shapes'. The scenario is that I generate a series of polygons, circles, and ellipses on a plot and would like to convert them to shapefiles. Since the circles and ellipses are do not return a c...
2006 Mar 21
3
transform shapefiles in UTM to lat/long
Dear all: I have a shapefile in UTM coordinate system and I would like to transform it to Lat/Log coordinates (WSG84). The package PBSmapping contains function convUL to transform between the two coordinate systems when data is in the form of a data frame with attributes specifying the coordinate system. However, when shapef...
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 reques...
2010 Apr 01
3
Using GIS data in R
I have a simple problem: I need to load a ERSI shapefile of US states and check whether or not a set of points are within the boundary of these states. I have the shapefile, I have the coordinates but I'm having a great deal of difficulty bringing the two together. The problem is the various GIS packages for R do not play well with each other. sp, s...
2012 Apr 18
0
simplify shapefile and save output
I have several large shapefiles that I need to use to draw a map. I want to simplify the files and then save the output so that I can use them again. The methods that I have tried do not allow me to save the simplified output as a shapefile. I have tried: thinnedSpatialPoly in the package maptools, but I understand that you ca...
2013 Feb 14
1
Clip a contour with shapefile while using contourplot
Hi, I have done the interpolation for my data and I was able to create the contours in multipanel with the help of Pascal. Now, I want to clip the contour with the shapefile. I want only the portion of contour to be displayed which falls inside the boundary of the shapefile. The data mydata.csv can be found on https://www.dropbox.com/s/khi7nv0160hi68p/mydata.csv The data for shapefile can be found on https://www.dropbox.com/sh/ztvmibsslr9ocmc/YOtiwB8p9p THe code I...
2003 Jun 09
2
ESRI shapefiles and EMME/2 packages
I just uploaded two packages to CRAN. shapefiles_0.1.tar.gz - functions to read and write ESRI shapefiles (including dbfs) emme2_0.1.tar.gz - functions to read binary data from an EMME/2 databank data (EMME/2 is a transportation modeling program) Please let me know if you find any bugs or have some suggestions. Thanks. Regards, Benjamin Stab...
2011 Oct 05
2
kriging shapefiles
Hi! Im new to R and I need to interpolate a shapefile using kriging. I've been able to plot/read the shapefile using the package maptools or rgdal. I've searched the internet for sample codes but most of the kriging codes that I've found done in R is done using txtfiles or CSVs.  An example could be of great help. Thanks. [[alternative H...
2005 Jul 16
1
PBSmapping and shapefiles
Hi, Is there a way, preferably with R, to read shapefiles and transform them in a format that I could then use with package PBSmapping? I have been able to read such files into R with maptools' read.shape and plot it with plot.Map, but I'd like to bring the data to PBSmapping and plot from there. I also looked at the package shapefile,...
2011 Oct 04
1
shapefile kriging
I'm new to R and I'm working on point shapefiles. Is there a way that you could interpolate a shapefile via kriging in R using an attribute? All examples on the internet are using txt files and CSVs. Thanks a lot. [[alternative HTML version deleted]]
2009 Jan 10
1
Bubble plot on shapefile - projection issues?
...s?showing the number of detections for each fish at each receiver.? I have been able to get it to work using a map generated from GSHHS data (Global Self-consistent, Hierarchical, Highresolution Shoreline) but the map data is not of high enough resolution.? Instead I am trying to plot the data on a shapefile, but I can't find out how to project the shapefile correctly to match up with the data.? I know my shapefile is in NAD 1983 UTM Zone 4N and my data is in WSG84.? How do I change the projections to make them line up?? I tried mapproj but couldn't get it to work.? Any suggestions would be gr...