Opened 15 years ago

Closed 15 years ago

#489 closed defect (invalid)

[wktraster] ST_PixelSizeY sometimes gives negative answers

Reported by: robe Owned by: pracine
Priority: medium Milestone: WKTRaster 0.1.6
Component: raster Version: master
Keywords: Cc:

Description

Started to integrate WKT Raster in doco and came across this strange thing: where I get -0.5 for pixel size y

http://www.postgis.org/documentation/manual-svn/RT_ST_PixelSizeY.html

This is using this which are excerpted from regress examples

http://www.postgis.org/documentation/manual-svn/RT_reference.html

Change History (3)

comment:1 by robe, 15 years ago

Summary: ST_PixelSizeY sometimes gives negative answers[wktraster] ST_PixelSizeY sometimes gives negative answers

comment:2 by Mike Taves, 15 years ago

Granted I don't know much about wktraster, this seems normal to me since a Y-pixel size is a unit vector, not an absolute value. The negative implies that that increments in Y-pixels are in the opposite direction to the Northings, which is normal since rasters have an origin in the upper-left corner and increment downwards while northings increment upwards—therefore a negative vector is required.

This metric in an ESRI World File is typically negative; see line 4:

comment:3 by robe, 15 years ago

Resolution: invalid
Status: newclosed

That makes sense to me. I'm closing this off as a non-issue then.

Note: See TracTickets for help on using tickets.