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.

Definition

Namespace: DHI.Projections
Assembly: DHI.Projections (in DHI.Projections.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static bool AreIdentical(
	string projstring1,
	string projstring2
)

Parameters

projstring1  String
Specifies the full WKT map projection string to the first projection
projstring2  String
Specifies the full WKT map projection string to the second projection

Return Value

Boolean

Example

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