Map Projection Functions

:Associate with "Map Projection Functions" More...

Functions

bool MdlgGetMapProjParm (MDLGPARENT dlgparent, MAPPROJPARM &projparm, GETPROJPARMFLAGS flags=GETPROJPARMFLAG_None)
int ComputeObjProjTransAffine (DPOINT2D *pta, Mat3x3 AtoM, Mat3x3 MtoA, MAPPROJPARM *Aprojparm, Mat3x3 BtoM, Mat3x3 MtoB, MAPPROJPARM *Bprojparm, Mat3x3 AtoB, Mat3x3 BtoA)
GEOMLIBEXPORT int EPSG_ConvGeogCStoTNT (UINT16 GeogCS, MAPPROJPARM *ProjParm)
GEOMLIBEXPORT int EPSG_ConvProjToTNT (UINT16 Projection, MAPPROJPARM *ProjParm, double *LengthConv)
GEOMLIBEXPORT int EPSG_ConvProjCStoTNT (UINT16 ProjCS, MAPPROJPARM *ProjParm, double *LengthConv)
GEOMLIBEXPORT double EPSG_GetAngleUnitConv (UINT16 AngleUnitCode)
GEOMLIBEXPORT double EPSG_GetLengthUnitConv (UINT16 LengthUnitCode)
GEOMLIBEXPORT void EPSG_FindProjCS (const MAPPROJPARM *ProjParm, UINT16 *ProjCS_EPSG, UINT16 *Projection_EPSG)
GEOMLIBEXPORT GCTPHANDLE gctpAlloc (void)
GEOMLIBEXPORT ERRVALUE gctpAngleToNorth (const GCTPHANDLE handle, double x, double y, double *angle)
GEOMLIBEXPORT int gctpCompare (const GCTPHANDLE handle1, const GCTPHANDLE handle2)
GEOMLIBEXPORT int gctpConvert (const GCTPHANDLE ihandle, const DPOINT2D *ipoint, const GCTPHANDLE ohandle, DPOINT2D *opoint, int numpts)
GEOMLIBEXPORT int gctpConvertLatLonToProj (const GCTPHANDLE ihandle, const DPOINT2D *ipoint, DPOINT2D *opoint, int numpts)
GEOMLIBEXPORT int gctpConvertND (const GCTPHANDLE ihandle, const void *ipoint, const GCTPHANDLE ohandle, void *opoint, int numpts, int numdim)
GEOMLIBEXPORT int gctpConvertPoint (const GCTPHANDLE ihandle, const GCTPHANDLE ohandle, DPOINT2D *point)
GEOMLIBEXPORT int gctpConvertPointZone (const GCTPHANDLE ihandle, const DPOINT2D *ipoint, const UNICODE *izone, const GCTPHANDLE ohandle, DPOINT2D *upoint, UNICODE *ozone)
GEOMLIBEXPORT int gctpConvertPointZone3D (const GCTPHANDLE ihandle, const DPOINT3D *ipoint, const UNICODE *izone, const GCTPHANDLE ohandle, DPOINT3D *upoint, UNICODE *ozone)
GEOMLIBEXPORT int gctpConvertProjToLatLon (const GCTPHANDLE ihandle, const DPOINT2D *ipoint, DPOINT2D *opoint, int numpts)
GEOMLIBEXPORT void gctpCopy (GCTPHANDLE dest, const GCTPHANDLE src)
GEOMLIBEXPORT void gctpFree (GCTPHANDLE phandle)
GEOMLIBEXPORT double gctpGetCenterLon (const GCTPHANDLE phandle)
GEOMLIBEXPORT MAPPROJPARMgctpGetParm (const GCTPHANDLE handle, MAPPROJPARM *projparm)
GEOMLIBEXPORT ERRVALUE gctpParseMGRS (const UNICODE *string, UNICODE *zone, DPOINT2D &point)
GEOMLIBEXPORT int gctpSetParm (GCTPHANDLE handle, const MAPPROJPARM *projparm)
GEOMLIBEXPORT void GetProjNameFull (const MAPPROJPARM &projparm, MISTRING &projname)
GEOMLIBEXPORT UNICODEGetProjNameP (const MAPPROJPARM *projparm, UNICODE *projname=0)
GEOMLIBEXPORT UNICODEGetProjNameAbbrP (const MAPPROJPARM *projparm, UNICODE *projname)
GEOMLIBEXPORT double LatLonDistToMeters (const MAPPROJPARM *proj, double lon1, double lat1, double lon2, double lat2)
GEOMLIBEXPORT int LatLonScaleToMeters (const MAPPROJPARM *proj, double lon, double lat, double *dx, double *dy)
GEOMLIBEXPORT double ProjDistToMeters (const MAPPROJPARM *proj, double x1, double y1, double x2, double y2)
GEOMLIBEXPORT ERRVALUE ProjGetERMapper (const MAPPROJPARM &projparm, char *ProjectionName, char *DatumName)
GEOMLIBEXPORT ERRVALUE ProjGetOGCWKT (const MAPPROJPARM &projparm, MISTRING &string)
GEOMLIBEXPORT const char * ProjOGCWKT_GetProjName (PROJECTION projection)
GEOMLIBEXPORT ERRVALUE ProjSetERMapper (MAPPROJPARM &projparm, const char *ProjectionName, const char *DatumName)
GEOMLIBEXPORT ERRVALUE ProjSetOGCWKT (MAPPROJPARM &projparm, UINT8 &UnitXY, const MISTRING &string)
GEOMLIBEXPORT ERRVALUE ProjSysAddSystem (MAPPROJPARM *projparm, UNICODE *name, UNICODE *abbr)
PROJELLIPSOIDProjSysFindEllipsoid (const MAPPROJPARM *projparm, PROJELLIPSOID *ellipsoid)
PROJDATUMProjSysGetDatum (DATUM datumid, PROJDATUM *datum)
PROJDATUMProjSysGetDatumEPSG (UINT16 datumid, PROJDATUM *datum)
PROJDATUMProjSysGetDatumInfo (int index, PROJDATUM *datum)
PROJELLIPSOIDProjSysGetEllipsoid (INT16 ellipsoidid, PROJELLIPSOID *ellipsoid)
PROJELLIPSOIDProjSysGetEllipsoidEPSG (UINT16 ellipsoidid, PROJELLIPSOID *ellipsoid)
PROJELLIPSOIDProjSysGetEllipsoidInfo (int index, PROJELLIPSOID *ellipsoid)
PROJNAMEProjSysGetProjName (INT16 mapproj, INT16 projsub, PROJNAME *projname)
PROJNAMEProjSysGetProjNameInfo (int index, PROJNAME *projname)
const UNICODEProjSysGetProjNameStr (INT16 mapproj, INT16 projsub=0)
PROJSYSTEMProjSysGetSystem (PROJSYS systemid, PROJSYSTEM *projsystem)
PROJSYSTEMProjSysGetSystemInfo (int index, PROJSYSTEM *projsystem)
PROJSYSTEMProjSysGetSysUsedFromParm (MAPPROJPARM *projparm, bool findmatch, PROJSYSTEM *projsystem)
PROJSYSTEMProjSysGetZone (PROJSYS systemid, int zoneid, PROJSYSTEM *projsystem)
PROJSYSTEMProjSysGetZoneInfo (PROJSYS systemid, int index, PROJSYSTEM *projsystem)
GEOMLIBEXPORT ERRVALUE ProjSysInit ()
GEOMLIBEXPORT int ProjSysNumDatums (void)
GEOMLIBEXPORT int ProjSysNumEllipsoids (void)
GEOMLIBEXPORT int ProjSysNumProjNames (void)
GEOMLIBEXPORT int ProjSysNumSystems (void)
GEOMLIBEXPORT int ProjSysNumZones (int systemid)
ERRVALUE ProjSysSetParmFromSys (MAPPROJPARM *projparm, PROJSYSTEM *projsystem)
GEOMLIBEXPORT bool ProjSysTestEquivalent (const MAPPROJPARM &projparm1, const MAPPROJPARM &projparm2)
GEOMLIBEXPORT int ProjSysValidateParm (MAPPROJPARM *projparm)
GEOMLIBEXPORT void ProjGetArcPrj (const MAPPROJPARM &ProjParm, MISTRINGLIST &PrjList)
GEOMLIBEXPORT bool ProjSetArcPrj (MAPPROJPARM &ProjParm, const MISTRINGLIST &PrjList, double &xshift, double &yshift, double &scale)

Detailed Description

:Associate with "Map Projection Functions"


Function Documentation

int ComputeObjProjTransAffine DPOINT2D pta,
Mat3x3  AtoM,
Mat3x3  MtoA,
MAPPROJPARM Aprojparm,
Mat3x3  BtoM,
Mat3x3  MtoB,
MAPPROJPARM Bprojparm,
Mat3x3  AtoB,
Mat3x3  BtoA
 

Compute affine transformation between objects in different projections.

If either of the projections are "Arbitrary" both will be treated as being the same.

Parameters:
pta  Reference point in Object A coordinate system
AtoM  Object A -> Map
MtoA  Map -> Object A
Aprojparm  Projection parameters for object A
BtoM  Object B -> Map
MtoB  Map -> Object B
Bprojparm  Projection parameters for object B
AtoB  A -> B transformation returned
BtoA  B -> A transformation returned

GEOMLIBEXPORT int EPSG_ConvGeogCStoTNT UINT16  GeogCS,
MAPPROJPARM ProjParm
 

Convert EPSG "Geographic Coordinate System" to TNT MAPPROJPARM fields.

Parameters:
GeogCS  EPASG GCS Code
ProjParm  Projection parameters returned

GEOMLIBEXPORT int EPSG_ConvProjCStoTNT UINT16  ProjCS,
MAPPROJPARM ProjParm,
double *  LengthConv
 

Convert EPSG "Projection" to TNT MAPPROJPARM fields.

Parameters:
ProjCS  EPSG PCS Code
ProjParm  Projection parameters returned
LengthConv  Length conversion to meters returned

GEOMLIBEXPORT int EPSG_ConvProjToTNT UINT16  Projection,
MAPPROJPARM ProjParm,
double *  LengthConv
 

Convert EPSG "Projection" to TNT MAPPROJPARM fields.

Parameters:
Projection  EPSG Projection code
ProjParm  Projection parameters returned
LengthConv  Length conversion to meters returned

GEOMLIBEXPORT void EPSG_FindProjCS const MAPPROJPARM ProjParm,
UINT16 ProjCS_EPSG,
UINT16 Projection_EPSG
 

Find EPSG "Projected Coordinate System" & "Projection" based on TNT MAPPROJPARM.

Parameters:
ProjCS_EPSG  EPSG PCS Code passed/returned
Projection_EPSG  EPSG Proj Code passed/returned

GEOMLIBEXPORT double EPSG_GetAngleUnitConv UINT16  AngleUnitCode  ) 
 

Get linear unit conversion factor.

GEOMLIBEXPORT double EPSG_GetLengthUnitConv UINT16  LengthUnitCode  ) 
 

Get linear unit conversion factor.

GEOMLIBEXPORT GCTPHANDLE gctpAlloc void   ) 
 

Allocate "handle" for use with other GCTP functions.

Returns:
GCTP handle, NULL if out of memory.
See also:
gctpFree.

GEOMLIBEXPORT ERRVALUE gctpAngleToNorth const GCTPHANDLE  handle,
double  x,
double  y,
double *  angle
 

Determine angle between projection and North at specified point.

Parameters:
handle  GCTP handle
x  Point X coordinate
y  Point Y coordinate
angle  Angle in radians returned

GEOMLIBEXPORT int gctpCompare const GCTPHANDLE  handle1,
const GCTPHANDLE  handle2
 

Determine if two projections are equivalent.

Returns:
0 if equal, 1 if not equal, < 0 if error.
Parameters:
handle1  First GCTP handle
handle2  Second GCTP handle

GEOMLIBEXPORT int gctpConvert const GCTPHANDLE  ihandle,
const DPOINT2D ipoint,
const GCTPHANDLE  ohandle,
DPOINT2D opoint,
int  numpts
 

Convert 2-D points from one projection to another.

Parameters:
ihandle  Handle associated with source projection
ipoint  List of points to be converted
ohandle  Handle associated with destination projection
opoint  List of points for output (may be same as srcPoints)
numpts  Number of points to convert

GEOMLIBEXPORT int gctpConvertLatLonToProj const GCTPHANDLE  ihandle,
const DPOINT2D ipoint,
DPOINT2D opoint,
int  numpts
 

Convert points in Latitude/Longitude to a projection.

Parameters:
ihandle  Handle associated with destination projection
ipoint  List of points to be converted
opoint  List of points for output (may be same as srcPoints)
numpts  Number of points to convert

GEOMLIBEXPORT int gctpConvertND const GCTPHANDLE  ihandle,
const void *  ipoint,
const GCTPHANDLE  ohandle,
void *  opoint,
int  numpts,
int  numdim
 

Convert N-D points from one projection to another.

Parameters:
ihandle  Handle associated with source projection
ipoint  List of points to be converted
ohandle  Handle associated with destination projection
opoint  List of points for output (may be same as srcPoints)
numpts  Number of points to convert
numdim  Number of dimensions (must be >= 2)

GEOMLIBEXPORT int gctpConvertPoint const GCTPHANDLE  ihandle,
const GCTPHANDLE  ohandle,
DPOINT2D point
 

Convert single point from one projection to another.

GEOMLIBEXPORT int gctpConvertPointZone const GCTPHANDLE  ihandle,
const DPOINT2D ipoint,
const UNICODE izone,
const GCTPHANDLE  ohandle,
DPOINT2D upoint,
UNICODE ozone
 

Convert point with possible zone specification and/or automatic determination.

GEOMLIBEXPORT int gctpConvertPointZone3D const GCTPHANDLE  ihandle,
const DPOINT3D ipoint,
const UNICODE izone,
const GCTPHANDLE  ohandle,
DPOINT3D upoint,
UNICODE ozone
 

Convert point with possible zone specification and/or automatic determination.

GEOMLIBEXPORT int gctpConvertProjToLatLon const GCTPHANDLE  ihandle,
const DPOINT2D ipoint,
DPOINT2D opoint,
int  numpts
 

Convert points in a projection to Latitude/Longitude.

Parameters:
ihandle  Handle associated with source projection
ipoint  List of points to be converted
opoint  List of points for output (may be same as srcPoints)
numpts  Number of points to convert

GEOMLIBEXPORT void gctpCopy GCTPHANDLE  dest,
const GCTPHANDLE  src
 

Copy parameters from one GCTP handle to another.

If either handle is NULL this function will have no effect.

Parameters:
dest  Destination handle
src  Source handle

GEOMLIBEXPORT void gctpFree GCTPHANDLE  phandle  ) 
 

Free previously allocated GCTP handle.

Parameters:
phandle  GCTP handle to free

GEOMLIBEXPORT double gctpGetCenterLon const GCTPHANDLE  phandle  ) 
 

Get center longitude.

Parameters:
phandle  GCTP handle

GEOMLIBEXPORT MAPPROJPARM* gctpGetParm const GCTPHANDLE  handle,
MAPPROJPARM projparm
 

Retrieve projection parameters from GCTP handle.

Returns:
Pointer to projection parameters, internal if NULL passed.
Parameters:
handle  Previously allocated handle
projparm  Map projection parameter structure to fill in (NULL ok)

GEOMLIBEXPORT ERRVALUE gctpParseMGRS const UNICODE string,
UNICODE zone,
DPOINT2D point
 

Parse MGRS string to extract zone and point.

Parameters:
string  String to parse
zone  Zone returned, must hold at least 6 characters including terminator
point  Point coordinates returned

GEOMLIBEXPORT int gctpSetParm GCTPHANDLE  handle,
const MAPPROJPARM projparm
 

Assign projection parameters to GCTP handle.

Parameters:
handle  Previously allocated handle
projparm  Map projection parameters

GEOMLIBEXPORT UNICODE* GetProjNameAbbrP const MAPPROJPARM projparm,
UNICODE projname
 

Return projection/system name abbreviation based on MAPPROJPARM.

Returns:
Pointer to projection name abbreviation. The abbreviated name will always be a valid RVC object name.
Parameters:
projparm  Projection parameters
projname  Projection name abbreviation filled in (may be NULL)

GEOMLIBEXPORT void GetProjNameFull const MAPPROJPARM projparm,
MISTRING projname
 

Return full projection/system/zone name based on MAPPROJPARM.

Will append zone name to system name if appropriate.

Parameters:
projparm  Projection parameters
projname  Projection name returned

GEOMLIBEXPORT UNICODE* GetProjNameP const MAPPROJPARM projparm,
UNICODE projname = 0
 

Return projection/system name based on MAPPROJPARM.

Returns:
Pointer to projection name.
Parameters:
projparm  Projection parameters
projname  Projection name filled in (may be NULL)

GEOMLIBEXPORT double LatLonDistToMeters const MAPPROJPARM proj,
double  lon1,
double  lat1,
double  lon2,
double  lat2
 

Compute distance in meters between two points specified in latitude/longitude.

Returns:
Distance between points in meters or -1.0 if cannot compute. The distance is computed as a "geodetic". This is the distance along a curved line on the surface of the ellipsoid (usually the Earth).
Parameters:
proj  Projection parameters, will use GRS-1980 ellipsoid if NULL
lon1  Longitude (X coordinate) of first point in degrees
lat1  Latitude (Y coordinate) of first point in degrees (-90 - 90)
lon2  Longitude (X coordinate) of second point in degrees
lat2  Latitude (Y coordinate) of second point in degrees (-90 - 90)

GEOMLIBEXPORT int LatLonScaleToMeters const MAPPROJPARM proj,
double  lon,
double  lat,
double *  dx,
double *  dy
 

Compute scaling from Latitude/Longitude to meters at specified point.

Parameters:
proj  Projection parameters, will use GRS-1980 ellipsoid if NULL
lon  Longitude (X coordinate) of point in degrees
lat  Latitude (Y coordinate) of point in degrees (-90 - 90)
dx  X scaling returned
dy  Y scaling returned

bool MdlgGetMapProjParm MDLGPARENT  dlgparent,
MAPPROJPARM projparm,
GETPROJPARMFLAGS  flags = GETPROJPARMFLAG_None
 

Dialog allowing selection of map projection and parameters.

Returns:
True if "OK" pressed, false if "Cancel".
GETPROJPARMFLAG_None None specified GETPROJPARMFLAG_AllowArbitrary Allow selection of "arbitrary" for projection GETPROJPARMFLAG_AllowNone Allow selection of "none" for projection GETPROJPARMFLAG_NoLatLon Disallow selection of latitude-longitude
Parameters:
dlgparent  Parent for dialog, NULL for default
projparm  Projection parameters passed/returned
flags  Flags

GEOMLIBEXPORT double ProjDistToMeters const MAPPROJPARM proj,
double  x1,
double  y1,
double  x2,
double  y2
 

Compute distance in meters between two points in specified projection.

Returns:
Distance between points in meters. If the coordinate system is Latitude-Longitude the distance along a geodetic is returned (actual distance over curved surface).
Parameters:
proj  Projection parameters, will use GRS-1980 ellipsoid if NULL
x1  X coordinate of first point (in meters or degrees)
y1  Y coordinate of first point
x2  X coordinate of second point
y2  Y coordinate of second point

GEOMLIBEXPORT void ProjGetArcPrj const MAPPROJPARM ProjParm,
MISTRINGLIST PrjList
 

GEOMLIBEXPORT ERRVALUE ProjGetERMapper const MAPPROJPARM projparm,
char *  ProjectionName,
char *  DatumName
 

Set ER-Mapper projection and datum names from MAPPROJPARM.

Parameters:
projparm  Projection parameters
ProjectionName  ER-Mapper projection name returned, must be at least 16 characters
DatumName  ER-Mapper datum name returned, must be at least 16 characters

GEOMLIBEXPORT ERRVALUE ProjGetOGCWKT const MAPPROJPARM projparm,
MISTRING string
 

Get OpenGIS Consortium Well Known Text string from MAPPROJPARM.

Parameters:
projparm  Projection parameters

GEOMLIBEXPORT const char* ProjOGCWKT_GetProjName PROJECTION  projection  ) 
 

Get OpenGIS Consortium WKT name for specified projection.

Returns:
Projection name or NULL if unknown or unsupported.
Parameters:
projection  Projection

GEOMLIBEXPORT bool ProjSetArcPrj MAPPROJPARM ProjParm,
const MISTRINGLIST PrjList,
double &  xshift,
double &  yshift,
double &  scale
 

GEOMLIBEXPORT ERRVALUE ProjSetERMapper MAPPROJPARM projparm,
const char *  ProjectionName,
const char *  DatumName
 

Set projection parameters from ER-Mapper Projection and Datum names.

Parameters:
projparm  Projection parameters to fill in
ProjectionName  ER-Mapper projection name
DatumName  ER-Mapper datum name

GEOMLIBEXPORT ERRVALUE ProjSetOGCWKT MAPPROJPARM projparm,
UINT8 UnitXY,
const MISTRING string
 

Set MAPPROJPARM from OpenGIS Consortion Well Known Text string.

Parameters:
projparm  Projection parameters returned.
UnitXY  X-Y unit returned, of type Distance for projection, PlaneAngle for LatLon

GEOMLIBEXPORT ERRVALUE ProjSysAddSystem MAPPROJPARM projparm,
UNICODE name,
UNICODE abbr
 

Add new system to "user" system list.

Parameters:
projparm  Projection parameters
name  System/zone name
abbr  System/zone abbreviation

PROJELLIPSOID* ProjSysFindEllipsoid const MAPPROJPARM projparm,
PROJELLIPSOID ellipsoid
[inline]
 

Find PROJELLIPSOID matching values in MAPPROJPARM.

Returns:
Pointer to ellipsoid structure passed in.
Parameters:
projparm  Projection parameters
ellipsoid  Ellipsoid structure to fill in

Definition at line 1016 of file mapproj.h.

PROJDATUM* ProjSysGetDatum DATUM  datumid,
PROJDATUM datum
[inline]
 

Return PROJDATUM for specified datum ID.

Returns:
Pointer to datum structure passed in.
Parameters:
datumid  Datum ID
datum  Datum structure to fill in

Definition at line 1025 of file mapproj.h.

PROJDATUM* ProjSysGetDatumEPSG UINT16  datumid,
PROJDATUM datum
[inline]
 

Return PROJDATUM for specified EPSG datum ID.

Returns:
Pointer to datum structure passed in.
Parameters:
datumid  EPSG datum ID
datum  Datum structure to fill in

Definition at line 1034 of file mapproj.h.

PROJDATUM* ProjSysGetDatumInfo int  index,
PROJDATUM datum
[inline]
 

Return PROJDATUM for specified datum index.

Returns:
Pointer to datum structure passed in.
Parameters:
index  Index, 0 to ProjSysNumDatums() - 1
datum  Datum structure to fill in

Definition at line 1043 of file mapproj.h.

PROJELLIPSOID* ProjSysGetEllipsoid INT16  ellipsoidid,
PROJELLIPSOID ellipsoid
[inline]
 

Return PROJELLIPSOID for specified ellipsoid ID.

Returns:
Pointer to ellipsoid structure passed in.
Parameters:
ellipsoidid  Ellipsoid ID
ellipsoid  Ellipsoid structure to fill in

Definition at line 1052 of file mapproj.h.

PROJELLIPSOID* ProjSysGetEllipsoidEPSG UINT16  ellipsoidid,
PROJELLIPSOID ellipsoid
[inline]
 

Return PROJELLIPSOID for specified EPSG ellipsoid ID.

Returns:
Pointer to ellipsoid structure passed in.
Parameters:
ellipsoidid  EPSG ellipsoid ID
ellipsoid  Ellipsoid structure to fill in

Definition at line 1061 of file mapproj.h.

PROJELLIPSOID* ProjSysGetEllipsoidInfo int  index,
PROJELLIPSOID ellipsoid
[inline]
 

Return PROJELLIPSOID for specified ellipsoid index.

Returns:
Pointer to ellipsoid structure passed in.
Parameters:
index  Ellipsoid index, 0 to ProjSysNumEllipsoids() - 1
ellipsoid  Ellipsoid structure to fill in

Definition at line 1070 of file mapproj.h.

PROJNAME* ProjSysGetProjName INT16  mapproj,
INT16  projsub,
PROJNAME projname
[inline]
 

Return PROJNAME for specified projection IDs.

Returns:
Pointer to projname structure passed in.
Parameters:
mapproj  Map projection ID (PROJECTION_...)
projsub  Sub-projection ID, 0 if no sub-projection available
projname  Projection name structure to fill in

Definition at line 1079 of file mapproj.h.

PROJNAME* ProjSysGetProjNameInfo int  index,
PROJNAME projname
[inline]
 

Return PROJNAME for specified projection index.

Returns:
Pointer to projname structure passed in.
Parameters:
index  Projection index, 0 to ProjSysNumProjNames() - 1
projname  Projection name structure to fill in

Definition at line 1089 of file mapproj.h.

const UNICODE* ProjSysGetProjNameStr INT16  mapproj,
INT16  projsub = 0
 

Return PROJNAME for specified projection IDs.

Returns:
Pointer to projname structure passed in.
Parameters:
mapproj  Map projection ID (PROJECTION_...)
projsub  Sub-projection ID, 0 if no sub-projection available

PROJSYSTEM* ProjSysGetSystem PROJSYS  systemid,
PROJSYSTEM projsystem
[inline]
 

Return PROJSYSTEM for specified system ID.

Returns:
Pointer to projsystem structure passed in.
Parameters:
systemid  System ID (PROJSYS_...)
projsystem  Projection system structure to fill in

Definition at line 1105 of file mapproj.h.

PROJSYSTEM* ProjSysGetSystemInfo int  index,
PROJSYSTEM projsystem
[inline]
 

Return PROJSYSTEM for specified system index.

Returns:
Pointer to projsystem structure passed in.
Parameters:
index  System index, 0 to ProjSysNumSystems() - 1
projsystem  Projection system structure to fill in

Definition at line 1114 of file mapproj.h.

PROJSYSTEM* ProjSysGetSysUsedFromParm MAPPROJPARM projparm,
bool  findmatch,
PROJSYSTEM projsystem
[inline]
 

Return PROJSYSTEM for specified projection parameters.

Returns:
Pointer to projsystem structure passed in.
Parameters:
projparm  Projection parameters
findmatch  Find matching system if projparm has PROJSYS_UserDefined
projsystem  Projection system structure to fill in

Definition at line 1123 of file mapproj.h.

PROJSYSTEM* ProjSysGetZone PROJSYS  systemid,
int  zoneid,
PROJSYSTEM projsystem
[inline]
 

Return PROJSYSTEM for specified projection system zone ID.

Returns:
Pointer to projsystem structure passed in.
Parameters:
systemid  System ID (PROJSYS_...)
zoneid  Zone ID
projsystem  Projection system structure to fill in

Definition at line 1133 of file mapproj.h.

PROJSYSTEM* ProjSysGetZoneInfo PROJSYS  systemid,
int  index,
PROJSYSTEM projsystem
[inline]
 

Return PROJSYSTEM for specified projection system zone index.

Returns:
Pointer to projsystem structure passed in.
Parameters:
systemid  System ID (PROJSYS_...)
index  Zone index, 0 to ProjSysNumZones() - 1
projsystem  Projection system structure to fill in

Definition at line 1143 of file mapproj.h.

GEOMLIBEXPORT ERRVALUE ProjSysInit  ) 
 

Initialize projection system toolkit.

This function will be automatically called when needed and should not need to be invoked directly.

GEOMLIBEXPORT int ProjSysNumDatums void   ) 
 

Get number of datums currently defined.

GEOMLIBEXPORT int ProjSysNumEllipsoids void   ) 
 

Get number of ellipsoids currently defined.

GEOMLIBEXPORT int ProjSysNumProjNames void   ) 
 

Get number of projection names currently defined.

GEOMLIBEXPORT int ProjSysNumSystems void   ) 
 

Get number of projection "systems" currently defined.

GEOMLIBEXPORT int ProjSysNumZones int  systemid  ) 
 

Get number of "zones" for specified "system".

ERRVALUE ProjSysSetParmFromSys MAPPROJPARM projparm,
PROJSYSTEM projsystem
[inline]
 

Set values in MAPPROJPARM for specified PROJSYSTEM.

Parameters:
projparm  Projection parameters
projsystem  Projection system parameters

Definition at line 1176 of file mapproj.h.

GEOMLIBEXPORT bool ProjSysTestEquivalent const MAPPROJPARM projparm1,
const MAPPROJPARM projparm2
 

Determine if two sets of projection parameters are equivalent.

Equivalent generally means that the datum, projection and associated parameters are equal, though the coordinate system name and zone may differ.

Returns:
true if equivalent, false if not.

GEOMLIBEXPORT int ProjSysValidateParm MAPPROJPARM projparm  ) 
 

Verify that projection parameters are valid, adjust if not.

Returns:
0 if unchanged, 1 if changed, error < 0.
Parameters:
projparm  Projection parameters, may be altered


Generated on Thu Aug 12 06:27:41 2004 for TNTsdk by doxygen 1.3.4-20031026