Click or drag to resize

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.Projections
Assembly:  DHI.Projections (in DHI.Projections.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static bool AreIdentical(
	string projstring1,
	string projstring2
)

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: Boolean
Examples
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