Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cl-ewkb Reference Manual, version 0.2, generated automatically by Declt version 3.0 "Montgomery Scott" on Mon Apr 19 14:45:03 2021 GMT+0.
• Introduction | What cl-ewkb is all about | |
• Systems | The systems documentation | |
• Modules | The modules documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
cl-ewkb is a geospatial library, based on cl-wkb, that implements the OGC Well-Known Binary geographic geometry data model with PostGIS 3d, 4d extensions, and provides WKB and EWKB encoding and decoding functionality. cl-wkb author is J.P. Larocue. Library also provide module cl-wkb, which has CLOS-based API like http://enroutesystems.com/software/cl-wkb/ with PostGIS extensions. Depends on: ieee-floats flexi-streams PostGIS extension WKB is described in postgis-1.5/doc/ZMSgeoms.txt All extensions are supported: 3dz, 3dm, 4d, embedded SRID. Exported structs point-primitive x y pointz-primitive x y z pointm-primitive x y m pointzm-primitive x y z m point-primtive structs contain coordinates (2d, 3d, 4d) linear-ring points-primitive linear-ring struct contains array of point-primitive geometry type srid geometry parent struct for other types and also contains "GEOMETRYCOLLECTION" point type srid point-primitive line-string type srid points-primitive polygon type srid linear-rings multi-point type srid points multi-line-string type srid line-strings multi-polygon type srid polygons geometry-collection type srid geometries Exported functions (decode octets) Decode from wkb sequence (decode-from stream) Decode from wkb stream Functions for encoding: (encode object endianness) Encode object to vector (encode-to object stream endianness) Encode object to stream with endianness Example: Getting data from postgresql and decode it: (decode (caar (postmodern:query (:select (:ST_AsEWKB "SRID=4326;LINESTRING(0 0 1 2, 1 1 2 3, 2 2 3 4)"))))) Result: #(CL-EWKB::GISGEOMETRY 3758096386 4326 #(CL-EWKB::LINEAR-RING #(#(CL-EWKB::POINT-PRIMITIVE 0.0d0 0.0d0 CL-EWKB::POINTZ-PRIMITIVE 1.0d0 CL-EWKB::POINTZM-PRIMITIVE 2.0d0) #(CL-EWKB::POINT-PRIMITIVE 1.0d0 1.0d0 CL-EWKB::POINTZ-PRIMITIVE 2.0d0 CL-EWKB::POINTZM-PRIMITIVE 3.0d0) #(CL-EWKB::POINT-PRIMITIVE 2.0d0 2.0d0 CL-EWKB::POINTZ-PRIMITIVE 3.0d0 CL-EWKB::POINTZM-PRIMITIVE 4.0d0))) CL-EWKB::LINESTRING) Drawing data with opengl (using cl-opengl): Draw pointXX-primitive (defun draw-point-primitive (point) (cond ((point-primitive-p point) (gl:vertex (point-primitive-x point) (point-primitive-y point))) ((pointz-primitive-p point) (gl:vertex (point-primitive-x point) (point-primitive-y point) (pointz-primitive-z point))) ((pointm-primitive-p point) (gl:vertex (point-primitive-x point) (point-primitive-y point) 0.0 (pointm-primitive-m point))) ((pointzm-primitive-p point) (gl:vertex (point-primitive-x point) (point-primitive-y point) (pointz-primitive-z point) (pointzm-primitive-m point))))) Drawing objects (defun draw-point (point) (gl:with-primitives :points (draw-point-primitive (point-primitive point)))) (defun draw-points (line-string) (gl:with-primitives :line-strip (map 'nil (lambda (point) (draw-point-primitive point)) (line-string-points-primitive line-string)))) General drawing function (defun draw-gisobject (object) (cond ((point-p object) (draw-point object)) ((line-string-p object) (draw-points object))))
Next: Modules, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The cl-ewkb system |
Michael Filonenko <filonenko.mikhail@gmail.com>
Michael Filonenko <filonenko.mikhail@gmail.com>
MIT
cl-ewkb is a geospatial library, based on cl-wkb, that implements the OGC Well-Known Binary geographic geometry data model with PostGIS 3d, 4d extensions, and provides WKB and EWKB encoding and decoding functionality. cl-wkb author is J.P. Larocue.
0.2
cl-ewkb.asd (file)
Modules are listed depth-first from the system components tree.
• The cl-ewkb/cl-ewkb module | ||
• The cl-ewkb/cl-wkb module |
Next: The cl-ewkb/cl-wkb module, Previous: Modules, Up: Modules [Contents][Index]
cl-ewkb (system)
cl-ewkb/
Previous: The cl-ewkb/cl-ewkb module, Up: Modules [Contents][Index]
cl-ewkb (system)
cl-wkb/
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The cl-ewkb.asd file | ||
• The cl-ewkb/cl-ewkb/package.lisp file | ||
• The cl-ewkb/cl-ewkb/ewkb.lisp file | ||
• The cl-ewkb/cl-wkb/package.lisp file | ||
• The cl-ewkb/cl-wkb/wkb.lisp file |
Next: The cl-ewkb/cl-ewkb/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
cl-ewkb.asd
cl-ewkb (system)
Next: The cl-ewkb/cl-ewkb/ewkb․lisp file, Previous: The cl-ewkb․asd file, Up: Lisp files [Contents][Index]
Next: The cl-ewkb/cl-wkb/package․lisp file, Previous: The cl-ewkb/cl-ewkb/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
cl-ewkb (module)
cl-ewkb/ewkb.lisp
Next: The cl-ewkb/cl-wkb/wkb․lisp file, Previous: The cl-ewkb/cl-ewkb/ewkb․lisp file, Up: Lisp files [Contents][Index]
Previous: The cl-ewkb/cl-wkb/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
cl-wkb (module)
cl-wkb/wkb.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The cl-ewkb-system package | ||
• The cl-ewkb-tests-system package | ||
• The cl-ewkb package | ||
• The cl-wkb package |
Next: The cl-ewkb-tests-system package, Previous: Packages, Up: Packages [Contents][Index]
cl-ewkb.asd
Next: The cl-ewkb package, Previous: The cl-ewkb-system package, Up: Packages [Contents][Index]
cl-ewkb.asd
Next: The cl-wkb package, Previous: The cl-ewkb-tests-system package, Up: Packages [Contents][Index]
package.lisp (file)
Previous: The cl-ewkb package, Up: Packages [Contents][Index]
package.lisp (file)
wkb
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions | ||
• Exported generic functions | ||
• Exported classes | ||
• Exported types |
Next: Exported generic functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.
SYS:SRC;CODE;SEQ.LISP (not found)
Function to decode geoobject from WKB/EWKB representation from sequence.
Function to decode geoobject from WKB/EWKB representation from sequence.
Function to decode geoobject from WKB/EWKB representation from stream.
Function to decode geoobject from WKB/EWKB representation from stream.
Function to encode geoobject to WKB/EWKB representation to sequence. Endianness: :little-endian, :big-endian
Function to encode geoobject to WKB/EWKB representation to sequence. Endianness: :little-endian, :big-endian
Function to encode geoobject to WKB/EWKB representation to binary stream. Endianness: :little-endian, :big-endian
Function to encode geoobject to WKB/EWKB representation to binary stream. Endianness: :little-endian, :big-endian
Next: Exported classes, Previous: Exported functions, Up: Exported definitions [Contents][Index]
automatically generated reader method
wkb.lisp (file)
automatically generated writer method
wkb.lisp (file)
automatically generated reader method
wkb.lisp (file)
automatically generated writer method
wkb.lisp (file)
Next: Exported types, Previous: Exported generic functions, Up: Exported definitions [Contents][Index]
wkb.lisp (file)
standard-object (class)
cl-wkb::uint32
:geomtype
0
geomtype (generic function)
(setf geomtype) (generic function)
cl-wkb::uint32
:srid
0
srid (generic function)
(setf srid) (generic function)
wkb.lisp (file)
geometry (class)
list
:geometries
(quote nil)
geometries (generic function)
(setf geometries) (generic function)
wkb.lisp (file)
geometry (class)
list
:points-primitive
(quote nil)
points-primitive (generic function)
(setf points-primitive) (generic function)
wkb.lisp (file)
standard-object (class)
list
:points-primitive
(quote nil)
points-primitive (generic function)
(setf points-primitive) (generic function)
wkb.lisp (file)
geometry (class)
list
:line-strings
(quote nil)
line-strings (generic function)
(setf line-strings) (generic function)
wkb.lisp (file)
geometry (class)
list
:polygons
(quote nil)
polygons (generic function)
(setf polygons) (generic function)
wkb.lisp (file)
geometry (class)
cl-wkb:point-primitive
:point-primitive
point-primitive (generic function)
wkb.lisp (file)
standard-object (class)
cl-wkb:ieee754-double
:x
(error "must specify x value.")
x (generic function)
cl-wkb:ieee754-double
:y
(error "must specify y value.")
y (generic function)
cl-wkb:ieee754-double
:z
0.0d0
z (generic function)
cl-wkb:ieee754-double
:m
0.0d0
m (generic function)
wkb.lisp (file)
geometry (class)
list
:linear-rings
(quote nil)
linear-rings (generic function)
(setf linear-rings) (generic function)
Previous: Exported classes, Up: Exported definitions [Contents][Index]
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal macros | ||
• Internal functions | ||
• Internal generic functions | ||
• Internal types |
Next: Internal macros, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
Next: Internal functions, Previous: Internal special variables, Up: Internal definitions [Contents][Index]
Defines a function with the given NAME that encodes an integer
of LISP-TYPE to a sequence of octets whose total number of bits equals
BITS.
The defined function takes two arguments: an integer, and an endianness designator: :BIG-ENDIAN or :LITTLE-ENDIAN.
Defines a function with the given NAME that encodes an integer
of LISP-TYPE to a sequence of octets whose total number of bits equals
BITS.
The defined function takes two arguments: an integer, and an endianness designator: :BIG-ENDIAN or :LITTLE-ENDIAN.
Define a structure STRUCT with members MEMBERS and export the standard functions created. SPECIALS is a list of extra parameters eg ((:print-function pf)). Note double parentheses.
Next: Internal generic functions, Previous: Internal macros, Up: Internal definitions [Contents][Index]
Next: Internal types, Previous: Internal functions, Up: Internal definitions [Contents][Index]
Generic decode function for primitive point
ewkb.lisp (file)
Generic decode function for primitive point
wkb.lisp (file)
Generic decode function for primitive point
ewkb.lisp (file)
Generic decode function for primitive point
wkb.lisp (file)
Previous: Internal generic functions, Up: Internal definitions [Contents][Index]
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | C F L M |
---|
Jump to: | C F L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | (
C D E F G L M P S X Y Z |
---|
Jump to: | (
C D E F G L M P S X Y Z |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | +
G L M P S X Y Z |
---|
Jump to: | +
G L M P S X Y Z |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C E G I L M P S T U |
---|
Jump to: | C E G I L M P S T U |
---|