AddClassedPostLayer
AddClassedPostLayer adds a new classed post map layer to a specified MapFrame object and can be used to specify the DataFileOptions parameter. Returns a ClassedPostLayer Object.
Syntax
object. AddClassedPostLayer( Map, DataFileName, xCol, yCol, zCol, LabCol, DataFileOptions )
Parameter |
Type |
Default |
Description |
Map |
required; This specifies the MapFrame object in which the classed post map layer is added. |
||
DataFileName |
String |
required; This provides the XYZ data file |
|
xCol |
Long |
1 (column A) |
optional; This provides the column containing X coordinates |
yCol |
Long |
2 (column B) |
optional; This provides the column containing Y coordinates |
zCol |
Long |
3 (column C) |
optional; This provides the column containing the class information |
LabCol |
Long |
optional; This provides the column containing labels |
|
DataFileOptions |
String |
"" |
optional; This parameter is used to specify data import options |
Remarks
Default=0 means use the default column. xCol defaults to column A , yCol defaults to column B, and zCol defaults to column C. LabCol defaults to none. Worksheet column numbers begin with 1. This means that column A = 1, column B = 2, etc.
Example 1
This example demonstrates creating a classed post map from an Excel sheet.
'Creates a classed post map layer from the sheet in the Excel workbook in the MapFrame Object
Set ClassedPostLayer = Doc.Shapes.AddClassedPostLayer(Map:= MapFrame, DataFileName:="c:\temp\book1.xlsx", _
DataFileOptions:="sheet=sheet2")
Example 2
This script displays all the methods and properties in the Shapes collection.
Used by: Shapes collection