/*
  * Future work:  Add transformation support from one datum & projection to another.
  * This will become very important with upcoming support for geometric shapes and other,
  * non-WGS WMS data providers.  Currently, all sources are in WGS, so default to Virtual
  * Earth's WGS Mercator Projection
  */
 /// <summary>
 /// Convert a logic point to a Geographical Point (longitude, latitude) for the specified spatial reference.
 /// </summary>
 /// <param name="srs">The spatial reference to use</param>
 /// <param name="logicalPoint">Logical Point</param>
 /// <returns>Geographical Point (longitude, latitude)</returns>
 public Point LogicalToGeographic(ISpatialReference srs, Point logicalPoint)
 {
     return srs.LogicalToGeographic(logicalPoint);
 }
Exemple #2
0
        /*
         * Future work:  Add transformation support from one datum & projection to another.
         * This will become very important with upcoming support for geometric shapes and other,
         * non-WGS WMS data providers.  Currently, all sources are in WGS, so default to Virtual
         * Earth's WGS Mercator Projection
         */

        /// <summary>
        /// Convert a logic point to a Geographical Point (longitude, latitude) for the specified spatial reference.
        /// </summary>
        /// <param name="srs">The spatial reference to use</param>
        /// <param name="logicalPoint">Logical Point</param>
        /// <returns>Geographical Point (longitude, latitude)</returns>
        public Point LogicalToGeographic(ISpatialReference srs, Point logicalPoint)
        {
            return(srs.LogicalToGeographic(logicalPoint));
        }