public final class Scale
extends java.lang.Object
| Constructor and Description |
|---|
Scale(double denominator,
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi)
Constructor.
|
Scale(double denominator,
DistanceUnit projectionUnit,
double dpi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static Scale |
fromResolution(double resolution)
Construct a scale object from a resolution.
|
double |
getDenominator(boolean geodetic,
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
com.vividsolutions.jts.geom.Coordinate position) |
static double |
getDenominator(boolean geodetic,
double scaleDenominator,
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
com.vividsolutions.jts.geom.Coordinate position) |
double |
getDenominator(org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi) |
double |
getDenominator(DistanceUnit projectionUnit,
double dpi) |
double |
getGeodeticDenominator(org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
com.vividsolutions.jts.geom.Coordinate position) |
static double |
getGeodeticDenominator(double scaleDenominator,
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
com.vividsolutions.jts.geom.Coordinate position) |
double |
getResolution()
Get the resolution.
|
int |
hashCode() |
java.lang.String |
toString() |
public Scale(double denominator,
@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi)
denominator - the scale denominator. a value of 1'000 would be a scale of 1:1'000.projection - the projection.dpi - the DPI on witch the scale is valid.public Scale(double denominator,
@Nonnull
DistanceUnit projectionUnit,
double dpi)
denominator - the scale denominator. a value of 1'000 would be a scale of 1:1'000.projectionUnit - the unit used by the projection.dpi - the DPI on witch the scale is valid.public double getResolution()
public double getDenominator(boolean geodetic,
@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
com.vividsolutions.jts.geom.Coordinate position)
geodetic - geodetic mode.projection - the projection to perform the calculation in.dpi - the dpi of the display device.position - the position on the map.public double getDenominator(@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi)
projection - the projection to perform the calculation indpi - the dpi of the display device.public double getDenominator(@Nonnull
DistanceUnit projectionUnit,
double dpi)
projectionUnit - the projection unitdpi - the dpi of the display device.public double getGeodeticDenominator(@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
com.vividsolutions.jts.geom.Coordinate position)
projection - the projection to perform the calculation indpi - the dpi of the display device.position - the position on the map.public static double getDenominator(boolean geodetic,
double scaleDenominator,
@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
com.vividsolutions.jts.geom.Coordinate position)
geodetic - Do in geodetic.scaleDenominator - the scale denominator.projection - the projection to perform the calculation in.dpi - the dpi of the display device.position - the position on the map.public static double getGeodeticDenominator(double scaleDenominator,
@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
com.vividsolutions.jts.geom.Coordinate position)
scaleDenominator - the scale denominator.projection - the projection to perform the calculation in.dpi - the dpi of the display device.position - the position on the map.public static Scale fromResolution(double resolution)
resolution - the resolution of the mappublic 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