diff --git a/app/derivative_services/geo_derivatives/processors/gdal.rb b/app/derivative_services/geo_derivatives/processors/gdal.rb index f8abb2f6b..008b53b4d 100644 --- a/app/derivative_services/geo_derivatives/processors/gdal.rb +++ b/app/derivative_services/geo_derivatives/processors/gdal.rb @@ -26,7 +26,7 @@ def self.translate(in_path, out_path, _options) # @param options [Hash] creation options def self.warp(in_path, out_path, options) execute "gdalwarp -q -t_srs #{options[:output_srid]} "\ - "\"#{in_path}\" #{out_path} -co TILED=YES -co COMPRESS=NONE" + "\"#{in_path}\" #{out_path} -co COMPRESS=NONE" end # Executes a gdal_translate command. Used to compress @@ -47,11 +47,11 @@ def self.compress(in_path, out_path, options) # @param options [Hash] creation options def self.cloud_optimized_geotiff(in_path, out_path, _options) execute("gdal_translate -q -expand rgb \"#{in_path}\" #{out_path} -ot Byte -of COG "\ - "-a_nodata 256 -co COMPRESS=LZW") + "-a_nodata 256 -co COMPRESS=LZW -co TILING_SCHEME=GoogleMapsCompatible") rescue StandardError # Try without expanding rgb execute("gdal_translate -q \"#{in_path}\" #{out_path} -ot Byte -of COG "\ - "-a_nodata 256 -co COMPRESS=LZW") + "-a_nodata 256 -co COMPRESS=LZW -co TILING_SCHEME=GoogleMapsCompatible") end # Executes a gdal_rasterize command. Used to rasterize vector