Show / Hide Table of Contents

Method CalculateScale

| Edit this page View Source

CalculateScale(Polygon?, double)

Calculates the scale at the center of a polygon, at a given pixel size.

Declaration
public static double CalculateScale(Polygon? visibleArea, double unitsPerPixel)
Parameters
Type Name Description
Polygon visibleArea

The area which center the scale will be calculated for.

double unitsPerPixel

The size of a device indepedent pixel in the units of the spatial reference.

Returns
Type Description
double

The MapScale for the center of the view.

Remarks

A pixel is a device independent logical pixel - ie 1/96 inches.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX