MapProjectionAreIdentical Method |
Function that checks if two projecions are identical.
Two map projections are identical, if they have the same set of parameters.
if just one of the parameters are different, then the map projections are NOT identical.
Namespace: DHI.ProjectionsAssembly: DHI.Projections (in DHI.Projections.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static bool AreIdentical(
string projstring1,
string projstring2
)
Public Shared Function AreIdentical (
projstring1 As String,
projstring2 As String
) As Boolean
public:
static bool AreIdentical(
String^ projstring1,
String^ projstring2
)
static member AreIdentical :
projstring1 : string *
projstring2 : string -> bool
Parameters
- projstring1
- Type: SystemString
Specifies the full WKT map projection string to the first projection - projstring2
- Type: SystemString
Specifies the full WKT map projection string to the second projection
Return Value
Type:
BooleanExamples
As an example, "UTM-32" is identical to "WGS_1984_UTM_Zone_32N", because they
have the same set of parameters and the ellipsoids are equivalent, but the projections don't have the same name.
Another example of identical map projections is "NAD_1983_StatePlane_Alaska_1_FIPS_5001" and
"NAD_1983_StatePlane_Alaska_1_FIPS_5001_Feet". Some parameters are defined in different units,
but they are converted to a common unit, before they are compared.
See Also