diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-10-16 22:30:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-16 22:30:23 +0200 |
| commit | 73f7c0eead0cf6fdcf247cd9368cc7d5f72a1f2c (patch) | |
| tree | 63ab16e3fed0243472758809ecb29be38de9f916 /src/proj.h | |
| parent | 117a3f41c02db4e1413617a948a34083c325c3ea (diff) | |
| parent | 526fe4975e789e3437646adbe86608616eac21fe (diff) | |
| download | PROJ-iso19111_dev.tar.gz PROJ-iso19111_dev.zip | |
Merge pull request #1148 from kbevers/lists-to-proj.hiso19111_dev
Move struct definitions for proj_list_* functions to proj.h
Diffstat (limited to 'src/proj.h')
| -rw-r--r-- | src/proj.h | 26 |
1 files changed, 22 insertions, 4 deletions
@@ -180,16 +180,34 @@ struct PJ_INIT_INFO; typedef struct PJ_INIT_INFO PJ_INIT_INFO; /* Data types for list of operations, ellipsoids, datums and units used in PROJ.4 */ -struct PJ_LIST; +struct PJ_LIST { + const char *id; /* projection keyword */ + PJ *(*proj)(PJ *); /* projection entry point */ + const char * const *descr; /* description text */ +}; + typedef struct PJ_LIST PJ_OPERATIONS; -struct PJ_ELLPS; +struct PJ_ELLPS { + const char *id; /* ellipse keyword name */ + const char *major; /* a= value */ + const char *ell; /* elliptical parameter */ + const char *name; /* comments */ +}; typedef struct PJ_ELLPS PJ_ELLPS; -struct PJ_UNITS; +struct PJ_UNITS { + const char *id; /* units keyword */ + const char *to_meter; /* multiply by value to get meters */ + const char *name; /* comments */ + double factor; /* to_meter factor in actual numbers */ +}; typedef struct PJ_UNITS PJ_UNITS; -struct PJ_PRIME_MERIDIANS; +struct PJ_PRIME_MERIDIANS { + const char *id; /* prime meridian keyword */ + const char *defn; /* offset from greenwich in DMS format. */ +}; typedef struct PJ_PRIME_MERIDIANS PJ_PRIME_MERIDIANS; |
