Select to view content in your preferred language

Is it defect on SpatialReference.AreEqual()?

556
1
08-20-2013 08:16 AM
MunhwanGim
Deactivated User
hi,

Could anyone make me understand on the result of the following code:

SpatialReference.AreEqual(envelopeToClip.SpatialReference, clipAgainst.SpatialReference, true)
where envelopeToClip.SpatialReference is 'Spatial Reference: 102719  (2264)' published with ags 10.11, and
clipAgainst.SpatialReference is 'Spatial Reference: 2264' published with ags10.05.

Above code returns FALSE.

It looks like a defect to me. It looks comparing wkid 102719 != 2264 even though those two are the same Spatial Reference, but just uses the difference standard or what!

thanks for any input for me to understand in advance.
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Unfortunately SpatialReference.AreEquals manages semantic equality for WebMercator WKIDs (102100, 3857, ...) only.
0 Kudos