src/core/qgis.h File Reference

#include <QEvent>
#include <QString>
#include <cfloat>

Include dependency graph for qgis.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QGis
 The QGis class provides global constants for use throughout the application. More...

Defines

#define QGISEXTERN   extern "C"

Functions

void(*)() cast_to_fptr (void *p)
bool doubleNear (double a, double b, double epsilon=4 *DBL_EPSILON)

Variables

const QString GEOWkt
 Wkt string that represents a geographic coord sys.
const QString GEOPROJ4 = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
 PROJ4 string that represents a geographic coord sys.
const long GEOSRID = 4326
 Magic number for a geographic coord sys in POSTGIS SRID.
const long GEOCRS_ID = 3452
 Magic number for a geographic coord sys in QGIS srs.db tbl_srs.srs_id.
const long GEO_EPSG_CRS_ID = 4326
 Magic number for a geographic coord sys in EpsgCrsId ID format.
const QString GEO_EPSG_CRS_AUTHID = "EPSG:4326"
 Geographic coord sys from EPSG authority.
const int PROJ_PREFIX_LEN = 6
 The length of the string "+proj=".
const int ELLPS_PREFIX_LEN = 7
 The length of the string "+ellps=".
const int LAT_PREFIX_LEN = 7
 The length of the string "+lat_1=".
const int USER_CRS_START_ID = 100000
 Magick number that determines whether a projection crsid is a system (srs.db) or user (~/.qgis.qgis.db) defined projection.
const double MINIMUM_POINT_SIZE = 0.1
 Magic number that determines the minimum allowable point size for point symbols.
const double DEFAULT_POINT_SIZE = 2.0
 Magic number that determines the default point size for point symbols.
const double DEFAULT_LINE_WIDTH = 0.26


Define Documentation

#define QGISEXTERN   extern "C"

Definition at line 185 of file qgis.h.


Function Documentation

void( *)() cast_to_fptr ( void *  p  )  [inline]

bool doubleNear ( double  a,
double  b,
double  epsilon = 4 * DBL_EPSILON 
) [inline]

Definition at line 127 of file qgis.h.

Referenced by QgsRasterCalculator::transformationsEqual().


Variable Documentation

const double DEFAULT_LINE_WIDTH = 0.26

Definition at line 174 of file qgis.h.

Referenced by QgsSymbol::QgsSymbol().

const double DEFAULT_POINT_SIZE = 2.0

Magic number that determines the default point size for point symbols.

Definition at line 173 of file qgis.h.

const int ELLPS_PREFIX_LEN = 7

The length of the string "+ellps=".

Definition at line 159 of file qgis.h.

Referenced by QgsCoordinateReferenceSystem::createFromProj4().

const QString GEO_EPSG_CRS_AUTHID = "EPSG:4326"

Geographic coord sys from EPSG authority.

Definition at line 155 of file qgis.h.

const long GEO_EPSG_CRS_ID = 4326

Magic number for a geographic coord sys in EpsgCrsId ID format.

Definition at line 153 of file qgis.h.

const long GEOCRS_ID = 3452

Magic number for a geographic coord sys in QGIS srs.db tbl_srs.srs_id.

Definition at line 151 of file qgis.h.

Referenced by QgsCoordinateReferenceSystem::createFromOgcWmsCrs(), QgsDistanceArea::QgsDistanceArea(), QgsMapRenderer::QgsMapRenderer(), and QgsCoordinateReferenceSystem::readXML().

const QString GEOPROJ4 = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"

PROJ4 string that represents a geographic coord sys.

Definition at line 147 of file qgis.h.

Referenced by QgsVectorLayer::setCoordinateSystem(), and QgsCoordinateReferenceSystem::validate().

const long GEOSRID = 4326

Magic number for a geographic coord sys in POSTGIS SRID.

Definition at line 149 of file qgis.h.

const QString GEOWkt

Initial value:

  "GEOGCS[\"WGS 84\", "
  "  DATUM[\"WGS_1984\", "
  "    SPHEROID[\"WGS 84\",6378137,298.257223563, "
  "      AUTHORITY[\"EPSG\",7030]], "
  "    TOWGS84[0,0,0,0,0,0,0], "
  "    AUTHORITY[\"EPSG\",6326]], "
  "  PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",8901]], "
  "  UNIT[\"DMSH\",0.0174532925199433,AUTHORITY[\"EPSG\",9108]], "
  "  AXIS[\"Lat\",NORTH], "
  "  AXIS[\"Long\",EAST], "
  "  AUTHORITY[\"EPSG\",4326]]"
Wkt string that represents a geographic coord sys.

Definition at line 134 of file qgis.h.

const int LAT_PREFIX_LEN = 7

The length of the string "+lat_1=".

Definition at line 161 of file qgis.h.

Referenced by QgsCoordinateReferenceSystem::createFromProj4().

const double MINIMUM_POINT_SIZE = 0.1

Magic number that determines the minimum allowable point size for point symbols.

Definition at line 171 of file qgis.h.

Referenced by QgsSymbol::setPointSize().

const int PROJ_PREFIX_LEN = 6

The length of the string "+proj=".

Definition at line 157 of file qgis.h.

Referenced by QgsCoordinateReferenceSystem::createFromProj4().

const int USER_CRS_START_ID = 100000

Magick number that determines whether a projection crsid is a system (srs.db) or user (~/.qgis.qgis.db) defined projection.

Definition at line 164 of file qgis.h.

Referenced by QgsCoordinateReferenceSystem::createFromSrsId(), QgsProjectionSelector::getSelectedExpression(), QgsCoordinateReferenceSystem::proj4FromSrsId(), QgsCoordinateReferenceSystem::saveAsUserCRS(), and QgsProjectionSelector::selectedProj4String().


Generated on Sat Feb 4 19:16:26 2012 for Quantum GIS API Documentation by  doxygen 1.5.6