public class EditGeoServiceUtilities
extends java.lang.Object
EditGeoService
as API for the given functionality.EditGeoService
Constructor and Description |
---|
EditGeoServiceUtilities() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<PresenceAbsenceTerm,java.awt.Color> |
buildStatusColorMap(java.lang.String statusColorJson,
ITermService termService,
IVocabularyService vocabularyService) |
static CondensedDistribution |
getCondensedDistribution(java.util.Collection<Distribution> filteredDistributions,
CondensedDistributionRecipe recipe,
java.util.List<Language> langs) |
static java.lang.String |
getDistributionServiceRequestParameterString(java.util.Collection<Distribution> filteredDistributions,
IGeoServiceAreaMapping mapping,
java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors,
java.lang.String projectToLayer,
java.util.List<Language> languages)
Returns the parameter String for the EDIT geo webservice to create a
distribution map.
|
static OccurrenceServiceRequestParameterDto |
getOccurrenceServiceRequestParameterString(java.util.List<Point> fieldUnitPoints,
java.util.List<Point> derivedUnitPoints,
java.util.Map<SpecimenOrObservationType,java.awt.Color> specimenOrObservationTypeColors) |
public static java.lang.String getDistributionServiceRequestParameterString(java.util.Collection<Distribution> filteredDistributions, IGeoServiceAreaMapping mapping, java.util.Map<PresenceAbsenceTerm,java.awt.Color> presenceAbsenceTermColors, java.lang.String projectToLayer, java.util.List<Language> languages)
distributions
- A set of distributions that should be shown on the map
The DescriptionUtility
class provides a method for
filtering a set of Distributions :
Collection<Distribution> filteredDistributions =
DescriptionUtility.filterDistributions(distributions,
subAreaPreference, statusOrderPreference, hideMarkedAreas);
mapping
- Data regarding the mapping of NamedAreas to shape file
attribute tablespresenceAbsenceTermColors
- A map that defines the colors of PresenceAbsenceTerms. The
PresenceAbsenceTerms are defined by their uuid. If a
PresenceAbsenceTerm is not included in this map, it's default
color is taken instead. If the map == null all terms are
colored by their default color.projectToLayer
- name of a layer which is representing a specific
NamedAreaLevel
Supply this parameter if you to project
all other distribution area levels to this layer.languages
- distributions
set was null or empty.public static OccurrenceServiceRequestParameterDto getOccurrenceServiceRequestParameterString(java.util.List<Point> fieldUnitPoints, java.util.List<Point> derivedUnitPoints, java.util.Map<SpecimenOrObservationType,java.awt.Color> specimenOrObservationTypeColors)
fieldUnitPoints
- derivedUnitPoints
- specimenOrObservationTypeColors
- width
- height
- bbox
- backLayer
- public static java.util.Map<PresenceAbsenceTerm,java.awt.Color> buildStatusColorMap(java.lang.String statusColorJson, ITermService termService, IVocabularyService vocabularyService) throws java.io.IOException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException
statusColorJson
- for example: {"n":"#ff0000","p":"#ffff00"}
vocabularyService
- TODOjava.io.IOException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
public static CondensedDistribution getCondensedDistribution(java.util.Collection<Distribution> filteredDistributions, CondensedDistributionRecipe recipe, java.util.List<Language> langs)
Copyright © 2007-2020 EDIT. All Rights Reserved.