| Constructor and Description |
|---|
Scale(double denominator,
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi)
Constructor.
|
Scale(double denominator,
DistanceUnit unit,
double dpi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Scale scale) |
boolean |
equals(java.lang.Object o) |
static Scale |
fromResolution(double resolution,
org.opengis.referencing.crs.CoordinateReferenceSystem projection)
Construct a scale object from a resolution.
|
static Scale |
fromResolution(double resolution,
DistanceUnit projectionUnit)
Construct a scale object from a resolution.
|
double |
getDenominator() |
double |
getDenominator(boolean geodetic,
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
org.locationtech.jts.geom.Coordinate position) |
static double |
getDenominator(boolean geodetic,
double scaleDenominator,
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
org.locationtech.jts.geom.Coordinate position) |
double |
getDenominator(double dpi) |
double |
getGeodeticDenominator(org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
org.locationtech.jts.geom.Coordinate position) |
static double |
getGeodeticDenominator(double scaleDenominator,
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
org.locationtech.jts.geom.Coordinate position) |
double |
getResolution()
Get the resolution in meters.
|
double |
getResolutionInInches()
Get the resolution in inches.
|
DistanceUnit |
getUnit()
Get the scale unit.
|
int |
hashCode() |
Scale |
toResolution(double newResolution)
Construct a scale object from a resolution.
|
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 unit,
double dpi)
denominator - the scale denominator. a value of 1'000 would be a scale of 1:1'000.unit - the unit used by the projection.dpi - the DPI on witch the scale is valid.public static double getDenominator(boolean geodetic,
double scaleDenominator,
@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
org.locationtech.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,
org.locationtech.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, @Nonnull DistanceUnit projectionUnit)
resolution - the resolution of the mapprojectionUnit - the unit used by the projection.public static Scale fromResolution(double resolution, @Nonnull org.opengis.referencing.crs.CoordinateReferenceSystem projection)
resolution - the resolution of the mapprojection - the projection to perform the calculation in.public double getResolution()
public double getResolutionInInches()
public DistanceUnit getUnit()
public double getDenominator(boolean geodetic,
@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
org.locationtech.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(double dpi)
dpi - the dpi of the display device.public double getDenominator()
public double getGeodeticDenominator(@Nonnull
org.opengis.referencing.crs.CoordinateReferenceSystem projection,
double dpi,
org.locationtech.jts.geom.Coordinate position)
projection - the projection to perform the calculation in.dpi - the dpi of the display device.position - the position on the map.public Scale toResolution(double newResolution)
newResolution - the resolution of the mappublic int compareTo(Scale scale)
compareTo in interface java.lang.Comparable<Scale>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