On Tue, 5 May 2009, Alina Sheyman wrote:
and for some reason I am still getting the error that I have non-unique id's
eventhough i had deduped both of my files. Any idea why this would be
happening?
Please refer to comments below:
On Tue, May 5, 2009 at 10:16 AM, Alina Sheyman wrote:
I'
and for some reason I am still getting the error that I have non-unique id's
eventhough i had deduped both of my files. Any idea why this would be
happening?
On Tue, May 5, 2009 at 10:16 AM, Alina Sheyman wrote:
>
> I'm still working on trying to combine two spatial files.
> So far I've done the
I'm still working on trying to combine two spatial files.
So far I've done the following
zipmaps1a<- unionSpatialPolygons(zipmaps1,IDs=paste(zipmaps1$ZCTA))
zipmaps1_df<- as(zipmaps1, "data.frame") [!duplicated(zipmaps1$ZCTA),
-(1:4)]
row.names(zipmaps1_df)<- paste(zipmaps1_df$ZCTA)
zipmaps1b <- S
On Wed, 29 Apr 2009, Alina Sheyman wrote:
Using examples in Chapter 5, I am trying to get rid of non-unique polygons.
Actually, maybe my advice wasn't well-judged, unless you are happy to
interpret code in a fairly naked setting, you may actually need the book
text to see what is going on. T
Aslo, this function seems to wipe out my file
zipmaps1a <- unionSpatialPolygons(zipmaps1, IDs=paste(zipmaps1$ZCTA,
zipmaps1$NAME, sep = " "))
when I run names(zipmaps1a), after I run the above command I get NULL
On Wed, Apr 29, 2009 at 12:11 PM, Alina Sheyman wrote:
> Using examples in Chapter
Using examples in Chapter 5, I am trying to get rid of non-unique polygons.
I'm working with a Massachusetts shapefile by zips. The file consists the
following fields
ZCTA NAME LSAD LSAD_TRANS
I've done the following to get rid of duplicate records
> zipmaps1_df <- as(zipmaps1, "data.frame")
On Tue, 28 Apr 2009, Alina Sheyman wrote:
I'm trying to combine two shapefiles using
zipmaps5 <- spRbind(zipmaps1,zipmaps2)
and getting the following error message
Error in spRbind(as(obj, "SpatialPolygons"), as(x, "SpatialPolygons")) :
non-unique polygon IDs
Does anyone know how I can get ri
I'm trying to combine two shapefiles using
zipmaps5 <- spRbind(zipmaps1,zipmaps2)
and getting the following error message
Error in spRbind(as(obj, "SpatialPolygons"), as(x, "SpatialPolygons")) :
non-unique polygon IDs
Does anyone know how I can get rid of duplicate polygons in a shapefile?
th