GDALVectorTranslateOptions Struct Reference

List of all members.

Public Attributes

bool bSkipFailures
int nLayerTransaction
bool bForceTransaction
int nGroupTransactions
GIntBig nFIDToFetch
bool bQuiet
char * pszFormat
char ** papszLayers
char ** papszDSCO
char ** papszLCO
GDALVectorTranslateAccessMode eAccessMode
bool bAddMissingFields
bool bTransform
char * pszOutputSRSDef
char * pszSourceSRSDef
bool bNullifyOutputSRS
bool bExactFieldNameMatch
char * pszNewLayerName
char * pszWHERE
char * pszGeomField
char ** papszSelFields
char * pszSQLStatement
char * pszDialect
int eGType
GeomTypeConversion eGeomTypeConversion
GeomOperation eGeomOp
double dfGeomOpParam
char ** papszFieldTypesToString
char ** papszMapFieldType
bool bUnsetFieldWidth
bool bDisplayProgress
bool bWrapDateline
double dfDateLineOffset
bool bClipSrc
OGRGeometryH hClipSrc
char * pszClipSrcDS
char * pszClipSrcSQL
char * pszClipSrcLayer
char * pszClipSrcWhere
OGRGeometryH hClipDst
char * pszClipDstDS
char * pszClipDstSQL
char * pszClipDstLayer
char * pszClipDstWhere
bool bSplitListFields
int nMaxSplitListSubFields
bool bExplodeCollections
char * pszZField
char ** papszFieldMap
int nCoordDim
char ** papszDestOpenOptions
bool bForceNullable
bool bUnsetDefault
bool bUnsetFid
bool bPreserveFID
bool bCopyMD
char ** papszMetadataOptions
char * pszSpatSRSDef
int nGCPCount
GDAL_GCP * pasGCPs
int nTransformOrder
OGRGeometryH hSpatialFilter
GDALProgressFunc pfnProgress
void * pProgressData
bool bNativeData

Detailed Description

Options for use with GDALVectorTranslate(). GDALVectorTranslateOptions* must be allocated and freed with GDALVectorTranslateOptionsNew() and GDALVectorTranslateOptionsFree() respectively.


Member Data Documentation

It has the effect of adding, to existing target layers, the new fields found in source layers. This option is useful when merging files that have non-strictly identical structures. This might not work for output formats that don't support adding fields to existing non-empty layers.

clip geometries when it is set to true

set it to false to disable copying of metadata from source dataset and layers into target dataset and layers, when supported by output driver.

display progress on terminal. Only works if input layers have the "fast feature count" capability

If set to false, then field name matching between source and existing target layer is done in a more relaxed way if the target driver has an implementation for it.

produce one feature for each geometry in any kind of geometry collection in the source file

If set to true, does not propagate not-nullable constraints to target layer if they exist in source layer

force the use of particular transaction type based on GDALVectorTranslate::nLayerTransaction

Whether layer and feature native data must be transferred.

use the FID of the source features instead of letting the output driver to automatically assign a new one. If not in append mode, this behaviour becomes the default if the output driver has a FID layer creation option. In which case the name of the source FID column will be used and source feature IDs will be attempted to be preserved. This behaviour can be disabled by option GDALVectorTranslateOptions::bUnsetFid

allow or suppress progress monitor and other non-error output

continue after a failure, skipping the failed feature

split fields of type StringList, RealList or IntegerList into as many fields of type String, Real or Integer as necessary.

It must be set to true to trigger reprojection, otherwise only SRS assignment is done.

If set to true, does not propagate default field values to target layer if they exist in source layer

to prevent the new default behaviour that consists in, if the output driver has a FID layer creation option and we are not in append mode, to preserve the name of the source FID column and source feature IDs

set field width and precision to 0

split geometries crossing the dateline meridian

offset from dateline in degrees (default long. = +/- 10deg, geometries within 170deg to -170deg will be split)

the parameter to geometric operation

GDALVectorTranslateAccessMode GDALVectorTranslateOptions::eAccessMode

access modes

Geometric operation to perform

the geometry type for the created layer

spatial query extents, in the SRS of the source layer(s) (or the one specified with GDALVectorTranslateOptions::pszSpatSRSDef). Only features whose geometry intersects the extents will be selected. The geometries will not be clipped unless GDALVectorTranslateOptions::bClipSrc is true.

force the coordinate dimension to nCoordDim (valid values are 2 or 3). This affects both the layer geometry type, and feature geometries.

If provided, only the feature with this feature id will be reported. Operates exclusive of the spatial or attribute queries. Note: if you want to select several features based on their feature id, you can also use the fact the 'fid' is a special field recognized by OGR SQL. So GDALVectorTranslateOptions::pszWHERE = "fid in (1,3,5)" would select features 1, 3 and 5.

group nGroupTransactions features per transaction (default 20000). Increase the value for better performance when writing into DBMS drivers that have transaction support. nGroupTransactions can be set to -1 to load the data into a single transaction

use layer level transaction. If set to FALSE, then it is interpreted as dataset level transaction.

limit the number of subfields created for each split field.

order of polynomial used for warping (1 to 3). The default is to select a polynomial order based on the number of GCPs

destination dataset open option (format specific), only valid in update mode

dataset creation option (format specific)

the list of field indexes to be copied from the source to the destination. The (n)th value specified in the list is the index of the field in the target layer definition in which the n(th) field of the source layer must be copied. Index count starts at zero. There must be exactly as many values in the list as the count of the fields in the source layer. We can use the "identity" option to specify that the fields should be transferred by using the same order. This option should be used along with the GDALVectorTranslateOptions::eAccessMode = ACCESS_APPEND option.

list of field types to convert to a field of type string in the destination layer. Valid types are: Integer, Integer64, Real, String, Date, Time, DateTime, Binary, IntegerList, Integer64List, RealList, StringList. Special value "All" can be used to convert all fields to strings. This is an alternate way to using the CAST operator of OGR SQL, that may avoid typing a long SQL query. Note that this does not influence the field types used by the source driver, and is only an afterwards conversion.

list of layers of the source dataset which needs to be selected

layer creation option (format specific)

list of field types and the field type after conversion in the destination layer. ("srctype1=dsttype1","srctype2=dsttype2",...). Valid types are : Integer, Integer64, Real, String, Date, Time, DateTime, Binary, IntegerList, Integer64List, RealList, StringList. Types can also include subtype between parenthesis, such as Integer(Boolean), Real(Float32), ... Special value "All" can be used to convert all fields to another type. This is an alternate way to using the CAST operator of OGR SQL, that may avoid typing a long SQL query. This is a generalization of GDALVectorTranslateOptions::papszFieldTypeToString. Note that this does not influence the field types used by the source driver, and is only an afterwards conversion.

list of metadata key and value to set on the output dataset, when supported by output driver. ("META-TAG1=VALUE1","META-TAG2=VALUE2")

list of fields from input layer to copy to the new layer. A field is skipped if mentioned previously in the list even if the input layer has duplicate field names. (Defaults to all; any field is skipped if a subsequent field with same name is found.) Geometry fields can also be specified in the list.

list of ground control points to be added

the progress function to use

pointer to the progress data variable

destination clip datasource

selected named layer from the destination clip datasource

select desired geometries using an SQL query

restrict desired geometries based on attribute query

clip datasource

selected named layer from the source clip datasource

select desired geometries using an SQL query

restrict desired geometries based on attribute query

SQL dialect. In some cases can be used to use (unoptimized) OGR SQL instead of the native SQL of an RDBMS by using "OGRSQL". The "SQLITE" dialect can also be used with any datasource.

output file format name (default is ESRI Shapefile)

name of the geometry field on which the spatial filter operates on.

an alternate name to the new layer

output SRS. GDALVectorTranslateOptions::bTransform must be set to true to trigger reprojection, otherwise only SRS assignment is done.

override source SRS

override spatial filter SRS

SQL statement to execute. The resulting table/layer will be saved to the output.

attribute query (like SQL WHERE)

uses the specified field to fill the Z coordinates of geometries


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs

Generated on 16 Nov 2017 by  doxygen 1.6.1