Writes a subset of features from a Spatial file to a particular Spatial data format.
Syntax
intl gdlSpatialConvert( gdlHandle hGdl,gdlFileHandle hFile, char* filename, intl filetype, intl featuretype, double minx, double miny, double maxx, double maxy );
Arguments
hGdl
The gdlHandle. Input.
hFile
The gdlFileHandle of the Spatial file to read the subset of features from. Input.
filename
The filename to use to output the file. Input.
filetype
The type of the file to write. Options include: GDL_SHP, GDL_SDF, GDL_GSB, GDL_BNA, and GDL_MIF. Input.
featuretype
The type of features to write. Options include: GDL_POINT, GDL_LINE, and GDL_POLYGON.
minx
The minimum x coordinate in decimal degrees. Input.
miny
The minimum y coordinate in decimal degrees. Input.
maxx
The maximum x coordinate in decimal degrees. Input.
maxy
The maximum y coordinate in decimal degrees. Input.
Return values
GDL_OK
GDL_NOT_LICENSED
GDL_ERROR
Prerequisites
None.
Alternates
None.
Notes
There are no extra licensing requirements for gdlSpatialConvert.
A GSB file must contain only one object type. For example, one GSB file should contain only polygons, another file should contain only lines, still another file should contain only points, etc.