shapefiles.private vocabulary - Factor Documentation (original) (raw)

shapefiles.private vocabulary
Factor handbook » Vocabulary index

Summary

Metadata

Parents: shapefiles

Words

Tuple classes

Class Superclass Slots
header tuple file-code file-length version shape-type x-min y-min x-max y-max z-min z-max m-min m-max
index tuple offset content-length
non-null-shapes-must-be-same-type tuple shape-types
record tuple number content-length shape

Generic words

Word Stack effect
(write-shape) ( shape -- )
shape-type ( shape -- shape-type )
update-bounds ( header shape -- header )

Ordinary words

Word Stack effect
(read-multipoint) ( -- box points )
check-shape-types ( shapes -- )
file>shp ( path -- header records )
file>shx ( path -- header indices )
non-null-shape-types ( shapes -- shape-types )
non-null-shapes-must-be-same-type ( shape-types -- * )
nth-index ( n path -- index )
nth-record ( n path -- record )
num-records ( path -- n )
read-box ( -- box )
read-double ( -- n )
read-doubles ( n -- array )
read-header ( -- header )
read-index ( -- index/f )
read-indices ( -- indices )
read-int ( -- n )
read-ints ( n -- parts )
read-multipatch ( -- multipatch )
read-multipoint ( -- multipoint )
read-multipoint-m ( -- multipoint-m )
read-multipoint-z ( -- multipoint-z )
read-point ( -- point )
read-point-m ( -- point-m )
read-point-z ( -- point-z )
read-points ( n -- points )
read-poly ( -- box parts points )
read-poly-m ( -- box parts points m-range m-array )
read-poly-z ( -- box parts points z-range z-array m-range m-array )
read-range ( -- range )
read-record ( -- record/f )
read-records ( -- records )
read-shape ( -- shape )
read-shp ( -- header records )
read-shx ( -- header indices )
update-box ( header shape -- header )
update-m-range ( header shape -- header )
update-z-range ( header shape -- header )
write-double ( n -- )
write-header ( header -- )
write-index ( index -- )
write-int ( n -- )
write-m ( shape -- )
write-point ( point -- )
write-poly ( poly -- )
write-poly-m ( poly -- )
write-poly-z ( poly -- )
write-record ( shape index -- )
write-shape ( shape -- )
write-shp ( shapes -- header indices )
write-shx ( header indices -- )
write-z ( shape -- )

Class predicate words

Word Stack effect
header? ( object -- ? )
index? ( object -- ? )
non-null-shapes-must-be-same-type? ( object -- ? )
record? ( object -- ? )

Files

resource:extra/shapefiles/shapefiles.factor
resource:extra/shapefiles/shapefiles-tests.factor