Quantum GIS API Documentation
1.8
|
#include <QEvent>
#include <QString>
#include <cfloat>
#include <cmath>
#include <qnumeric.h>
Go to the source code of this file.
Classes | |
class | QGis |
The QGis class provides global constants for use throughout the application. More... | |
Functions | |
bool | doubleNear (double a, double b, double epsilon=4 *DBL_EPSILON) |
Variables | |
void(*)() | cast_to_fptr (void *p) |
const QString | GEOWKT = " AUTHORITY[\"EPSG\",4326]]" |
Wkt string that represents a geographic coord sys. | |
Q_DECL_DEPRECATED const QString | GEOWkt = GEOWKT |
Wkt string that represents a geographic coord sys. | |
CORE_EXPORT const QString | GEOPROJ4 |
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 |
const double | DEFAULT_SEGMENT_EPSILON = 1e-8 |
default snapping tolerance for segments ( |
bool doubleNear | ( | double | a, |
double | b, | ||
double | epsilon = 4 * DBL_EPSILON |
||
) | [inline] |
Definition at line 130 of file qgis.h.
Referenced by QgsClipper::connectSeparatedLines(), QgsSymbolLayerV2Utils::convertPolygonSymbolizerToPointMarker(), QgsEllipseSymbolLayerV2::createFromSld(), QgsMarkerLineSymbolLayerV2::createFromSld(), QgsSymbolLayerV2Utils::externalMarkerToSld(), QgsClipper::intersectRect(), QgsSymbolLayerV2Utils::lineToSld(), QgsGeometryAnalyzer::locateAlongSegment(), QgsRelief::optimiseClassBreaks(), QgsEllipseSymbolLayerV2::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsImageFillSymbolLayer::renderPolygon(), QgsCoordinateReferenceSystem::setMapUnits(), QgsPoint::sqrDistToSegment(), QgsSVGFillSymbolLayer::startRender(), QgsLinePatternFillSymbolLayer::startRender(), QgsPointPatternFillSymbolLayer::startRender(), QgsMarkerLineSymbolLayerV2::toSld(), QgsRasterCalculator::transformationsEqual(), QgsSymbolLayerV2Utils::wellKnownMarkerToSld(), QgsEllipseSymbolLayerV2::writeSldMarker(), QgsComposerMap::xGridLines(), and QgsComposerMap::yGridLines().
void( *)() cast_to_fptr(void *p) |
Definition at line 115 of file qgis.h.
Referenced by QgsBrowserModel::addRootItems(), QgsRasterLayer::buildSupportedRasterFileFilter(), QgsDirectoryItem::createChildren(), QgsRasterLayer::isValidRasterFileName(), QgsRasterLayer::loadProvider(), QgsProviderRegistry::provider(), QgsDirectoryItem::QgsDirectoryItem(), QgsProviderRegistry::QgsProviderRegistry(), QgsVectorLayerImport::QgsVectorLayerImport(), QgsZipItem::QgsZipItem(), QgsNewVectorLayerDialog::runAndCreateLayer(), and QgsProviderRegistry::selectWidget().
const double DEFAULT_LINE_WIDTH = 0.26 |
Definition at line 187 of file qgis.h.
Referenced by QgsSymbol::QgsSymbol().
const double DEFAULT_POINT_SIZE = 2.0 |
const double DEFAULT_SEGMENT_EPSILON = 1e-8 |
const int ELLPS_PREFIX_LEN = 7 |
const QString GEO_EPSG_CRS_AUTHID = "EPSG:4326" |
Geographic coord sys from EPSG authority.
Definition at line 168 of file qgis.h.
Referenced by QgsNewVectorLayerDialog::QgsNewVectorLayerDialog(), QgsVectorLayer::setCoordinateSystem(), and QgsCoordinateReferenceSystem::validate().
const long GEO_EPSG_CRS_ID = 4326 |
const long GEOCRS_ID = 3452 |
Magic number for a geographic coord sys in QGIS srs.db tbl_srs.srs_id.
Definition at line 164 of file qgis.h.
Referenced by QgsCoordinateReferenceSystem::createFromOgcWmsCrs(), QgsDistanceArea::QgsDistanceArea(), QgsMapRenderer::QgsMapRenderer(), and QgsCoordinateReferenceSystem::readXML().
CORE_EXPORT const QString GEOPROJ4 |
const long GEOSRID = 4326 |
const QString GEOWKT = " AUTHORITY[\"EPSG\",4326]]" |
const int LAT_PREFIX_LEN = 7 |
The length of the string "+lat_1=".
Definition at line 174 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 184 of file qgis.h.
Referenced by QgsSymbol::setPointSize().
const int PROJ_PREFIX_LEN = 6 |
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 177 of file qgis.h.
Referenced by QgsCoordinateReferenceSystem::createFromSrsId(), QgsProjectionSelector::getSelectedExpression(), QgsCoordinateReferenceSystem::loadFromDb(), QgsCoordinateReferenceSystem::proj4FromSrsId(), QgsCoordinateReferenceSystem::readXML(), QgsCoordinateReferenceSystem::saveAsUserCRS(), QgsProjectionSelector::selectedAuthId(), and QgsProjectionSelector::selectedProj4String().