Relationship between the scale and resolution of OpenLayers

Source: Internet
Author: User

1. Scale:

Scale, the ratio of the distance on the graph to the distance on the field. That is, the ratio of the 1 cm you see on the screen to the field distance represented by the 1 cm.

2. Resolution:

Resolution. Each pixel represents the field distance (map units per pixels ).

3. Known map resolution and image resolution calculation scale:

Calculate the scale when the resolution and dpi are known: assume that the resolution of the image is 72 dpi (dpi and ppi are different, dpi corresponds to the output resolution, literally, we can see that one is dots and the other is pixels.

A screen is a piece of paper), and D is used to represent the field distance represented by a meter (one meter on the screen). P indicates the pixel, S indicates the map scale, that is, the ratio of one meter to the field on the map. Assume that the map unit is meter:

The field distance represented by 1 p = R

1 m = 72*39.37007
P, so

The actual distance represented by 1 meter = 72*39.37007 * R

1/(1 meter
Actual distance) = 1/(72*39.37007 * R)

So S = 1/(39.37007*72 * R), which is the relationship between map Scale and Resolution.

Similarly, the resolution can be calculated by the scale.

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.