public final class Scale
extends java.lang.Object
| Constructor and Description |
|---|
Scale(double denominator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static Scale |
fromResolution(double resolution,
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi)
Construct a scale object from a resolution.
|
double |
getDenominator() |
int |
hashCode() |
double |
toResolution(org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi)
Calculate the resolution for this scale.
|
java.lang.String |
toString() |
public Scale(double denominator)
denominator - the scale denominator. a value of 1'000 would be a scale of 1:1'000public double getDenominator()
public double toResolution(@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi)
projection - the projection to perform the calculation indpi - the dpi of the display device.public static Scale fromResolution(double resolution, @Nonnull org.opengis.referencing.crs.CoordinateReferenceSystem projection, double dpi)
resolution - the resolution of the mapprojection - the projection of the mapdpi - the dpi of the display device.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object