SetInputGrids

SetInputGrids sets the input grids and coordinate system of a vector map.

Syntax

object.SetInputGrids( GridFileName1, GridFileName2, CoordSys, AngleSys, AngleUnits )

Parameter

Type

Required/

Optional

Default

Description

GridFileName1

String

Required

This provides the one-grid file name, or two-grid X component (angle) grid file name.

GridFileName2

String

Optional

""

This provides the two-grid Y component (length) grid file name.

CoordSys

SrfVecCoordSys

Optional

srfVecCartesian

This provides the two-grid vector map coordinate system.

AngleSys

SrfVecAngleSys

Optional

srfVecBearing

This provides the two-grid vector map angle system for polar coordinates.

AngleUnits

SrfVecAngleUnits

Optional

srfVecDegrees

This provides the two-grid vector map angle units for polar coordinates.

Remarks

The number of grids cannot be changed with this routine. If a vector map was created with two grids, it must remain a two-grid vector map.

Example

This example demonstrates how to specify new grid files for an existing vector map.

VectorLayer.SetInputGrids(GridFileName1:=SurferApp.Path+"\Samples\demogrid.grd")

Used by: VectorLayer Object