[R-sig-Geo] gdal --config options
Jonathan Greenberg
jgrn at illinois.edu
Tue Oct 7 17:56:45 CEST 2014
(cc'ing r-sig-geo to preserve the answer)
AH, ok, so gdalUtils DOES support this option, in theory. If you look
at the help for gdal_translate, for instance, you can see you can use
the "co" flag. Again, in theory (haven't tested this out) you could
do something like:
gdal_translate(...,co="COMPRESS_OVERVIEW DEFLATE")
Note that all I've done is wrap gdal parameters with R, so anything
GDAL can do, the R wrapper should do as well. If you look at:
http://www.gdal.org/gdal_translate.html
you'll see the "-co" flag listed there. In addition, if there are
ever any functions that are missing from my wrappers, you can pass
them along to the various gdalUtils functions with the
"additional_commands" flag, so you could also have done:
gdal_translate(...,additional_commands="-co COMPRESS_OVERVIEW DEFLATE")
Let me know if this works and, if not, drop a sample file someplace so
I can replicate the problem. Cheers!
--j
On Mon, Sep 29, 2014 at 7:18 AM, Stephen Roecker
<stephen.roecker at outlook.com> wrote:
> I realize gdalwarp doesn't have a config flag, but the raster drivers that
> you can write to from gdalwarp, such as GeoTIFF, do. For example the
> gdaladdo utility help page demonstrates the use of --config to calculate
> comressed overviews (i.e pyramids) for .img files. gdaladdo -ro --config
> COMPRESS_OVERVIEW DEFLATE erdas.img 2 4 8 16 Also the GeoTIFF driver has
> configuration options (--config) such as GTIFF_POINT_GEO_IGNORE
> (http://www.gdal.org/frmt_gtiff.html) to ignore the shift applied to pixels
> defined as AREA. Thus their is some functionality to be gained by specifying
> --config arguements. I'm new to them myself, but am finding some interesting
> options as I did deeper. Thus I would like to know how to using gdalUtils,
> raster, or rgdal to accomplish this. Any example would be appreciated.
> Stephen > Date: Sat, 27 Sep 2014 22:52:19 -0500 > Subject: Re: [R-sig-Geo]
> gdal --config options > From: jgrn at illinois.edu > To:
> stephen.roecker at outlook.com > CC: r-sig-geo at r-project.org > > Stephen: > >
> Can you expand on this a bit? What, exactly, are you trying to do? I > don't
> see a config flag in gdalwarp: > http://www.gdal.org/gdalwarp.html > > --j >
>> On Fri, Sep 26, 2014 at 9:34 AM, Stephen Roecker > wrote: >> I'm using the
> gdaUtils and raster packages and was wondering if it's >> possible to
> specify --config options, using any of their functions >> (e.g. gdalwarp,
> writeRaster, etc)? I've tried accomplishing this using >> the
> additional_commands arguement in gdawarp with no success. Can >> someone
> provide an example? >> >> Stephen >> [[alternative HTML version deleted]] >>
>>> _______________________________________________ >> R-sig-Geo mailing list
>>> R-sig-Geo at r-project.org >>
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo > > > > -- > Jonathan A.
> Greenberg, PhD > Assistant Professor > Global Environmental Analysis and
> Remote Sensing (GEARS) Laboratory > Department of Geography and Geographic
> Information Science > University of Illinois at Urbana-Champaign > 259
> Computing Applications Building, MC-150 > 605 East Springfield Avenue >
> Champaign, IL 61820-6371 > Phone: 217-300-1924 >
> http://www.geog.illinois.edu/~jgrn/ > AIM: jgrn307, MSN:
> jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
--
Jonathan A. Greenberg, PhD
Assistant Professor
Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
Department of Geography and Geographic Information Science
University of Illinois at Urbana-Champaign
259 Computing Applications Building, MC-150
605 East Springfield Avenue
Champaign, IL 61820-6371
Phone: 217-300-1924
http://www.geog.illinois.edu/~jgrn/
AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
More information about the R-sig-Geo
mailing list