29 |
******************************************************************************/ |
******************************************************************************/ |
30 |
package skrueger; |
package skrueger; |
31 |
|
|
|
import java.util.ArrayList; |
|
32 |
import java.util.HashSet; |
import java.util.HashSet; |
33 |
import java.util.List; |
import java.util.List; |
34 |
|
|
35 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
36 |
import org.geotools.feature.NameImpl; |
import org.geotools.feature.NameImpl; |
|
import org.geotools.feature.Feature.NULL; |
|
37 |
import org.opengis.feature.type.AttributeDescriptor; |
import org.opengis.feature.type.AttributeDescriptor; |
38 |
import org.opengis.feature.type.Name; |
import org.opengis.feature.type.Name; |
39 |
|
|
77 |
* be set and will always be interpreted as NULL internally and will usually |
* be set and will always be interpreted as NULL internally and will usually |
78 |
* be ignored. This overcomes the problem, that |
* be ignored. This overcomes the problem, that |
79 |
**/ |
**/ |
80 |
protected final HashSet<Object> nodataValues = new HashSet<Object>(); |
protected HashSet<Object> nodataValues = new HashSet<Object>(); |
81 |
|
|
82 |
/** Translation of the attribute's title **/ |
/** Translation of the attribute's title **/ |
83 |
protected Translation title = new Translation(); |
protected Translation title = new Translation(); |
242 |
amd.setFunctionX(getFunctionX()); |
amd.setFunctionX(getFunctionX()); |
243 |
amd.setFunctionA(getFunctionA()); |
amd.setFunctionA(getFunctionA()); |
244 |
|
|
245 |
for (final Object nodataValue : getNodataValues()) { |
amd.setNodataValues(getNodataValues()); |
|
amd.getNodataValues().add(nodataValue); |
|
|
} |
|
246 |
|
|
247 |
return amd; |
return amd; |
248 |
} |
} |
249 |
|
|
250 |
|
// only to be used by copyTo() |
251 |
|
private void setNodataValues(HashSet<Object> nodataValues2) { |
252 |
|
nodataValues = nodataValues2; |
253 |
|
} |
254 |
|
|
255 |
public Translation getDesc() { |
public Translation getDesc() { |
256 |
return desc; |
return desc; |
257 |
} |
} |