GetDatasetPrj Method
Description
Gets a copy of a dataset Coordinate Reference System placing it in a Named Object Library, replacing any existing Coordinate Reference System with the same name.
Syntax
Visual Basic |
---|
Public Function GetDatasetPrj( _ ByVal nDataset As Long, _ ByVal projection As String _ ) As Integer |
Parameters
- nDataset
- The serial number of the dataset whose Coordinate Reference System is required. 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 create or replace.
Remarks
Available: GEO D OD OM SISpy
Groups:
Example
sis.GetDatasetPrj (7, "NewCoordRefSys")
Gets the current dataset coordinate reference system from the dataset, whose serial number is 7, and stores it by the new name NewCoordRefSys.