Type Definitions
The following type definitions are available globally.
-
Undocumented
-
Undocumented
Declaration
Objective-C
typedef projCtx_t *projCtx
Swift
typealias projCtx = UnsafeMutableRawPointer
-
Undocumented
Declaration
Objective-C
typedef int *PAFile
Swift
typealias PAFile = UnsafeMutablePointer<Int32>
-
Undocumented
See moreDeclaration
Objective-C
typedef struct projFileAPI_t { PAFile (*FOpen)(projCtx ctx, const char *filename, const char *access); size_t (*FRead)(void *buffer, size_t size, size_t nmemb, PAFile file); int (*FSeek)(PAFile file, long offset, int whence); long (*FTell)(PAFile file); void (*FClose)(PAFile); } projFileAPI
Swift
typealias projFileAPI = projFileAPI_t
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { int last_errno; int debug_level; void (*logger)(void *, int, const char *); void *app_data; struct projFileAPI_t *fileapi; } projCtx_t
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { double u, v; } projUV
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { double r, i; } COMPLEX
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { double u, v, w; } projUVW
-
Undocumented
See moreDeclaration
Objective-C
typedef union { double f; int i; char *s; } PROJVALUE
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { double ll_long; /* lower left corner coordinates (radians) */ double ll_lat; double ur_long; /* upper right corner coordinates (radians) */ double ur_lat; } PJ_Region
-
Undocumented
See moreDeclaration
Objective-C
typedef struct PJconsts { projCtx_t *ctx; XY (*fwd)(LP, struct PJconsts *); LP (*inv)(XY, struct PJconsts *); XYZ (*fwd3d)(LPZ, struct PJconsts *); LPZ (*inv3d)(XYZ, struct PJconsts *); void (*spc)(LP, struct PJconsts *, struct FACTORS *); void (*pfree)(struct PJconsts *); const char *descr; paralist *params; /* parameter list */ int over; /* over-range flag */ int geoc; /* geocentric latitude flag */ int is_latlong; /* proj=latlong ... not really a projection at all */ int is_geocent; /* proj=geocent ... not really a projection at all */ double a; /* major axis or radius if es==0 */ double a_orig; /* major axis before any +proj related adjustment */ double es; /* e ^ 2 */ double es_orig; /* es before any +proj related adjustment */ double e; /* eccentricity */ double ra; /* 1/A */ double one_es; /* 1 - e^2 */ double rone_es; /* 1/one_es */ double lam0, phi0; /* central longitude, latitude */ double x0, y0; /* easting and northing */ double k0; /* general scaling factor */ double to_meter, fr_meter; /* cartesian scaling */ int datum_type; /* PJD_UNKNOWN/3PARAM/7PARAM/GRIDSHIFT/WGS84 */ double datum_params[7]; struct _pj_gi **gridlist; int gridlist_count; int has_geoid_vgrids; struct _pj_gi **vgridlist_geoid; int vgridlist_geoid_count; double vto_meter, vfr_meter; double from_greenwich; /* prime meridian offset (in radians) */ double long_wrap_center; /* 0.0 for -180 to 180, actually in radians*/ int is_long_wrap_set; char axis[4]; /* New Datum Shift Grid Catalogs */ char *catalog_name; struct _PJ_GridCatalog *catalog; double datum_date; struct _pj_gi *last_before_grid; PJ_Region last_before_region; double last_before_date; struct _pj_gi *last_after_grid; PJ_Region last_after_region; double last_after_date; #ifdef PJ_LIB__ struct pj_opaque *opaque; #endif #ifdef PROJ_PARMS__ PROJ_PARMS__ #endif /* end of optional extensions */ } PJ
Swift
typealias PJ = PJconsts
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { float lam, phi; } FLP
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { int lam, phi; } ILP
-
Undocumented
See moreDeclaration
Objective-C
typedef struct _pj_gi { char *gridname; /* identifying name of grid, eg "conus" or ntv2_0.gsb */ char *filename; /* full path to filename */ const char *format; /* format of this grid, ie "ctable", "ntv1", "ntv2" or "missing". */ int grid_offset; /* offset in file, for delayed loading */ int must_swap; /* only for NTv2 */ struct CTABLE *ct; struct _pj_gi *next; struct _pj_gi *child; } PJ_GRIDINFO
Swift
typealias PJ_GRIDINFO = _pj_gi
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { PJ_Region region; int priority; /* higher used before lower */ double date; /* year.fraction */ char *definition; /* usually the gridname */ PJ_GRIDINFO *gridinfo; int available; /* 0=unknown, 1=true, -1=false */ } PJ_GridCatalogEntry
-
Undocumented
See moreDeclaration
Objective-C
typedef struct _PJ_GridCatalog { char *catalog_name; PJ_Region region; /* maximum extent of catalog data */ int entry_count; PJ_GridCatalogEntry *entries; struct _PJ_GridCatalog *next; } PJ_GridCatalog
Swift
typealias PJ_GridCatalog = _PJ_GridCatalog
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { /* Chebyshev or Power series structure */ projUV a, b; /* power series range for evaluation */ /* or Chebyshev argument shift/scaling */ struct PW_COEF *cu, *cv; int mu, mv; /* maximum cu and cv index (+1 for count) */ int power; /* != 0 if power series, else Chebyshev */ } Tseries