diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2017-05-19 13:03:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-19 13:03:41 +0200 |
| commit | 2851ac9f7971f5a2c528d58338da42f71aec31cc (patch) | |
| tree | 51c949943772885923cebf59a3c08022cd3e3093 /src/pj_list.h | |
| parent | 34f266e1ced700f2f42e66f5d58efd81cd80134c (diff) | |
| download | PROJ-2851ac9f7971f5a2c528d58338da42f71aec31cc.tar.gz PROJ-2851ac9f7971f5a2c528d58338da42f71aec31cc.zip | |
Unit conversion pseudo-projection.
A pseudo-projection that can be used to convert units of input and
output data. Primarily useful in pipelines.
Unit conversion is performed by means of a pivot unit. The pivot unit
for distance units are the meter and for time we use the modified julian
date. A time unit conversion is performed like
Unit A -> Modified Julian date -> Unit B
distance units are converted in the same manner, with meter being the
central unit.
The modified Julian date is chosen as the pivout unit since it has a
fairly high precision, goes sufficiently long backwards in time, has no
danger of hitting the upper limit in the near future and it is a fairly
common time unit in astronomy and geodesy. Note that we are using the
Julian date and not day. The difference being that the latter is defined
as an integer and is thus limited to days in resolution. This approach
has been extended wherever it makes sense, e.g. the GPS week unit also
has a fractional part that makes it possible to determine the day, hour
and minute of an observation.
In- and output units are controlled with the parameters
+xy_in, +xy_out, +z_in, +z_out, +t_in and +t_out
where xy denotes horizontal units, z vertical units and t time units.
Distance units are converted similar to what is already in use in PROJ.4.
To ease usage of the already defined conversion factors a new column
with the factors defined as doubles has been added to the pj_units array.
This simplifies the code significantly, since parsing the defined strings
can be avoided.
Diffstat (limited to 'src/pj_list.h')
| -rw-r--r-- | src/pj_list.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pj_list.h b/src/pj_list.h index 7ed6bdac..247a073a 100644 --- a/src/pj_list.h +++ b/src/pj_list.h @@ -133,6 +133,7 @@ PROJ_HEAD(tissot, "Tissot Conic") PROJ_HEAD(tmerc, "Transverse Mercator") PROJ_HEAD(tpeqd, "Two Point Equidistant") PROJ_HEAD(tpers, "Tilted perspective") +PROJ_HEAD(unitconvert, "Unit conversion") PROJ_HEAD(ups, "Universal Polar Stereographic") PROJ_HEAD(urm5, "Urmaev V") PROJ_HEAD(urmfps, "Urmaev Flat-Polar Sinusoidal") |
