QGIS API Documentation
2.0.1-Dufour
|
#include "qgis.h"
#include "qgsversion.h"
#include <QCoreApplication>
#include <QDate>
#include <QTime>
#include <QDateTime>
#include "qgsconfig.h"
#include "qgslogger.h"
#include <ogr_api.h>
Go to the source code of this file.
Functions | |
void * | qgsMalloc (size_t size) |
Allocates size bytes and returns a pointer to the allocated memory. | |
void * | qgsCalloc (size_t nmemb, size_t size) |
Allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory. | |
void | qgsFree (void *ptr) |
Frees the memory space pointed to by ptr. | |
bool | qgsVariantLessThan (const QVariant &lhs, const QVariant &rhs) |
bool | qgsVariantGreaterThan (const QVariant &lhs, const QVariant &rhs) |
Variables | |
const CORE_EXPORT QString | GEOPROJ4 = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" |
PROJ4 string that represents a geographic coord sys. | |
const CORE_EXPORT QString | GEOWKT = " AUTHORITY[\"EPSG\",4326]]" |
Wkt string that represents a geographic coord sys. | |
const CORE_EXPORT QString | PROJECT_SCALES = "1:10000,1:5000,1:2500,1:1000,1:500" |
const CORE_EXPORT QString | GEO_EPSG_CRS_AUTHID = "EPSG:4326" |
Geographic coord sys from EPSG authority. | |
const CORE_EXPORT QString | GEO_NONE = "NONE" |
Constant that holds the string representation for "No ellips/No CRS". |
void* qgsCalloc | ( | size_t | nmemb, |
size_t | size | ||
) |
Allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory.
Works like C calloc() but prints debug message by QgsLogger if allocation fails.
nmemb | number of elements |
size | size of element in bytes |
Definition at line 126 of file qgis.cpp.
References QgsDebugMsg, and qgsMalloc().
void qgsFree | ( | void * | ptr | ) |
Frees the memory space pointed to by ptr.
Works like C free().
ptr | pointer to memory space |
Definition at line 141 of file qgis.cpp.
Referenced by QgsRasterBlock::convert(), QgsRasterBlock::reset(), QgsRasterBlock::setImage(), QgsRasterFileWriter::writeImageRaster(), and QgsRasterBlock::~QgsRasterBlock().
void* qgsMalloc | ( | size_t | size | ) |
Allocates size bytes and returns a pointer to the allocated memory.
Works like C malloc() but prints debug message by QgsLogger if allocation fails.
size | size in bytes |
Definition at line 111 of file qgis.cpp.
References QgsDebugMsg.
Referenced by QgsRasterBlock::convert(), QgsRasterBlock::createNoDataBitmap(), qgsCalloc(), QgsRasterBlock::reset(), and QgsRasterFileWriter::writeImageRaster().
bool qgsVariantGreaterThan | ( | const QVariant & | lhs, |
const QVariant & | rhs | ||
) |
Definition at line 173 of file qgis.cpp.
References qgsVariantLessThan().
Referenced by QgsSymbolLayerV2Utils::sortVariantList(), and valueGreaterThan().
bool qgsVariantLessThan | ( | const QVariant & | lhs, |
const QVariant & | rhs | ||
) |
Definition at line 146 of file qgis.cpp.
Referenced by qgsVariantGreaterThan(), QgsSymbolLayerV2Utils::sortVariantList(), and valueLessThan().
const CORE_EXPORT QString GEO_EPSG_CRS_AUTHID = "EPSG:4326" |
Geographic coord sys from EPSG authority.
Definition at line 70 of file qgis.cpp.
Referenced by QgsOWSSourceSelect::on_mChangeCRSButton_clicked(), QgsOWSSourceSelect::populateCRS(), QgsNewVectorLayerDialog::QgsNewVectorLayerDialog(), QgsVectorLayer::setCoordinateSystem(), and QgsCoordinateReferenceSystem::validate().
const CORE_EXPORT QString GEO_NONE = "NONE" |
Constant that holds the string representation for "No ellips/No CRS".
Definition at line 72 of file qgis.cpp.
Referenced by QgsDistanceArea::bearing(), QgsDistanceArea::computePolygonArea(), QgsDistanceArea::convertMeasurement(), QgsMapToolIdentify::featureDerivedAttributes(), QgsDistanceArea::measureLine(), QgsDistanceArea::measurePolygon(), QgsAttributeDialog::QgsAttributeDialog(), QgsDistanceArea::QgsDistanceArea(), and QgsDistanceArea::setEllipsoid().
const CORE_EXPORT QString GEOPROJ4 = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" |
const CORE_EXPORT QString GEOWKT = " AUTHORITY[\"EPSG\",4326]]" |
const CORE_EXPORT QString PROJECT_SCALES = "1:10000,1:5000,1:2500,1:1000,1:500" |
Definition at line 66 of file qgis.cpp.
Referenced by QgsScaleComboBox::updateScales().