All Cadcorp SIS API Methods

ChangePrjUnits Method

Description

Copies a named Transverse Mercator coordinate reference system changing the units as a new named Coordinate Reference System in a Named Object Library, replacing any existing Coordinate Reference System with the same name.

Syntax

Visual Basic
Public Function ChangePrjUnits( _
   ByVal prjOut As String, _
   ByVal prjIn As String, _
   ByVal mode As Integer, _
   ByVal dSize As Double _
) As Integer

Parameters

prjOut
The named Coordinate Reference System to create, or replace.
prjIn
The named Coordinate Reference System to copy.
mode
The units of dSize. This parameter must be set to 0, which means that dSize is specified in metres.
dSize
The size of one coordinate reference system unit.

Remarks

This routine can be used to adjust the unit size of Transverse Mercator coordinate reference systems, typically for use with external data sources, which are defined using m, cm, inches, and so on.

Available: GEO D OD OM SISpy

Group:

Example

sis.ChangePrjUnits ("NatGrid10", "*APrjNatGrid", 0, 10)

Create a new projection NatGrid10, based on the projection *APrjNatGrid, where the new unit is 10 times larger than the original.