@Service @Transactional(readOnly=true) public class EditGeoService extends java.lang.Object implements IEditGeoService
Constructor and Description |
---|
EditGeoService() |
Modifier and Type | Method and Description |
---|---|
DistributionInfoDTO |
composeDistributionInfoFor(java.util.EnumSet<DistributionInfoDTO.InfoPart> parts,
java.util.UUID taxonUUID,
boolean subAreaPreference,
boolean statusOrderPreference,
java.util.Set<MarkerType> hiddenAreaMarkerTypes,
java.util.Set<NamedAreaLevel> omitLevels,
java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors,
java.util.List<Language> languages,
java.util.List<java.lang.String> propertyPaths,
CondensedDistributionRecipe recipe,
DistributionOrder distributionOrder) |
CondensedDistribution |
getCondensedDistribution(java.util.List<TaxonDescription> taxonDescriptions,
boolean statusOrderPreference,
java.util.Set<MarkerType> hideMarkedAreas,
MarkerType fallbackAreaMarkerType,
CondensedDistributionRecipe recipe,
java.util.List<Language> langs) |
CondensedDistribution |
getCondensedDistribution(java.util.Set<Distribution> distributions,
boolean statusOrderPreference,
java.util.Set<MarkerType> hideMarkedAreas,
MarkerType fallbackAreaMarkerType,
CondensedDistributionRecipe recipe,
java.util.List<Language> langs) |
java.lang.String |
getDistributionServiceRequestParameterString(java.util.List<TaxonDescription> taxonDescriptions,
boolean subAreaPreference,
boolean statusOrderPreference,
java.util.Set<MarkerType> hideMarkedAreas,
java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors,
java.util.List<Language> langs)
Retrieve a parameter string to pass to an EditGeoService endpoint
The endpoint will deliver a a map generated by the Edit Geo Service for the given
TaxonDescription |
java.lang.String |
getDistributionServiceRequestParameterString(java.util.Set<Distribution> distributions,
boolean subAreaPreference,
boolean statusOrderPreference,
java.util.Set<MarkerType> hideMarkedAreas,
java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors,
java.util.List<Language> langs) |
java.lang.String |
getDistributionServiceRequestParameterString(TaxonDescription taxonDescription,
boolean subAreaPreference,
boolean statusOrderPreference,
java.util.Set<MarkerType> hideMarkedAreas,
java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors,
java.util.List<Language> langs)
Deprecated.
|
OccurrenceServiceRequestParameterDto |
getOccurrenceServiceRequestParameterString(java.util.List<SpecimenOrObservationBase> specimensOrObersvations,
java.util.Map<SpecimenOrObservationType,java.awt.Color> specimenOrObservationTypeColors) |
java.util.Map<NamedArea,java.lang.String> |
mapShapeFileToNamedAreas(java.io.Reader csvReader,
java.util.List<java.lang.String> idSearchFields,
java.lang.String wmsLayerName,
java.util.UUID areaVocabularyUuid,
java.util.Set<java.util.UUID> namedAreaUuids)
Reads csv data containing the attributes from a shape file and adds the
shapefile data to each area in the given set of
NamedAreas . |
void |
setMapping(NamedArea area,
GeoServiceArea geoServiceArea)
Adds an area mapping (CDM area -> geo service area).
|
public static final Logger logger
public java.lang.String getDistributionServiceRequestParameterString(java.util.List<TaxonDescription> taxonDescriptions, boolean subAreaPreference, boolean statusOrderPreference, java.util.Set<MarkerType> hideMarkedAreas, java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors, java.util.List<Language> langs)
IEditGeoService
TaxonDescription
getDistributionServiceRequestParameterString
in interface IEditGeoService
taxonDescriptions
- A List of TaxonDescription
holding the distribution datasubAreaPreference
- enables the Sub area preference rule if set to true,
see DescriptionUtility#filterDistributions(Collection, boolean, boolean
statusOrderPreference
- enables the Status order preference rule if set to true,
see DescriptionUtility#filterDistributions(Collection, boolean, boolean
hideMarkedAreas
- distributions where the area has a Marker
with one of
the specified MarkerType
s will be skipped, see
DescriptionUtility#filterDistributions(Collection, boolean, boolean, Set)
presenceAbsenceTermColors
- A map that classifies which PresenceAbsenceTermBase
should
be assigned which Color
public java.lang.String getDistributionServiceRequestParameterString(java.util.Set<Distribution> distributions, boolean subAreaPreference, boolean statusOrderPreference, java.util.Set<MarkerType> hideMarkedAreas, java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors, java.util.List<Language> langs)
getDistributionServiceRequestParameterString
in interface IEditGeoService
subAreaPreference
- enables the Sub area preference rule if set to true,
see DescriptionUtility#filterDistributions(Collection, boolean, boolean
statusOrderPreference
- enables the Status order preference rule if set to true,
see DescriptionUtility#filterDistributions(Collection, boolean, boolean
@Deprecated public java.lang.String getDistributionServiceRequestParameterString(TaxonDescription taxonDescription, boolean subAreaPreference, boolean statusOrderPreference, java.util.Set<MarkerType> hideMarkedAreas, java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors, java.util.List<Language> langs)
IEditGeoService
TaxonDescription
getDistributionServiceRequestParameterString
in interface IEditGeoService
taxonDescription
- The TaxonDescription
holding the distribution datasubAreaPreference
- enables the Sub area preference rule if set to true,
see DescriptionUtility#filterDistributions(Collection, boolean, boolean
statusOrderPreference
- enables the Status order preference rule if set to true,
see DescriptionUtility#filterDistributions(Collection, boolean, boolean
hideMarkedAreas
- distributions where the area has a Marker
with one of
the specified MarkerType
s will be skipped, see
DescriptionUtility#filterDistributions(Collection, boolean, boolean, Set)
presenceAbsenceTermColors
- A map that classifies which PresenceAbsenceTermBase
should
be assigned which Color
public OccurrenceServiceRequestParameterDto getOccurrenceServiceRequestParameterString(java.util.List<SpecimenOrObservationBase> specimensOrObersvations, java.util.Map<SpecimenOrObservationType,java.awt.Color> specimenOrObservationTypeColors)
getOccurrenceServiceRequestParameterString
in interface IEditGeoService
public CondensedDistribution getCondensedDistribution(java.util.List<TaxonDescription> taxonDescriptions, boolean statusOrderPreference, java.util.Set<MarkerType> hideMarkedAreas, MarkerType fallbackAreaMarkerType, CondensedDistributionRecipe recipe, java.util.List<Language> langs)
public CondensedDistribution getCondensedDistribution(java.util.Set<Distribution> distributions, boolean statusOrderPreference, java.util.Set<MarkerType> hideMarkedAreas, MarkerType fallbackAreaMarkerType, CondensedDistributionRecipe recipe, java.util.List<Language> langs)
getCondensedDistribution
in interface IEditGeoService
statusOrderPreference
- see DescriptionUtility#filterDistributions(Collection, boolean, boolean, Set)
public void setMapping(NamedArea area, GeoServiceArea geoServiceArea)
IEditGeoService
setMapping
in interface IEditGeoService
@Transactional(readOnly=false) public java.util.Map<NamedArea,java.lang.String> mapShapeFileToNamedAreas(java.io.Reader csvReader, java.util.List<java.lang.String> idSearchFields, java.lang.String wmsLayerName, java.util.UUID areaVocabularyUuid, java.util.Set<java.util.UUID> namedAreaUuids) throws java.io.IOException
IEditGeoService
NamedAreas
. The
way this data it attached to the areas is specific to the
IGeoServiceAreaMapping
implementation. It is recommended to
create csv file directly from the original shape file by making use of
the org2ogr
command which is contained in the gdal tools:
ogr2ogr -f csv out.csv input_shape_file.shp
mapShapeFileToNamedAreas
in interface IEditGeoService
idSearchFields
- An ordered list column names in the the csv file to be
imported. These columns will be used to search for the
IdInVocabulary
of each
areaareaVocabularyUuid
- , can be NULL
. The NamedAreas contained in this
vocabulary will be combined with areas defined in the
namedAreaUuids
namedAreaUuids
- a set of UUIDS for NamedArea
. Can be NULL
.
Will be combined with the vocabulary if the
areaVocabularyUuid
is also given.java.io.IOException
public DistributionInfoDTO composeDistributionInfoFor(java.util.EnumSet<DistributionInfoDTO.InfoPart> parts, java.util.UUID taxonUUID, boolean subAreaPreference, boolean statusOrderPreference, java.util.Set<MarkerType> hiddenAreaMarkerTypes, java.util.Set<NamedAreaLevel> omitLevels, java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors, java.util.List<Language> languages, java.util.List<java.lang.String> propertyPaths, CondensedDistributionRecipe recipe, DistributionOrder distributionOrder)
composeDistributionInfoFor
in interface IEditGeoService
subAreaPreference
- see DescriptionUtility#filterDistributions(Collection, boolean, boolean, Set)
statusOrderPreference
- see DescriptionUtility#filterDistributions(Collection, boolean, boolean, Set)
hiddenAreaMarkerTypes
- see DescriptionUtility#filterDistributions(Collection, boolean, boolean, Set)
omitLevels
- see DescriptionUtility#orderDistributions(Set, Collection)
Copyright © 2007-2020 EDIT. All Rights Reserved.