exporter hotfix

This commit is contained in:
jywarren
2019-08-14 19:02:54 -04:00
parent f77bef70f8
commit c76748ec33

View File

@@ -254,22 +254,16 @@ class Exporter
maxlon = n.lon if maxlon == nil || n.lon > maxlon maxlon = n.lon if maxlon == nil || n.lon > maxlon
end end
end end
first = true
if ordered != true if ordered != true
# sort by area; this would be overridden by a provided order # sort by area; this would be overridden by a provided order
warpables = placed_warpables.sort{|a,b|b.poly_area <=> a.poly_area} warpables = placed_warpables.sort{|a,b|b.poly_area <=> a.poly_area}
end end
warpables.each do |warpable| warpables.each do |warpable|
geotiffs += ' '+directory+warpable.id.to_s+'-geo.tif' geotiffs += ' '+directory+warpable.id.to_s+'-geo.tif'
if first
gdalwarp = "gdalwarp -s_srs EPSG:3857 -te "+minlon.to_s+" "+minlat.to_s+" "+maxlon.to_s+" "+maxlat.to_s+" "+directory+warpable.id.to_s+'-geo.tif '+directory+slug+'-geo.tif'
first = false
else
gdalwarp = "gdalwarp "+directory+warpable.id.to_s+'-geo.tif '+directory+slug+'-geo.tif'
end
puts gdalwarp
system(self.ulimit+gdalwarp)
end end
gdalwarp = "gdalwarp -s_srs EPSG:3857 -te #{minlon} #{minlat} #{maxlon} #{maxlat} #{geotiffs} #{directory}#{id}.tif"
puts gdalwarp
system(self.ulimit+gdalwarp)
composite_location composite_location
end end