Opened 10 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:

Change History (6)

comment:1 by Piero Campalani, 10 years ago

Corrige: the uniqueness constraints regard spatial XYZ axes only, not time.

comment:2 by Piero Campalani, 10 years ago

Status: newaccepted

comment:3 by Piero Campalani, 10 years ago

Status: acceptedassigned

comment:4 by Dimitar Misev, 9 years ago

Milestone: 9.110.0

I thought axis type association has been removed from petascope, didn't know we still have this. Deferring to v10

comment:5 by Dimitar Misev, 8 years ago

Cc: Alex Dumitru added
Owner: changed from Piero Campalani to Vlad Merticariu

Not sure if it's still valid?

comment:6 by Bang Pham Huu, 8 years ago

Milestone: 10.09.3
Resolution: fixed
Status: assignedclosed

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).

Note: See TracTickets for help on using tickets.