[raster] Create functions returning correct pixel size calculations
|Reported by:||dzwarg||Owned by:||dzwarg|
|Priority:||medium||Milestone:||PostGIS Fund Me|
The pixel width returned is the A component of the georeference, and the pixel height returned is the E component of the georeference. When looking closer at rotation, it became apparent that these values aren't truly the pixel width & height, but the X component of width, and the Y component of height, respectively. The B and D components of the georeference are the X component of the height, and the Y component of the width, respectively.
The true pixel with is actually sqrt(A2 + D2), and the true pixel height is actually sqrt(B2 + E2).
Do we want another accessor that returns the component of the georeference, in addition to rt_raster_get_pixel_width, which returns the true pixel width?
Change History (14)
comment:6 by , 13 years ago
|Summary:||[wktraster] Correct pixel size calculations → [raster] Correct pixel size calculations|
follow-up: 8 comment:7 by , 12 years ago
|Milestone:||PostGIS 2.0.0 → PostGIS Raster Future|
|Summary:||[raster] Correct pixel size calculations → [raster] Create functions returning correct pixel size calculations|