Opened 4 years ago

Closed 4 years ago

#648 closed defect (fixed)

Migrate origin to centre of sample-space

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


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 Changed 4 years ago by pcampalani

  • Status changed from new to accepted

comment:2 Changed 4 years ago by pcampalani

  • Resolution set to fixed
  • Status changed from accepted to closed

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 4 years ago by pcampalani (previous) (diff)
Note: See TracTickets for help on using tickets.