Previous Page | Next Page

Annotate Dictionary

%CENTROID Macro



Retrieves the centroids of polygons
Variables written out: X, Y, id variables
Prerequisite: You must run the %ANNOMAC macro before using any other annotate macros. For more information, see Making the Macros Available.

Syntax

Syntax

%CENTROID (input-data-set, output-data-set, list-of-id-variables);

input-data-set

specifies a map data set. The input map data set must be sorted by the ID variables.

output-data-set

contains the id variables and the X and Y variables.

list-of-id-variables

specifies the variables each of which is to be assigned the centroid coordinates of each observation in the input-data-set. There will be one observation for each unique set of ID values. If you specify more than one ID variable, then separate each variable with a space.

Previous Page | Next Page | Top of Page