[postgis-devel] [PostGIS] #960: Start reducing number of functions by using defaults

Bborie Park bkpark at ucdavis.edu
Wed May 18 06:46:16 PDT 2011


On Wed, May 18, 2011 at 4:51 AM, Sandro Santilli <strk at keybit.net> wrote:
> On Wed, May 18, 2011 at 11:20:12AM -0000, PostGIS wrote:
>> #960: Start reducing number of functions by using defaults
>> ----------------------------+-----------------------------------------------
>>  Reporter:  robe            |       Owner:  pracine
>>      Type:  defect          |      Status:  new
>>  Priority:  medium          |   Milestone:  PostGIS 2.0.0
>> Component:  postgis raster  |     Version:  trunk
>>  Keywords:                  |
>> ----------------------------+-----------------------------------------------
>>
>> Comment(by pracine):
>>
>>  What about:
>>
>>    bytea ST_AsTIFF(raster rast[, text[] options][, text srs]);
>
> Shouldn't it be:
>
>    bytea ST_AsTIFF(raster rast[, text[] options[, text srs]]);
>
> ie: can't specify srs w/out specifying options.
>
> --strk;
>
>  ()   Free GIS & Flash consultant/developer
>  /\   http://strk.keybit.net/services.html
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>

When I wrote that function, I kept the srs outside of the options to
keep in sync with the various GDAL formats' creation options.  Also,
the setting the srs of a GDAL raster is done separately from setting
creation options in the GDAL API, so I felt it best at the time.

-bborie

-- 
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark at ucdavis.edu



More information about the postgis-devel mailing list