#include "cpl_port.h"
#include "gdal_version.h"
Go to the source code of this file.
#define GDAL_CHECK_VERSION | ( | pszCallingComponentName | ) | GDALCheckVersion(GDAL_VERSION_MAJOR, GDAL_VERSION_MINOR, pszCallingComponentName) |
Helper macro for GDALCheckVersion
typedef enum ogr_style_tool_param_brush_id OGRSTBrushParam |
List of parameters for use with OGRStyleBrush.
typedef enum ogr_style_tool_class_id OGRSTClassId |
OGRStyleTool derived class types (returned by GetType()).
typedef enum ogr_style_tool_param_label_id OGRSTLabelParam |
List of parameters for use with OGRStyleLabel.
typedef enum ogr_style_tool_param_pen_id OGRSTPenParam |
List of parameters for use with OGRStylePen.
typedef enum ogr_style_tool_param_symbol_id OGRSTSymbolParam |
List of parameters for use with OGRStyleSymbol.
typedef enum ogr_style_tool_units_id OGRSTUnitId |
List of units supported by OGRStyleTools.
OGRStyleTool derived class types (returned by GetType()).
List of parameters for use with OGRStyleBrush.
List of parameters for use with OGRStyleLabel.
List of parameters for use with OGRStylePen.
List of parameters for use with OGRStyleSymbol.
List of units supported by OGRStyleTools.
enum OGRFieldType |
List of feature field types. This list is likely to be extended in the future ... avoid coding applications based on the assumption that all field types can be known.
enum OGRJustification |
Display justification for field values.
enum OGRwkbGeometryType |
List of well known binary geometry types. These are used within the BLOBs but are also returned from OGRGeometry::getGeometryType() to identify the type of a geometry object.
int CPL_STDCALL GDALCheckVersion | ( | int | nVersionMajor, | |
int | nVersionMinor, | |||
const char * | pszCallingComponentName | |||
) |
Return TRUE if GDAL library version at runtime matches nVersionMajor.nVersionMinor.
The purpose of this method is to ensure that calling code will run with the GDAL version it is compiled for. It is primarly intented for external plugins.
nVersionMajor | Major version to be tested against | |
nVersionMinor | Minor version to be tested against | |
pszCallingComponentName | If not NULL, in case of version mismatch, the method will issue a failure mentionning the name of the calling component. |
const char* OGRGeometryTypeToName | ( | OGRwkbGeometryType | eType | ) |
Fetch a human readable name corresponding to an OGRwkBGeometryType value. The returned value should not be modified, or freed by the application.
This function is C callable.
eType | the geometry type. |
References OGRGeometryTypeToName(), wkbGeometryCollection, wkbGeometryCollection25D, wkbLineString, wkbLineString25D, wkbMultiLineString, wkbMultiLineString25D, wkbMultiPoint, wkbMultiPoint25D, wkbMultiPolygon, wkbMultiPolygon25D, wkbNone, wkbPoint, wkbPoint25D, wkbPolygon, wkbPolygon25D, and wkbUnknown.
Referenced by OGRGeometryTypeToName().
OGRwkbGeometryType OGRMergeGeometryTypes | ( | OGRwkbGeometryType | eMain, | |
OGRwkbGeometryType | eExtra | |||
) |
Find common geometry type.
Given two geometry types, find the most specific common type. Normally used repeatedly with the geometries in a layer to try and establish the most specific geometry type that can be reported for the layer.
NOTE: wkbUnknown is the "worst case" indicating a mixture of geometry types with nothing in common but the base geometry type. wkbNone should be used to indicate that no geometries have been encountered yet, and means the first geometry encounted will establish the preliminary type.
eMain | the first input geometry type. | |
eExtra | the second input geometry type. |
References OGRMergeGeometryTypes(), wkbGeometryCollection, wkbMultiLineString, wkbMultiPoint, wkbMultiPolygon, wkbNone, and wkbUnknown.
Referenced by OGRMergeGeometryTypes().
int OGRParseDate | ( | const char * | pszInput, | |
OGRField * | psField, | |||
int | nOptions | |||
) |
Parse date string.
This function attempts to parse a date string in a variety of formats into the OGRField.Date format suitable for use with OGR. Generally speaking this function is expecting values like:
YYYY-MM-DD HH:MM:SS+nn
The seconds may also have a decimal portion (which is ignored). And just dates (YYYY-MM-DD) or just times (HH:MM:SS) are also supported. The date may also be in YYYY/MM/DD format. If the year is less than 100 and greater than 30 a "1900" century value will be set. If it is less than 30 and greater than -1 then a "2000" century value will be set. In the future this function may be generalized, and additional control provided through nOptions, but an nOptions value of "0" should always do a reasonable default form of processing.
The value of psField will be indeterminate if the function fails (returns FALSE).
pszInput | the input date string. | |
psField | the OGRField that will be updated with the parsed result. | |
nOptions | parsing options, for now always 0. |
References OGRField::Date, OGRField::Day, OGRField::Hour, OGRField::Minute, OGRField::Month, OGRParseDate(), OGRField::Second, OGRField::TZFlag, and OGRField::Year.
Referenced by OGRParseDate(), and OGRFeature::SetField().