Cadcorp SIS API Methods

SetDatasetPrj Method

Description

Sets a dataset Coordinate Reference System.

Syntax

Visual Basic
Public Function SetDatasetPrj( _
   ByVal nDataset As Long, _
   ByVal projection As String _
) As Integer

Parameters

nDataset
The serial number of the dataset whose Coordinate Reference System is to be set. The serial number can be obtained from the Dataset property of an overlay, or from the GetDataset, GetDatasetContainer or FindExternalDataset methods.
 
projection
The named Coordinate Reference System to use.

Remarks

This method should be used with great care because changing a dataset Coordinate Reference System will result in all Items in a dataset being repositioned in the world, and will typically only be used when a dataset is first created.

Available: GEO MM ME MD OD OM SISpy

Group:

Example

sis.SetDatasePrj (1, "*APrjWinkel1" )

Sets the coordinate reference system of the dataset whose serial number is 1 to *APrjWinkel1.


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).