Next: , Previous: , Up: Top   [Contents][Index]


1 Shapefile

Module (shapefile).

Each shapefile is spread over a number of different files, each containing part of the whole data. More information can be found on Wikipedia and in the whitepaper.

The main interface for loading shapefiles is

Function: read-shapefile path

path is a search path without an extension. This due to the data being spread over multiple files. Returns a shapefile object.

The shp and dbf files are required to exist 1

Data Type: shapefile transcoder projection records

transcoder and projection is the data from the cpg and prj files read directly as noted in cpg - Codepage and prj - Projection Information.

records is a list of record records.

Function: shapefile? shapefile
Function: shapefile-transcoder shapefile
Function: shapefile-projection shapefile
Function: shapefile-records shapefile
Function: create-shapefile [#:transcoder] [#:projection] [#:records]

Alternative constructor to the “regular” make-shapefile. Each keyword argument is optional, and defaults to #f. No responsibility is taken if someonee were to create a shapefile without a records list.

Data Type: record shape data

shape is a shape record as read from the shp file. data Is a dbf record, as read from the dbf file.


Footnotes

(1)

The shx file is also required by the spec to exist, but here we ignore it


Next: , Previous: , Up: Top   [Contents][Index]