Opened 10 years ago

Closed 10 years ago

#648 closed defect (fixed)

Migrate origin to centre of sample-space

Reported by: Piero Campalani Owned by: Piero Campalani
Priority: critical Milestone: 9.0
Component: applications Version: development
Keywords: origin centre sample size pixel Cc:
Complexity: Easy

Description

Coverage encoding in petascopedb puts the origin in the centre of the sample space of a grid point, as by OGC/ISO recommendations.

Migration of existing pre-v9 coverages must follow this rule, hence shifting coordinates in ps_domain by half-pixel.

Change History (2)

comment:1 by Piero Campalani, 10 years ago

Status: newaccepted

comment:2 by Piero Campalani, 10 years ago

Resolution: fixed
Status: acceptedclosed

Origin shifted by half pixel for axis which are not referenced by CRS:1 and are not of type t: in the old database it could happen that a temporal axis had (wrongly) CRS:1 reference system, whereas Petascope was assuming ANSI date.
When migrating a t axis, OGC:AnsiDate is assigned, hence not an indexed CRS. This means that t axes do have a sample footprint (of 1 day), and time origin in the new database needs to be shifted to the centre of the day.
See changeset:14b6a32.

Last edited 10 years ago by Piero Campalani (previous) (diff)
Note: See TracTickets for help on using tickets.