GetPrjCode Method
Description
Gets the EPSG code of a named Coordinate Reference System.
Syntax
Visual Basic |
---|
Public Function GetPrjCode( _ ByVal prj As String _ ) As Long |
Parameters
- prj
- The named coordinate reference system from which to retrieve the EPSG code. This can be defined as:
- OGC URNs (eg 'urn:ogc:def:crs:OGC:1.3:CRS84')
- EPSG URNs (eg 'urn:ogc:def:crs:EPSG::27700')
- EPSG code strings (eg 'EPSG:27700')
- EPSG URLs (eg 'http://www.example.com/epsg#27700' or 'http://www.example.com/epsg.xml#27700')
- EPSG codes as a simple string (eg '27700')
- If blank, this will default to the current 'axes' CRS.
Return Type
The numeric EPSG code of the named coordinate reference system.
Remarks
Available: GEO D OD OM SISpy
Groups:
Example
sis.GetPrjCode ( "NAD27.Arizona East" )