Repository navigation
Expand file tree
/
Copy pathREADME
More file actions
55 lines (43 loc) · 1.88 KB
/
Copy pathREADME
File metadata and controls
55 lines (43 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Qore PROJ module (proj)
INTRODUCTION
------------
The Qore proj module provides bindings to the PROJ coordinate
transformation library (https://proj.org). PROJ converts coordinates
between coordinate reference systems (CRS) — for example, from
geographic WGS84 (EPSG:4326, degrees lat/lon) to a projected CRS such
as ETRS89/UTM zone 32N (EPSG:25832, meters), which is required for
any meaningful planar geometry.
Natural companion to the Qore geos module: `geos` does planar geometry,
`proj` gets the coordinates onto a plane in the first place.
For more information about PROJ, see:
https://proj.org
Thread safety: each thread lazily initialises its own PROJ context via
proj_context_create(). PJ transformer objects are cached per-thread,
so a single ProjTransformer instance can be shared across Qorus
pipeline workers without manual coordination.
Classes provided:
- ProjTransformer: Coordinate transformer between two CRSs.
Forward and inverse transforms for single points or batches.
Standalone functions:
- proj_version(): Returns the PROJ version string.
- get_proj_info(): Returns a hash with parsed version components.
DEPENDENCIES
------------
- libproj >= 8.0 (PROJ 9.x recommended)
BUILD
-----
mkdir build && cd build
cmake ..
make
sudo make install
Requires a Qore development installation (qore-config, qpp) and PROJ
development files.
DOCUMENTATION CROSS-REFERENCES
-----------------------------
Install the GEOS module documentation package to resolve ProjGeos API links.
Its geos.tag index is discovered under the installation data directory in
qore/tags. For a separate documentation tree, configure both locations:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
-DGEOS_DOXYGEN_TAGFILE=/path/to/geos.tag \
-DGEOS_DOXYGEN_TAG_URL=../../geos/html
The URL is relative to the generated ProjGeos HTML directory.