comparison artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentDensityArtifact.java @ 7220:7a6cb5b34bfc

issue1435: For Sediment Density Facets, use densities name/description.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 01 Oct 2013 10:06:11 +0200
parents 292330854722
children 5ac4c9119aef
comparison
equal deleted inserted replaced
7219:13f0bdeb2b47 7220:7a6cb5b34bfc
129 List<Facet> fs = new ArrayList<Facet>(); 129 List<Facet> fs = new ArrayList<Facet>();
130 130
131 String code = getDatacageIDValue(data); 131 String code = getDatacageIDValue(data);
132 132
133 if (code != null) { 133 if (code != null) {
134 //String name = SedimentDensityFactory.getSedimentDensityDescription(Integer.valueOf(code)); 134 String name = SedimentDensityFactory.getSedimentDensityDescription(Integer.valueOf(code));
135
136 String name = "facet";
137 135
138 Facet facet = new SedimentDensityFacet( 136 Facet facet = new SedimentDensityFacet(
139 0, 137 0,
140 SEDIMENT_DENSITY, 138 SEDIMENT_DENSITY,
141 name, 139 name,
142 //????
143 ComputeType.ADVANCE, state.getID(), "hash" 140 ComputeType.ADVANCE, state.getID(), "hash"
144 ); 141 );
145 fs.add(facet); 142 fs.add(facet);
146 addFacets(state.getID(), fs); 143 addFacets(state.getID(), fs);
147 addStringData(DATA_ID, code); 144 addStringData(DATA_ID, code);

http://dive4elements.wald.intevation.org