CreateStreetCDF()

Summary

Creates a compact format address matchable street file.

Syntax

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

Notes

  • 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.

Example

// 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 Codes

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

See Also

Function Summary
ExportGeography() Converts a geographic file between standard and compact format, or creates a new geographic file from a selection set.
CopyDatabase() Copies either a standard- or compact-format geographic file