GetGdalVectorInfo()
Summary
Get information
Syntax
rslt = GetGdalVectorInfo(string filename)
| Argument | Contents |
|---|---|
| filename | The full path to the Gdal Vector File |
Returns
An array of info elements:
| Element | Type | Contents |
|---|---|---|
| Version | numeric | The Gdal Vector File Version |
| Extent | array | Four reals defining the South latitude, West longitude, North latitude and East longitude |
| Type | string | The type of geographic entity: Point, Line, Area |
| Point Layers | array | The list of all the point layers in the vector file |
Notes
-
The supported file types include JSON files with extensions as JSON and GeoJSON - a plain text format for vector layers, ArcGIS File Geodatabases with the extension .gdb
FlatGeobuf files with the extension .fgb
Example
file= "C:\\My Layers\\\\My Point Layer.geojson"
info = GetGdalVectorInfo(res)
/*
info = {
{ "Version", 0 },
{ "Extent", { -106.6514, 39.101022, -103.75444, 40.794544 } },
{ "Type", "Point" },
{ "Point Layers", { "My Customers Layer" } },
{ "Point Counts", { 4509 } },
{ "Point Projection WKTs", { "GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]" } },
{ "Fields", { "ID", "Customer ID", "Customer Name", "Street Address", "City", "State", "ZIP Code", "QTR1 Sales", "QTR2 Sales", "Territory", "Geocoding Precision" } } }
*/
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The input file does not exist or is invalid. |
See Also
| Function | Summary |
|---|---|
| AddGdalVectorLayerToWorkspace() | Adds a Gdal Vector Layer to the workspace |
| AddGdalVectorLayer() | Adds a Gdal Vector Layer to a map |
|
©2026 Caliper Corporation |