Cadcorp SIS API Methods

DefineNolPrjLatLon Method

Description

Creates a named Latitude/Longitude Coordinate Reference System in a Named Object Library, replacing any existing Coordinate Reference System with the same name.

Syntax

Visual Basic
Public Function DefineNolPrjLatLon( _
   ByVal prj As String, _
   ByVal lat As Double, _
   ByVal lon As Double, _
   ByVal datum As String, _
   ByVal bDeg As Integer _
) As Integer

Parameters

prj
The named Coordinate Reference System to create, or replace.
 
lat
The Coordinate Reference System latitude origin, in degrees. See Remarks.
 
lon
The Coordinate Reference System longitude origin, in degrees. See Remarks.
 
datum
The named Geodetic Datum on which to base the coordinate reference system. This can be any named Geodetic Datum previously created, or loaded from a Named Object Library.
 
bDeg
True    Store coordinates in degrees.
False    Store coordinates in radians.

Remarks

A (0.0,0.0) origin should normally be used when matching a Coordinate Reference System to external data. If the Coordinate Reference System is going to be used for creating new data then using a local (lat,lon) origin near the centre of the expected extents allows Spatial References to be used with a smaller span, thus increasing the Spatial Reference resolution.

Available: GEO MM ME MD OM OD SISpy

Groups:

Example

sis.DefineNolPrjLatLon("NewProj", 0.0, 0.0, "USER90", 0)


Send comments on this topic.

Click to return to www.cadcorp.com

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