#include <BCoordSys.h>
Public Member Functions | |
| BCoordSys (const GeoCalc::CS::CCoordSys *pgcCS) | |
| Constructs a BCoordSys from a GeoCalcCore coordinate system object. | |
| BCoordSys (const BCoordSys &cs) | |
| Copy constructor. | |
| BCoordSys () | |
| Default constructor. | |
| bool | ComputeRadiusAtLatitude (const double &latitude, double &radiusInMeters) const |
| Sets the BUnit that describes the unit of measurement used in this BCoordSys. | |
| bool | ConvertFromGeodetic (double &x, double &y) const |
| Converts a geodetic coordinate in the geodetic base of this coordinate system to this coordinate system. | |
| BPoint | ConvertFromGeodetic (const BPoint &inPt) const |
| Converts a geodetic coordinate in the geodetic base of this coordinate system to this coordinate system. | |
| bool | ConvertToGeodetic (double &x, double &y) const |
| Converts a point currently in this coordinate system to the geodetic base of this coordinate system. | |
| BPoint | ConvertToGeodetic (const BPoint &inPt) const |
| Converts a point currently in this coordinate system to the geodetic base of this coordinate system. | |
| const double & | GetCentralMeridian () const |
| Gets the central meridian of this coordinate system. | |
| BClipPtr | GetClip () const |
| Gets a BClip that gives the boundary for the extents of the world in this coordinate system. | |
| BCoordSys * | GetCoordSys (const BIdentifier &identifier) |
| Gets a coordinate system from the data source based on a BIdentifier. | |
| BString | GetDescription (void) const |
| Gets a description of this BCoordsys. | |
| int | GetDimensions () const |
| Returns the number of dimensions in this coordinate system. | |
| const GeoCalc::CS::CCoordSys * | GetGCCoordSys () const |
| Returns the GeoCalcCore CCoordSys object that underlies this BCoordSys. | |
| GeoCalc::CS::CCoordSys * | GetGCCoordSys () |
| Returns the GeoCalcCore CCoordSys object that underlies this BCoordSys. | |
| virtual bool | GetIdentifier (const BString &issuer, BIdentifier &identifier) const |
| Gets the BIdentifier with the specified issuer for this BCoordSys. | |
| BString | GetName (void) const |
| Gets the name of this BCoordSys. | |
| double | GetToMeterFactor (const double &pCentralLatitude) const |
| Gets the factor used to convert between the measurement units used in this coordinate system and meters. | |
| double | GetToMeterFactor (const BRect &area) const |
| Gets the factor used to convert between the measurement units used in this coordinate system and meters. | |
| virtual ECoordSysType | GetType (void) const |
| Gets the type of this BCoordSys. | |
| BUnitPtr | GetUnits (void) const |
| Gets the BUnit that describes the unit of measurement used in this BCoordSys. | |
| bool | IsNearlyEqual (const BCoordSys &cs) |
| Tests to see if the specified BCoordSys is equivalent to the this one. | |
| virtual bool | IsValid () const |
| Indicates whether or not this BCoordSys contains a valid coordinate system definition. | |
| bool | operator!= (const BCoordSys &cs) const |
| Inequality operator. | |
| BCoordSys & | operator= (const BCoordSys &cs) |
| Assignment operator. | |
| bool | operator== (const BCoordSys &cs) const |
| Equality operator. | |
| BString | ToEPSGCode () const |
| Returns the EPSG code that identifies the coordinate system defined in this BCoordSys. | |
| bool | ToFile (const BString &csFile) |
| Writes the coordinate system defined in this BCoordSys to a file (WKT, PRJ, MAP, TAB, etc). | |
| BString | ToWKT () const |
| Creates a WKT definition for the coordinate system defined in this BCoordSys. | |
| virtual | ~BCoordSys () |
| Destructor. | |
Static Public Member Functions | |
| static BCoordSys * | FromEPSGCode (const BString &epsgCode) |
| Initializes a BCoordSys from an EPSG code. | |
| static BCoordSys * | FromESRIString (const BString &esriString) |
| Initializes a BCoordSys from an Esri-specific WKT string. | |
| static BCoordSys * | FromFile (const BString &coordSysFile) |
| Creates a BCoordSys from a file (WKT, PRJ, MAP, TAB, etc). | |
| static BCoordSys * | FromWKT (const BString &wkt) |
| Creates a BCoordSys from a Well-Known Text (WKT) string. | |
Protected Member Functions | |
| void | ClearGeoCalcInfo (void) |
| Frees the internal GeoCalcCore objects. | |
| bool | IsInitialized (void) const |
| Indicates if this BCoordSys has been fully initialized. | |
Protected Attributes | |
| CCoordSysPtr | m_pgcCoordSys |
| The GeoCalcCore CCoordSys object that underlies this BCoordSys. | |
Friends | |
| class | BCoordSysRepository |
| class | BCoordTransform |
| BCoordSys | ( | const GeoCalc::CS::CCoordSys * | pgcCS | ) |
| virtual ~BCoordSys | ( | ) | [virtual] |
Destructor.
| void ClearGeoCalcInfo | ( | void | ) | [protected] |
Frees the internal GeoCalcCore objects.
| bool ComputeRadiusAtLatitude | ( | const double & | latitude, | |
| double & | radiusInMeters | |||
| ) | const |
Sets the BUnit that describes the unit of measurement used in this BCoordSys.
| pUnits | The BUnit that shall be used with this BCoordSys. Computes the radius in meters of the ellipsoid used by this coordinate system at the specified latitude. | |
| latitude | The latitude at which the radius shall be computed, in degrees. | |
| radiusInMeters | The calculated radius value. |
| bool ConvertFromGeodetic | ( | double & | x, | |
| double & | y | |||
| ) | const |
Converts a geodetic coordinate in the geodetic base of this coordinate system to this coordinate system.
| x | The input x-coordinate (longitude). If this method succeeds, then this parameter will hold the output x-coordinate. | |
| y | The input y-coordinate (latitude). If this method succeeds, then this parameter will hold the output y-coordinate. |
| BGeoCalcException | This exception will be thrown if this BCoordSys has not be fully initialized. |
Converts a geodetic coordinate in the geodetic base of this coordinate system to this coordinate system.
| inPt | A point in the geodetic base of this coordinate system. |
| BGeoCalcException | This exception will be thrown if this BCoordSys has not be fully initialized. |
| bool ConvertToGeodetic | ( | double & | x, | |
| double & | y | |||
| ) | const |
Converts a point currently in this coordinate system to the geodetic base of this coordinate system.
| x | The input x-coordinate. If this method succeeds, then this parameter will hold the output x-coordinate (longitude). | |
| y | The input y-coordinate. If this method succeeds, then this parameter will hold the output y-coordinate (latitude). |
| BGeoCalcException | This exception will be thrown if this BCoordSys has not be fully initialized. |
Converts a point currently in this coordinate system to the geodetic base of this coordinate system.
| inPt | A point in this coordinate system. |
| BGeoCalcException | This exception will be thrown if this BCoordSys has not be fully initialized. |
Initializes a BCoordSys from an EPSG code.
| epsgCode | An EPSG code that identifies a coordinate system. |
| BCoordSysRepositoryException | This exception will be thrown if the BCoordSysRepository has not been initialized. | |
| BGeoCalcException | This exception will be thrown if GeoCalc encounters an error when creating the coordinate system. |
Initializes a BCoordSys from an Esri-specific WKT string.
| esriString | An Esri-specific WKT string. |
| BCoordSysRepositoryException | This exception will be thrown if the BCoordSysRepository has not been initialized. | |
| BGeoCalcException | This exception will be thrown if GeoCalc encounters an error when parsing the WKT string. |
Creates a BCoordSys from a file (WKT, PRJ, MAP, TAB, etc).
| coordSysFile | The path and file name containing the coordinate system definition. |
| BCoordSysRepositoryException | This exception will be thrown if the BCoordSysRepository has not been initialized. | |
| BGeoCalcException | This exception will be thrown if GeoCalc encounters an error when parsing the input file. |
Creates a BCoordSys from a Well-Known Text (WKT) string.
| wkt | A WKT string that defines a coordinate system. |
| BCoordSysRepositoryException | This exception will be thrown if the BCoordSysRepository has not been initialized. | |
| BGeoCalcException | This exception will be thrown if GeoCalc encounters an error when parsing the WKT string. |
| const double& GetCentralMeridian | ( | ) | const [inline] |
Gets the central meridian of this coordinate system.
| BClipPtr GetClip | ( | ) | const |
Gets a BClip that gives the boundary for the extents of the world in this coordinate system.
| BCoordSys* GetCoordSys | ( | const BIdentifier & | identifier | ) |
Gets a coordinate system from the data source based on a BIdentifier.
| identifier | A BIdentifier that identifies a BCoordSys in the data source. |
| BCoordSysRepositoryException | This exception will be thrown if the BCoordSysRepository has not been initialized. |
| BString GetDescription | ( | void | ) | const |
Gets a description of this BCoordsys.
| int GetDimensions | ( | ) | const |
Returns the number of dimensions in this coordinate system.
| const GeoCalc::CS::CCoordSys* GetGCCoordSys | ( | ) | const |
Returns the GeoCalcCore CCoordSys object that underlies this BCoordSys.
| GeoCalc::CS::CCoordSys* GetGCCoordSys | ( | ) |
Returns the GeoCalcCore CCoordSys object that underlies this BCoordSys.
| virtual bool GetIdentifier | ( | const BString & | issuer, | |
| BIdentifier & | identifier | |||
| ) | const [virtual] |
Gets the BIdentifier with the specified issuer for this BCoordSys.
| issuer | The issuer of the desired BIdentifier. | |
| identifier | The identifier for this BUnit with the specified issuer. |
| BString GetName | ( | void | ) | const |
| double GetToMeterFactor | ( | const double & | pCentralLatitude | ) | const |
Gets the factor used to convert between the measurement units used in this coordinate system and meters.
| pCentralLatitude | The central latitude in degrees (only needed for geodetic coordinate systems). |
| double GetToMeterFactor | ( | const BRect & | area | ) | const |
Gets the factor used to convert between the measurement units used in this coordinate system and meters.
| area | The area in which the factor is needed (only needed for geodetic coordinate systems). |
| virtual ECoordSysType GetType | ( | void | ) | const [virtual] |
| BUnitPtr GetUnits | ( | void | ) | const |
| bool IsInitialized | ( | void | ) | const [protected] |
| bool IsNearlyEqual | ( | const BCoordSys & | cs | ) |
| virtual bool IsValid | ( | ) | const [virtual] |
| bool operator!= | ( | const BCoordSys & | cs | ) | const [inline] |
| bool operator== | ( | const BCoordSys & | cs | ) | const |
| BString ToEPSGCode | ( | ) | const |
Returns the EPSG code that identifies the coordinate system defined in this BCoordSys.
| BGeoCalcException | This exception will be thrown if GeoCalc encounters an error while determining the EPSG code for the system. |
| bool ToFile | ( | const BString & | csFile | ) |
Writes the coordinate system defined in this BCoordSys to a file (WKT, PRJ, MAP, TAB, etc).
| csFile | The file to which the coordinate system will be written. |
| BCoordSysRepositoryException | This exception will be thrown if the BCoordSysRepository has not been initialized. | |
| BGeoCalcException | This exception will be thrown if GeoCalc encounters an error when writing the coordinate system to the file. |
| BString ToWKT | ( | ) | const |
Creates a WKT definition for the coordinate system defined in this BCoordSys.
| BCoordSysRepositoryException | This exception will be thrown if the BCoordSysRepository has not been initialized. | |
| BGeoCalcException | This exception will be thrown if GeoCalc encounters an error when creating the WKT string. |
friend class BCoordSysRepository [friend] |
friend class BCoordTransform [friend] |
CCoordSysPtr m_pgcCoordSys [protected] |
The GeoCalcCore CCoordSys object that underlies this BCoordSys.