Maptitude GISDK Help |
Creates a compact format address matchable street file.
CreateStreetCDF(string lyr_set_name, string db_name, array options)
Argument |
Contents |
lyr_set_name |
The name of the layer or selection set to export |
db_name |
The name of the new geographic file |
Option |
Type |
Contents |
Label |
String |
Descriptive label for the new geographic file |
Layer Name |
String |
The name of the new line layer |
Node Name |
String |
The name of the new endpoint layer |
The layer exported must be a line layer, and must contain the following fields: Dir, Name, Class, Left ZIP, Right ZIP, Start Left, Start Right, End Left, End Right, Parity.
The ZIP fields must be numeric.
The Class field is assumed to be a string of the form "A##."
The parity field is numeric and is set to 1 if the address ranges are continuous and only on one side of the street, with mixed odd and even addresses.
When address matching using a Raima database, the Name field must be in upper case or matches will fail.
Address-matching works better on the Caliper Streets file because the street names are standardized.
// Create an address matchable CDF file of all streets within 10 miles of coord x
SetLayer("Caliper Streets")
SelectByCircle("Selection", "Several", Circle(x, 10.0))
CreateStreetCDF("Caliper Streets|Selection", "c:\\strtfile.cdf", {
{"Label", "Small Street File"},
{"Layer Name", "Local Streets"},
{"Node Name", "Endpoints"}
})
Error Type |
Meaning |
Error |
An error occurred while creating the geographic file (e.g., out of disk space) |
NotFound |
The specified layer or set name does not exist, or one of the required fields is missing |
Function |
Summary |
Converts a geographic file between standard and compact format, or creates a new geographic file from a selection set. |
|
Copies either a standard- or compact-format geographic file |
©2025 Caliper Corporation | www.caliper.com |