Maptitude GISDK Help

ComputeIntersectionPercentages()

Summary

Intersects two or more area or line layers and computes the intersection percentages.

 

Syntax

ComputeIntersectionPercentages(array layer_sets, string table, array options)

 

Argument

Contents

layer_sets

The layer and/or set names of area or line features to intersect

table

The filename of the table to create; the file extension must be one of .BIN, .CSV, .DBF, or .TXT

 

Option

Type

Contents

Database

String

The path and file name for the resulting geographic database; or null if you do not want to produce a geographic file

Label

String

A descriptive label for the geographic file

Layer Name

String

The name of the layer in the geographic file

Optimize

Boolean

If "True" (default), and the Database option is specified, the database will be optimized, otherwise "False"

 

Notes

Example

// Before running the example, create a map by opening manh_zip.cdf and add the

// layer manhtrct.cdf, both in the Tutorial folder.

folder = RunMacro("G30 Tutorial Folder")

ComputeIntersectionPercentages({"Tract", "5-Digit Zip"}, folder+"myintersect.dbf",

{{"Database", folder + "myoverlay.dbd"}, {"Optimize", "False"}}) 

// Open myintersect.dbf and myoverlay.dbd in the Tutorial folder

// to see the results.

 

Error Codes

Error

Meaning

NotFound

One or more of the layer or sets does not exist

Error

An argument or option has the wrong type or the wrong number of values; or
an error occurred while processing the data; or

no layer or sets are specified; or
they are specified incorrectly.

Escape

The user clicked Cancel

 

See Also

Function

Summary

AggregateTable()

Groups records in a view and computes summary statistics

ApplyOverlayTable()

Computes attribute values for a view using information from an overlay table

ColumnAggregate()

Performs a geographic overlay between two layers and aggregates tabular data

MergeByValue()

Creates districts by merging areas from a geographic file, based on the value of a field

MergeGeography()

Merges features from one layer into another

SelfAggregate()

Groups the records in a view, based on a field, to create an aggregate view

 

 

©2025 Caliper Corporation www.caliper.com