Maptitude GISDK Help |
Exports features in a geographic file to an Esri (ArcView) Shapefile.
ExportArcViewShape(string lyr_set_name, string file_name, array options)
Argument |
Contents |
lyr_set_name |
The name of the layer or selection set to export |
file_name |
A complete path and file name for the new Caliper text geography |
Option |
Type |
Contents |
Fields |
Array |
An array of strings listing the data fields to be exported, or null to export the geography without attributes |
NAD Conversion |
3 strings |
Input datum, output datum, and conversion file (if needed); the input and output datums should be different |
Projection |
String, array |
The projection name and the array of options |
Transform |
Array |
Array indicating the transformation to apply to coordinates in the file. This can have two forms: 1. An array of two or more four-element arrays containing local and world coordinates for control points, for example, {{real localX1, real localY1, real longitude1, real latitude1}, ...} 2. An array of four elements - {real X_multiplier, real Y_multiplier, real X_offset, real Y_offset} |
For more details on the NAD Conversion option, see Datum Conversions.
For more details on the Projection option, see Using Projections and Coordinate Systems.
// Before running the example, create a map by opening manh_zip.cdf
// in the Tutorial folder.
folder = RunMacro("G30 Tutorial Folder")
field_list = GetFields(, "All")
ExportArcViewShape("5-Digit Zip", folder + "myshape.shp", {{"Fields", field_list[1]}})
// Open myshape.shp in the Tutorial folder to see the results
Error Type |
Meaning |
Error |
An error occured creating the Caliper text geography file (e.g., out of disk space) |
NotFound |
The specified layer or set does not exist |
Function |
Summary |
Imports features from an ArcView Shapefile into a geographic file |
©2025 Caliper Corporation | www.caliper.com |