Skip to content
Prev 2863 / 29559 Next

Binary Map File

On Wed, 28 Nov 2007, Iqbal Jamal wrote:

            
You can go that way if you choose. You'll need first to break out the line 
segments into a text file, then massage them manually into the required 
unique format. They will then need to have their topologies built, and as 
a final exercise in patience, you'll need to find out which built polygons 
belong to which counties. All of this is described in:

Richard A. Becker, and Allan R. Wilks, "Constructing a Geographical 
Database", AT&T Bell Laboratories Statistics, Research Report [95.2], 
1995. http://public.research.att.com/areas/stat/doc/95.2.ps

as mentioned in ?map.

On the other hand, you might find it easier to read the boundary data file 
by functions in the rgdal, maptools, shapefiles, or RArcInfo packages, 
read it in, and use it directly? The difference is mostly that map() style 
polygons must have a built topology because the line segments are only 
stored once, while most external formats and there representations in R 
(such as the sp package SpatialPolygons class) use a list of closed rings, 
avoiding building topologies.

Usually, finding the data file is the most difficult, and you'll need it 
anyway irrespective of your choice.

Roger