search for: shapelist

Displaying 2 results from an estimated 2 matches for "shapelist".

2004 Feb 26
1
writing polygons/segments to shapefiles (.shp) or other A rcGIS compatible file
...tely ASCII tool only works with the geography - you have to add the attributes later. With all of that said, I would like to add to the shapefiles package the ability to write out shapefiles from scratch. Since the shapefiles format is rather unique, I think it would be best to use the maptools ShapeList/Map class format (or r-spatial's classes). For starters the package would just write out the geography (like the ASCII tool Avenue script). Later would be added the ability to write the dbf data out from the att.data element of the Map object. Unfortunately I don't know when I will have...
2007 Jan 10
1
map data.frame() data after having linked them to a read.shape() object
...Help with this would be greatly appreciated. Thanks! Tord require(maptools) # Read shape file (one row per county) a=read.shape("myshp.shp", dbf.data=TRUE, verbose=TRUE) str(a) ..- attr(*, "maxbb")= num [1:4] -100 49 0 0 ..- attr(*, "class")= chr "ShapeList" $ att.data:'data.frame': 490 obs. of 60 variables: ..$ STATE_FIPS: Factor w/ 12 levels "04","06","08",..: 11 11 11 11 4 5 5 5 5 5 ... [snip] ..$ STACOUNT4 : Factor w/ 489 levels "ArizonaApache",..: 437 460 451 453 147 207 195 198 231...