QGIS API Documentation
3.0.2-Girona (307d082)
|
#include "qgis.h"
#include "qgsversion.h"
#include <QCoreApplication>
#include <QColor>
#include <QDate>
#include <QTime>
#include <QLocale>
#include <QDateTime>
#include "qgsconfig.h"
#include "qgslogger.h"
#include "qgswkbtypes.h"
#include <ogr_api.h>
Go to the source code of this file.
Functions | |
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. More... | |
void | qgsFree (void *ptr) |
Frees the memory space pointed to by ptr. More... | |
void * | qgsMalloc (size_t size) |
Allocates size bytes and returns a pointer to the allocated memory. More... | |
double | qgsPermissiveToDouble (QString string, bool &ok) |
Converts a string to a double in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators. More... | |
int | qgsPermissiveToInt (QString string, bool &ok) |
Converts a string to an integer in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators. More... | |
bool | qgsVariantGreaterThan (const QVariant &lhs, const QVariant &rhs) |
Compares two QVariant values and returns whether the first is greater than the second. More... | |
bool | qgsVariantLessThan (const QVariant &lhs, const QVariant &rhs) |
Compares two QVariant values and returns whether the first is less than the second. More... | |
QString | qgsVsiPrefix (const QString &path) |
uint | qHash (const QVariant &variant) |
Hash for QVariant. More... | |
Variables | |
const QString | GEO_EPSG_CRS_AUTHID = QStringLiteral( "EPSG:4326" ) |
Geographic coord sys from EPSG authority. More... | |
const QString | GEO_NONE = QStringLiteral( "NONE" ) |
Constant that holds the string representation for "No ellips/No CRS". More... | |
const QString | GEOPROJ4 = QStringLiteral( "+proj=longlat +datum=WGS84 +no_defs" ) |
PROJ4 string that represents a geographic coord sys. More... | |
const QString | GEOWKT |
Wkt string that represents a geographic coord sys. More... | |
const QString | PROJECT_SCALES |
void* qgsCalloc | ( | size_t | nmemb, |
size_t | size | ||
) |
void qgsFree | ( | void * | ptr | ) |
void* qgsMalloc | ( | size_t | size | ) |
double qgsPermissiveToDouble | ( | QString | string, |
bool & | ok | ||
) |
Converts a string to a double in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators.
string | string to convert |
ok | will be set to true if conversion was successful |
int qgsPermissiveToInt | ( | QString | string, |
bool & | ok | ||
) |
Converts a string to an integer in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators.
string | string to convert |
ok | will be set to true if conversion was successful |
bool qgsVariantGreaterThan | ( | const QVariant & | lhs, |
const QVariant & | rhs | ||
) |
Compares two QVariant values and returns whether the first is greater than the second.
Useful for sorting lists of variants, correctly handling sorting of the various QVariant data types (such as strings, numeric values, dates and times)
bool qgsVariantLessThan | ( | const QVariant & | lhs, |
const QVariant & | rhs | ||
) |
Compares two QVariant values and returns whether the first is less than the second.
Useful for sorting lists of variants, correctly handling sorting of the various QVariant data types (such as strings, numeric values, dates and times)
const QString GEO_EPSG_CRS_AUTHID = QStringLiteral( "EPSG:4326" ) |
const QString GEO_NONE = QStringLiteral( "NONE" ) |
const QString GEOPROJ4 = QStringLiteral( "+proj=longlat +datum=WGS84 +no_defs" ) |
const QString GEOWKT |
Wkt string that represents a geographic coord sys.