About cl-proj:
Constants, variables and function names are extremely close to the native PROJ.4 library.
A number of utility functions are provided along with bare bindings.
Other functions in cl-proj
For example, to convert 47°7'50.09 to decimal representation, call this function with following parameters:
(dms-to-dec 47 7 50.9) => 47.130802
If an optional key DEC is set to true converts parsed data intodecimal representation with DMS-TO-DEC function.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
This function converts a string representation of a coordinate system definition into a projPJ object suitable for use with other API functions. On failure the function will return NULL and set pj_errno. The definition should be of the general form "+proj=tmerc +lon_0 +datum=WGS84". Refer to PROJ.4 documentation and the General Parameters notes for additional details.
Coordinate system objects allocated with PJ-INIT-PLUS should bedeallocated with PJ-FREE.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
- src -- source (input) coordinate system.
- dst -- destination (output) coordinate system.
- point_count -- the number of points to be processed (the size of the x/y/z arrays).
- point_offset -- the step size from value to value (measured in doubles) within the x/y/z arrays - normally 1 for a packed array. May be used to operate on xyz interleaved point arrays.
The PJ-TRANSFORM function may be used to transform points between the two provided coordinate systems. In addition to converting between cartographic projection coordinates and geographic coordinates, this function also takes care of datum shifts if possible between thesource and destination coordinate system. Unlike PJ-FWD andPJ-INV it is also allowable for the coordinate system definitions (PJ *) to be geographic coordinate systems (defined as +proj=latlong). The x, y and z arrays contain the input values of the points, and are replaced with the output values. The point_offset should indicate the spacing the of x,y,z arrays, normally 1. The function returns zero on success, or the error number (also inpj-errno) on failure.
The z array may be passed as NULL if Z values are not available.
X/Y/Z: The array of X, Y and Z coordinate values passed as input, and modified in place for output. The Z may optionally be NULL.
Memory associated with the projection may be freed with pj-free.
- extent -- specifies the geographic extents of the original surface area that is displayed within the screen with given size.
extent is a plist with properties (:minx :maxx :miny :maxy) specifying geographic bounds in the source geographic system. - size -- is a plist specifying (:width and :height) of the resulting image in pixels.
- oX -- Easting long?
- oY -- Northing lat?
- src-cs -- Proj.4 string specifying the source coordinate system
- dst-cs -- Proj.4 string specifying the destination coordinate system
In case of success returns multiple values:
pixelX pixelY relX relY pt.x pt.y
Where pixelX and pixelY are coordinates of the givenpoint in pixels within given screen; relX and relY is arelative position of the given point; pt.X and pt.Y are rendered coordinates of the given point.
- points -- coordinates (x y) of points that specify the polyline
- epsilon -- distance
Given a curve composed of line segments, this function finds and returns a similar curve with fewer points. The algorithm defines 'dissimilar' based on the maximum distance between the original curve and the simplified curve. The simplified curve consists of a subset of the points that defined the original curve.
Check the Ramer–Douglas–Peucker algorithm article on Wikipedia.
Other variables in cl-proj
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
No documentation string. Possibly unimplemented or incomplete.
Index of exported symbols
cl-proj: | +deg-to-rad+, variable (undocumented) |
cl-proj: | +pj-version+, variable (undocumented) |
cl-proj: | +rad-to-deg+, variable (undocumented) |
cl-proj: | dms-to-dec, function |
cl-proj: | parse-degrees, function |
cl-proj: | perpendicular-distance, function |
cl-proj: | pj-acquire-lock, function (undocumented) |
cl-proj: | pj-apply-gridshift, function (undocumented) |
cl-proj: | pj-cleanup-lock, function (undocumented) |
cl-proj: | pj-compare-datums, function (undocumented) |
cl-proj: | pj-dalloc, function (undocumented) |
cl-proj: | pj-datum-transform, function (undocumented) |
cl-proj: | pj-deallocate-grids, function (undocumented) |
cl-proj: | pj-free, function (undocumented) |
cl-proj: | pj-fwd, function |
cl-proj: | pj-geocentric-to-geodetic, function (undocumented) |
cl-proj: | pj-geodetic-to-geocentric, function (undocumented) |
cl-proj: | pj-get-def, function (undocumented) |
cl-proj: | pj-get-errno-ref, function (undocumented) |
cl-proj: | pj-get-release, function (undocumented) |
cl-proj: | pj-init, function (undocumented) |
cl-proj: | pj-init-plus, function |
cl-proj: | pj-inv, function |
cl-proj: | pj-is-geocent, function (undocumented) |
cl-proj: | pj-is-latlong, function (undocumented) |
cl-proj: | pj-latlong-from-proj, function (undocumented) |
cl-proj: | pj-malloc, function (undocumented) |
cl-proj: | pj-pr-list, function (undocumented) |
cl-proj: | pj-release-lock, function (undocumented) |
cl-proj: | pj-set-finder, function (undocumented) |
cl-proj: | pj-set-searchpath, function (undocumented) |
cl-proj: | pj-strerrno, function (undocumented) |
cl-proj: | pj-transform, function |
cl-proj: | render-point, function |
cl-proj: | simplify, function |