Sharpmap Depth Analysis: Map rendering, coordinates and scale

Source: Internet
Author: User
Tags map class

In the article on the analysis of Sharpmap, a key point is the map of the rendering process and mechanism, here is not specifically to introduce this issue, but the coordinates of some of the details of the problem analysis.

Maps have the concept of a unit, a scale (Zoom), and a projection problem. For unit, it is generally expressed by km, m, or longitude and latitude. A map, in which all the unit and projection of all the data are consistent, when drawing these objects to the map, the coordinates are converted according to the scale; at the same time, the coordinates of the mouse are the coordinate system of the desktop when the map is scaled, moved and picked up. Also want to convert to map coordinate system (commonly called world coordinates system, abbreviation WCS).

First look at the definition of proportions (Zoom) in the map class:

Private double _zoom;

Public double Zoom

{get

{return _zoom;}

set {

if (value < _minimumzoom)

_zoom = _minimumzoom;

else if (value > _maximumzoom)

_zoom = _maximumzoom;

else

_zoom = value;

if (mapviewonchange!= null)

mapviewonchange ();

}

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.