Public Member Functions | |
| vtProjection & | operator= (const vtProjection &ref) |
| bool | operator== (const vtProjection &ref) const |
| bool | operator!= (const vtProjection &ref) const |
| void | SetUTMZone (int iZone) |
| int | GetUTMZone () const |
| OGRErr | SetDatum (int iDatum) |
| int | GetDatum () const |
| LinearUnits | GetUnits () const |
| int | GuessEPSGCode () const |
| OGRErr | SetGeogCSFromDatum (int iDatum) |
| bool | SetProjectionSimple (bool bUTM, int iUTMZone, int iDatum) |
| void | SetSpatialReference (OGRSpatialReference *pRef) |
| const char * | GetProjectionName () const |
| const char * | GetProjectionNameShort () const |
| bool | GetTextDescription (char *type, char *value) const |
| bool | SetTextDescription (const char *type, const char *value) |
| bool | ReadProjFile (const char *filename) |
| bool | WriteProjFile (const char *filename) const |
| void | SetDymaxion (bool bTrue) |
| bool | IsDymaxion () const |
Static Public Member Functions | |
| static double | GeodesicDistance (const DPoint2 &in, const DPoint2 &out, bool bQuick=false) |
Protected Member Functions | |
| void | LogDescription () const |
Protected Attributes | |
| bool | m_bDymaxion |
|
||||||||||||||||
|
Given two geographic coordinates (longitude/latitude in degrees), return the geodesic arc distance in meters. The WGS84 spheroid is used. |
|
|
Return the datum as an EPSG code (an integer in the range of 6120 - 6904), or -1 if the datum could not be determined. |
|
|
Return a string describing the type of projection.
|
|
|
Return a very short string describing the type of projection.
|
|
||||||||||||
|
Get the projection as a text description. If the projection is Geographic or UTM, then a "simple" type string will be returned. For all other projection types, a WKT string is returned.
|
|
|
Return the kind of horizontal units used by the projection. This is also called "linear units."
|
|
|
Get the UTM zone of the projection.
|
|
|
Try to determine the EPSG code that corresponds to the current projection. This important capability is mysteriously absent from the underlying libraries (OGR, PROJ.4) so it is implemented here.
|
|
|
Inequality operator. |
|
|
Assignment operator. |
|
|
Equality operator. |
|
|
Read the projection from a .prj file. If the filename does not have the file extension ".prj", this method will look for a file which has the same name with a ".prj" extension.
|
|
|
Set the datum to an EPSG Datum code, a value in the range (6120 - 6904). Here are the codes for some of the better-known datums:
|
|
|
Set the projection to a fresh, new geographical coordinate system based on the indicated Datum. |
|
||||||||||||||||
|
Convenient way to set a simple projection.
|
|
|
Set the projection by copying from a OGRSpatialReference. |
|
||||||||||||
|
Set the projection using a text description.
|
|
|
Get the UTM zone of the projection.
|
|
|
Write the projection to a .prj file.
|
1.4.5