end
end
- if data[:processed]
- original = "#{directory}/#{data[:original]}"
- processed = "#{directory}/#{data[:processed]}"
-
- package "gdal-bin"
-
- execute processed do
- action :nothing
- command "ogr2ogr #{processed} #{original}"
- user "tile"
- group "tile"
- subscribes :run, "execute[#{file}]", :immediately
- end
- end
-
execute "#{file}_shapeindex" do
action :nothing
command "find #{directory} -type f -iname '*.shp' -print0 | xargs -0 --no-run-if-empty shapeindex --shape_files"
if data[:refresh]
action :create
use_conditional_get true
+ ignore_failure true
else
action :create_if_missing
end
gem_package "proj4rb"
gem_package "libxml-ruby"
-gem_package "simple-mmap"
remote_directory "/usr/local/lib/site_ruby" do
source "ruby"