public class SymbolUtils extends Object
Constructor and Description |
---|
SymbolUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
getCartographicLength(CartographicSupport cartographicElement,
double length,
ViewPort viewPort,
double dpi)
Calculates the distance in pixels corresponding to the provided length,
according to the current rendering context (output dpi, map scale, map units) and the
symbol cartographic settings (unit, size, and unit reference system).
|
public static double getCartographicLength(CartographicSupport cartographicElement, double length, ViewPort viewPort, double dpi)
cartographicElement
- CartographicSupport object which contains the reference system
and the measuring units for the provided lengthlength
- The length to be computed in pixels. The length is supposed to be
provided in the units defined in the cartographicElementviewPort
- The viewport, which defines the relationship between pixels and maps unitsdpi
- The resolution (dots per inch) of the target display device
(printer, screen, etc)