/// <summary>
        /// A static helper for determining the length (in meters) between specified pixel coordinates
        /// </summary>
        protected static double LengthInMeters(CoordinateSystem cs, ITransform txfm, Coordinate pixelCd1, Coordinate pixelCd2)
        {
            Coordinate worldCd1 = pixelCd1.Transformed(txfm);
            Coordinate worldCd2 = pixelCd2.Transformed(txfm);

            var ls = new LineString(cs, worldCd1, worldCd2);

            var lengthType = cs.IsLocal ? LinearLineLengthType.Meter : LinearLineLengthType.Geodetic;

            return(ls.LineLength(lengthType));
        }