[postgis-devel] [PostGIS] #1267: [raster] Add manual height/weight support to ST_Resample
PostGIS
trac at osgeo.org
Mon Nov 7 09:19:10 PST 2011
#1267: [raster] Add manual height/weight support to ST_Resample
----------------------------+-----------------------------------------------
Reporter: serveralex | Owner: pracine
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS Raster Future
Component: postgis raster | Version: trunk
Keywords: |
----------------------------+-----------------------------------------------
Comment(by pracine):
Resampling a raster to the dimensions of another raster does not make much
sense to me.
You might want to align a raster to another one in which case you need to
borrow its scales, its skew and its upperleft corner to determine the new
grid on which to align the new resampled raster. We offer the possibility
to borrow them from another raster because they are generally cumbersome
to write by hand. You may also want to explicitly pass those parameters.
You may want to explicitly pass a new width and a new height for the
resampled raster but since a height and a width are generally easy to
write (being integers) it seems useless to have the possibility to get
them from another raster. This is also a dangerous operation to do on the
many rasters of a single table as you might end with rasters having
different pixel size. Always better to specify pixel size.
I would prefer the addition of a new signature accepting width and height
than having one borrowing of dimensions from another raster.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1267#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list