The program doesn’t do anything with attribute files and doesn’t even require them to be present. When specifying a shapefile for cb-shpdraw, you may provide the name of the. Each part of a complete shapefile has the same prefix. dbf file that contains attributes associated with each shape. shx file that provides an index to the coordinate data for each shape, and a. shp file containing the coordinate data, a. Shapefiles actually consist of three separate files: a. On earlier systems, I believe the directory separator is the colon (“ :“). On Mac OS X, that looks like this: Specify shapefile (none to stop): /Users/anoved/Documents/Geo/shapefile.shp To reference a shapefile in a different folder you have to enter its path. The shapefile names stated above are the names of shapefiles residing in the same directory as the cb-shpdraw.bas program. >run Enter window width: 600 Enter window height: 400 Enter window color (r,g,b percents): 100,100,100 Specify shapefile (none to stop): nycounties Symbol color (r,g,b percents): 0,0,0 Symbol size (>=1): 1 Rendering polyline or polygon shapefile Specify shapefile (none to stop): cities Symbol color (r,g,b percents): 100,100,0 Symbol size (>=1): 20 Rendering multipoint shapefile Specify shapefile (none to stop): > Here is an example command transcript and its output (“ >” is the Chipmunk Basic console prompt): It is a couple orders of magnitude slower on the 33MHz 68LC040 than on my 1.2GHz G4 (as in half an hour versus half a second)! But that is OK, as it is mainly a “can it be done?” program, not an actual tool. Multiple shapefiles can be drawn together using different line weights and colors, allowing simple map overlays to be constructed.Īlthough cb-shpdraw is very slow and has little practical utility, it is the only freely available way I currently know of to display shapefiles on old 68k Macs such as the PB 540c used for the Classic screenshots on this page. It supports point, multipoint, polyline, and polygon shape types. This Chipmunk Basic program parses ESRI shapefiles and draws their contents to the Chipmunk Basic graphics window. An ESRI Shapefile renderer implemented in Chipmunk Basic
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |