search for: unionspatialpolygon

Displaying 7 results from an estimated 7 matches for "unionspatialpolygon".

Did you mean: unionspatialpolygons
2010 Jun 05
1
Issues with unionSpatialPolygons on Ubuntu
Hi, I've cross posted with r-sig-debian since they may be an issue for linux (never had this problem on my windows machine...) I recently made the switch to Ubuntu 10.04 (lucid), and found that unionSpatialPolygons() gives me the following error when trying to combine polygons within a shapefile: # Read in shapefile and merge polygons foo <- readShapePoly("foo.shp", proj4string = CRS("+init=epsg:2272")) IDs <- as.character(foo$ID) SP_out <- unionSpatialPolygons(foo, IDs) Error:...
2017 May 26
5
Unir municipios
¿Existe alguna función en el paquete "sp" para crear un mapa de comarcas a partir de uno municipal? El "shp" de los municipios lo tengo… necesito crear el "shape" comarcal… Lógicamente tengo un data.frame con la variable "comarca"… Normalmente en google suelo encontrar estas cosas, pero en este caso estoy inusualmente muy perdido… Gracias de antemano.
2011 Jul 09
1
SpatialPolygonsDataFrame holes problem
I have obtained shapefiles for Indian states from here: http://www.maptell.com/index.php?option=com_remository&Itemid=159&func=fileinfo&filecatid=115&parent=category Problem: I want to extract centroid coordinates for each State, but there is some coding problem with the shapefiles that prevents this. #Code: #After extracting the shapefiles from the india_state.zip file, then:
2017 May 26
2
Unir municipios
...aje original----- De: R-help-es [mailto:r-help-es-bounces en r-project.org] En nombre de Francisco Rodriguez Sanchez Enviado el: viernes, 26 de mayo de 2017 11:02 Para: r-help-es en r-project.org Asunto: Re: [R-es] Unir municipios Hola Isidro, Como siempre en R, hay varias formas de hacerlo. Está unionSpatialPolygons del paquete maptools o, quizás más fácil (al menos para mí), la función aggregate del paquete raster: https://www.rdocumentation.org/packages/raster/versions/2.5-8/topics/aggregate Suerte Paco El 26/05/2017 a las 09:26, Isidro Hidalgo Arellano escribió: > Existe alguna funci n en el paque...
2006 Mar 21
1
Getting polygons from contiguous grid cells having same value in sp
I have been using the sp package to deal with gridded data. I would like to know how to extract the vertices (x,y) of polygons that outline areas of like-valued cells in a grid. Here is a simple 3x3 grid: 2 2 1 1 2 1 1 1 3 x <- c(1,1,1,2,2,2,3,3,3) # define a 3 x 3 array of points y <- c(1,2,3,1,2,3,1,2,3) h <- SpatialPoints(cbind(x,y)) # make these an sp object of the points
2012 Nov 29
1
worldmap_region/country problem
Dear R community, I'm trying to graphically illustrate my data with a worlmap. Unfortunately, my data is partly on country basis and partly on regional basis (e.g. certain African countries are aggregated to one region). I am using the package rwoldmap. The data on country basis can be mapped, but our defined regions cannot be identified in R. Therefore, all the countries in these
2009 Mar 21
3
Retrieving Vertices Coordinates from SpatialPolygons
Dear List, I'm trying to use different R packages for my Teaching Assistantship classes. And I cam out to an (apparently) very simple problem. I would like to retrieve the vertices coordinate of a SpatialPolygon data. I know this is stored in the "coords" slot, but I can't get access to it! I tried to coerce the SpatialPolygon into a data.frame but it doesn't work.