Opened 11 years ago
Closed 8 years ago
#731 closed defect (fixed)
Evaluate removal of axis type knowledge in WCS/WCPS
Reported by: | Piero Campalani | Owned by: | Vlad Merticariu |
---|---|---|---|
Priority: | major | Milestone: | 9.3 |
Component: | petascope | Version: | development |
Keywords: | axis type | Cc: | Peter Baumann, Alex Dumitru |
Complexity: | Medium |
Description
Petascope has always been assigning an type to an axis:
petascopedb_8=# select * from ps_axistype; id | axistype ----+----------- 1 | x 2 | y 3 | temporal 4 | elevation 5 | other 6 | t (6 rows)
Some constraints apply to the overall set of axis types owned by a coverage:
if (previous.getLabel().equals(next.getLabel())) { throw new PetascopeException(ExceptionCode.InvalidMetadata, "Duplicate domain " + "element name encountered for coverage " + coverageName); } if (previous.getType().equals(AxisTypes.ELEV_AXIS) && next.getType().equals(AxisTypes.ELEV_AXIS)) { throw new PetascopeException(ExceptionCode.InvalidMetadata, "Domain can contain" + " at most one elevation axis for coverage " + coverageName); } if (previous.getType().equals(AxisTypes.X_AXIS) && next.getType().equals(AxisTypes.X_AXIS)) { throw new PetascopeException(ExceptionCode.InvalidMetadata, "Domain can contain" + " at most one x axis for coverage " + coverageName); } if (previous.getType().equals(AxisTypes.Y_AXIS) && next.getType().equals(AxisTypes.Y_AXIS)) { throw new PetascopeException(ExceptionCode.InvalidMetadata, "Domain can contain" + " at most one y axis for coverage " + coverageName); }
Going towards n-dimensional datasets, the type of axis can blur (eg using Index CRSs), moreover for instance more than a single time dimension should be possible in the same coverage.
Completely removing the notion of axis type should be evaluated in Petascope. Alternatively the constraints should be relaxed.
Current issues are:
- index CRS (see
*_ALIASES
in applications/petascope/src/main/java/petascope/core/CrsDefinition.java CrsDefinition] class) axes clash with spatial axes so their type should beother
and notx
,y
, etc. - unique time axis constraint should be relaxed.
Change History (6)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Status: | new → accepted |
---|
comment:3 by , 10 years ago
Status: | accepted → assigned |
---|
comment:4 by , 10 years ago
Milestone: | 9.1 → 10.0 |
---|
I thought axis type association has been removed from petascope, didn't know we still have this. Deferring to v10
comment:6 by , 8 years ago
Milestone: | 10.0 → 9.3 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
This ticket can be closed as the problem with contrainst axis does not occur anymore, for example: one can ingest a 5 D coverages (Lat, Long, Time, Ensemble, Forecast) and the axis type is (X, Y, t, other, other).
Corrige: the uniqueness constraints regard spatial XYZ axes only, not time.