Maptitude GISDK Help

ExportCSV()

Summary

Exports features in a geographic file to a Caliper text geography file.

 

Syntax

ExportCSV(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}

 

Notes

Example

SetLayer("County (Low Res)")

qry = "Select * where Population/Area > 100"

SelectByQuery("Selection", "Several", qry)

ExportCSV("County (Low Res)|Selection", "highdesn.GEO", {

     {"Projection", "utm", {"zone=12", "units=m"}},

     {"NAD Conversion", "NAD27", "NAD83",}

     })

 

Error Codes

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

 

See Also

Function Summary
ExportGeography() Converts a geographic file between standard and compact format, or creates a new geographic file from a selection set
ImportCSV() Imports features from a Caliper text geography file into a geographic file

 

 

©2025 Caliper Corporation www.caliper.com