RegistryAdd Method (String, CoordinateReferenceSystem, Boolean) |
Namespace:
Ptv.Components.Projections
Assembly:
Ptv.Components.Projections (in Ptv.Components.Projections.dll) Version: 1.7.10.0
Syntax public static bool Add(
string id,
CoordinateReferenceSystem cs,
bool allowReplace = false
)
Public Shared Function Add (
id As String,
cs As CoordinateReferenceSystem,
Optional allowReplace As Boolean = false
) As Boolean
public:
static bool Add(
String^ id,
CoordinateReferenceSystem^ cs,
bool allowReplace = false
)
static member Add :
id : string *
cs : CoordinateReferenceSystem *
?allowReplace : bool
(* Defaults:
let _allowReplace = defaultArg allowReplace false
*)
-> bool
Parameters
- id
- Type: SystemString
Identifier of the coordinate references system, e.g. EPSG:4326. - cs
- Type: Ptv.Components.ProjectionsCoordinateReferenceSystem
CoordinateReferenceSystem to add. - allowReplace (Optional)
- Type: SystemBoolean
Specifies if an existing coordinate reference system should be replaced, if it exists.
Return Value
Type:
BooleanReturns true, if the coordinate reference system was added to the registry. Returns false otherwise.
See Also