Mercurial > dive4elements > river
changeset 7848:693778752ee7
Handle porosity facets in a processor.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 30 Apr 2014 15:22:27 +0200 |
parents | a95f1265da8e |
children | 546a6318f681 |
files | artifacts/src/main/java/org/dive4elements/river/exports/process/BedQualityPorosityProcessor.java |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedQualityPorosityProcessor.java Wed Apr 30 15:20:41 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedQualityPorosityProcessor.java Wed Apr 30 15:22:27 2014 +0200 @@ -20,6 +20,7 @@ import org.dive4elements.river.themes.ThemeDocument; import org.dive4elements.river.artifacts.model.minfo.BedParametersResult; +import org.dive4elements.river.artifacts.model.minfo.Porosity; public class BedQualityPorosityProcessor extends DefaultProcessor { @@ -48,6 +49,8 @@ points = ((BedParametersResult) data).getPorosityCapData(); } else if (facetName.equals(FacetTypes.BED_QUALITY_POROSITY_SUBLAYER)) { points = ((BedParametersResult) data).getPorositySubData(); + } else if (facetName.equals(FacetTypes.POROSITY)) { + points = ((Porosity)data).getAsArray(); } else { logger.error("Unknown facet name: " + facetName); return; @@ -60,7 +63,8 @@ @Override public boolean canHandle(String facettype) { return facettype.equals(FacetTypes.BED_QUALITY_POROSITY_TOPLAYER) || - facettype.equals(FacetTypes.BED_QUALITY_POROSITY_SUBLAYER); + facettype.equals(FacetTypes.BED_QUALITY_POROSITY_SUBLAYER) || + facettype.equals(FacetTypes.POROSITY); } @Override