net.simplace.util.service.AtlasHelper
Version: 1.0
This class provides helper methods to get compatibility with the
IMPETUS Atlas package.
public class AtlasHelper {
// Public Constructors
public AtlasHelper();
// Constants
public static final ColorBrewer COLOR_BREWER;
public static final BrewerPalette BREWER_PAL_ORANGES;
public static final BrewerPalette BREWER_PAL_BLUES;
public static final BrewerPalette BREWER_PAL_SPECTRAL;
public static final BrewerPalette BREWER_PAL_YOR;
// Class Methods public static AtlasConfig getAtlasConfig() throws AtlasException,
IOException;
get static AtlasConfig - only avaliable once in Framework Client
returns static AtlasConfig
public static void
translateRasterLegendData(RasterLegendData aRld);
Replaces the default translations of a de.schmitzm.geotools.data.rld.RasterLegendData
with the ISDSS translation. This method assumes that the current
(default) translation of the de.schmitzm.geotools.data.rld.RasterLegendData contains a key
value to the ISDSS translation map.
- aRld a raster's legend data
public static void
translateRasterLegendData(RasterLegendData aRld, String
aLocaleBundle);
Replaces the default translations of a de.schmitzm.geotools.data.rld.RasterLegendData
with the ISDSS translation. This method assumes that the current
(default) translation of the de.schmitzm.geotools.data.rld.RasterLegendData contains a key
value to the ISDSS translation map.
- aRld a raster's legend data
- aLocaleBundle locale bundle to translate from (can be {@code null})
public static void
translateAttributeMetadata(AttributeMetadataInterface
aAmd);
Replaces the default translations of a de.schmitzm.geotools.data.amd.AttributeMetadataInterface
with the ISDSS translation. This method assumes that the current
(default) translation of the de.schmitzm.geotools.data.amd.AttributeMetadataInterface contains a key
value to the ISDSS translation map.
- aAmd an attributes meta data
public static void
translateAttributeMetadata(AttributeMetadataInterface
aAmd, String aLocaleBundle);
Replaces the default translations of a de.schmitzm.geotools.data.amd.AttributeMetadataInterface
with the ISDSS translation. This method assumes that the current
(default) translation of the de.schmitzm.geotools.data.amd.AttributeMetadataInterface contains a key
value to the ISDSS translation map.
- aAmd an attributes meta data
- aLocaleBundle locale bundle to translate from (can be {@code null})
public static void
translateAttributeMetadata(AttributeMetadataMap aAmdMap);
Replaces the default translations of a de.schmitzm.geotools.data.amd.AttributeMetadataInterface map
with the ISDSS translation. This method assumes that the current
(default) translation of the de.schmitzm.geotools.data.amd.AttributeMetadataInterface contains a key
value to the ISDSS translation map.
- aAmdMap
- aAmd attribute meta data
public static void
translateAttributeMetadata(AttributeMetadataMap aAmdMap,
String aLocaleBundle);
Replaces the default translations of a de.schmitzm.geotools.data.amd.AttributeMetadataInterface map
with the ISDSS translation. This method assumes that the current
(default) translation of the de.schmitzm.geotools.data.amd.AttributeMetadataInterface contains a key
value to the ISDSS translation map.
- aAmdMap
- aAmd attribute meta data
- aLocaleBundle locale bundle to translate from (can be {@code null})
public static String
translateByLocaleProvider(String aTranslationKey);
Translates a String according to the ISDSS
net.simplace.util.service.LocaleProvider.
- aTranslationKey the key for referencing the {@link LocaleProvider}
returns {@code aTranslationKey}, if no translation value found in {@link LocaleProvider}
public static String
translateByLocaleProvider(String aLocaleBundle, String
aTranslationKey);
Translates a String according to the ISDSS
net.simplace.util.service.LocaleProvider.
- aTranslationKey the key for referencing the {@link LocaleProvider}
- aLocaleBundle locale bundle to translate from (can be {@code null})
returns {@code aTranslationKey}, if no translation value found in {@link LocaleProvider}
public static Map
initAtlasMapFromParameters(
FWAtlasMapPanel aMapPanel, Map
aInputParameterMap, Map aParameterMap, String aSystemID);
Initializes a
net.simplace.ui.panel.FWAtlasMapPanel with maps, which are located in a
parameter map. The following parameters in aInputParameterMap are
supported:
map.[orderID.].mapKey
:
mapKey references a raster or vector object in the
aParameterMap (or an array, java.util.Collection or java.util.Map
of those objects). The optional orderID is used to order
the layers. The map with the lowest ID is shown on top. The value
of the parameter contains a localization reference for a (short)
description of the map layer.
mapStyle.mapKey
(optional):
The parameters value references a map style located in the global ISDSS
parameters, which is forced for the map layer specified by
mapKey.
- mapLayerListSize (optional):
Width (in pixels) the layer list component gains. The special value
invisible indicates that the layer list becomes totally invisible.
- aMapPanel atlas map panel which is filled with maps
- aInputParameterMap contains the upper mentioned parameters to
configure the map panel
- aParameterMap contains the map objects (if {@code null},
{@code aInputParameterMap} is used also for the maps)
- aSystemID used to localize the layer descriptions
returns every "map."-key with the generated {@link StyledLayerInterface}
public static StyledLayerStyle
createSLDFeatureStyledLayerStyleFromElement(
Element aStyleElement, String aLocaleBundle);
returns StyledLayerStyle
public static StyledLayerStyle
createSLDGridStyledLayerStyleFromElement(
Element tStyleElement, String aLocaleBundle);
returns StyledLayerStyle
public static void
exportLayers(Component aParent,
FWAtlasMapPanel aMapPanel);
Opens an file chooser dialog for each displayed layer in a
net.simplace.ui.panel.FWAtlasMapPanel
(beginning with the top layer) to export the feature collection or raster to file.
- aParent parent component for dialogs
- aMapPanel map panel which layers are exported
public static Style
createQuantileStyle(Object aFeatureObject, String aAttr,
int aClassCount, Integer aDigits, String aPaletteName);
Creates a SLD Style for a given feature object by using Qualtiles.
- aFeatureObject the {@link FeatureCollection} or {@link FeatureSource} the Style is generated for
- aAttr the feature attribute used to determine the quantile intervals
- aClassCount the count of intervals which are created
- aDigits number of digits the quantile interval breaks are rounded to
(negative values means round to digits BEFORE comma; {@code null}
means no round)
- aPaletteName the name of the color palette
public static Style
createQuantileStyle(Object aFeatureObject, String aAttr,
int aClassCount, Integer aDigits, BrewerPalette aPalette);
Creates a SLD Style for a given feature object by using Qualtiles.
- aFeatureObject the {@link FeatureCollection} or {@link FeatureSource} the Style is generated for
- aAttr the feature attribute used to determine the quantile intervals
- aClassCount the count of intervals which are created
- aDigits number of digits the quantile interval breaks are rounded to
(negative values means round to digits BEFORE comma; {@code null}
means no round)
- aPalette the color palette
public static StyledFeatureCollectionInterface
createQuantileStyledFeatureCollection(FeatureCollection
aFeatureCollection, String aAttr, int aClassCount, Integer aDigits,
BrewerPalette aPalette, String aTitle);
Creates a quantile styled FeatureCollection.
- aFeatureCollection FeatureCollection to style
- aAttr Attribute of the FeatureCollection to determine the quantile intervals for
- aClassCount count of quantile intervals
- aDigits number of digits the quantile interval breaks are rounded to
(negative values means round to digits BEFORE comma; {@code null}
means no round)
- aPalette palette to colorize the quantile intervals
- aTitle title of the FeatureCollection (used for the legend)
public static StyledLayerStyle
createQuantileFeatureStyledLayerStyleFromElement(Object aFeatureObject,
Element aStyleElement, String aLocaleBundle);
Creates a quantile style for a feature object.
- aFeatureObject {@link FeatureCollection} or {@link FeatureSource} to style
- aStyleElement containing information: aAttr Attribute of the FeatureCollection to determine the quantile intervals for
- aLocaleBundle used to localize the style legend
public static StyledLayerStyle
createDiscreteGridStyledLayerStyleFromElement(
Object aGridObject, Element aStyleElement, String aLocaleBundle);
Creates a discrete style for a given raster object.
- aGridObject {@link GridCoverage2D} or {@link AbstractGridCoverage2DReader} to style
- aStyleElement containing information
public static StyledLayerStyle
createInterpolativeGridStyledLayerStyleFromElement(Object aGridObject,
Element aStyleElement, String aLocaleBundle);
Creates as interpolated style for a given raster object.
- aGridObject {@link GridCoverage2D} or {@link AbstractGridCoverage2DReader} to style
- aStyleElement containing information
}