Opened 9 years ago
Closed 9 years ago
#1133 closed defect (fixed)
inserting mulitband file with > 128 bands causes validation error
Reported by: | Vlad Merticariu | Owned by: | Vlad Merticariu |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | undecided | Version: | development |
Keywords: | Cc: | ||
Complexity: | Medium |
Description
There are 2 requests sent, one that establishes the coverage, containing 1 point, that succeeds. The second one updates the coverage with the actual data, and it fails.
The problem is in the validator, before making any changes to the coverage it makes sure that the metadata (which includes the number of fields, or bands) stays the same.
Looking into the code I see that this is done using this line:
check if the coverages have the same number of bands
if(currentCoverage.getNumberOfBands() != inputCoverage.getNumberOfBands()){
The method return boxed ints, aka Integer objects, so equality of the 2 objects is never met with "==" (it works for Integers smaller than 128 because java automatically casts them to int).
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Vlad: your patch was accepted, so I will close ticket here.
An exception from wcst_import will help for understanding also