]> git.openstreetmap.org Git - chef.git/commitdiff
dev: Add proj-bin and sync uk_os_OSTN15_NTv2_OSGBtoETRS.tif
authorGrant Slater <github@firefishy.com>
Mon, 31 Oct 2022 19:35:49 +0000 (19:35 +0000)
committerGrant Slater <github@firefishy.com>
Mon, 31 Oct 2022 19:35:49 +0000 (19:35 +0000)
cookbooks/dev/recipes/default.rb

index e48ffd3e0c18516e1fa6b50f155e840b1025a891..7ab10d8f47ed9af1ad5aadad1f0afc954e7ed40a 100644 (file)
@@ -72,6 +72,7 @@ package %w[
   python3-pyproj
   python3-gdal
   gdal-bin
+  proj-bin
   g++
   gcc
   make
@@ -128,6 +129,12 @@ package %w[
   pandoc
 ]
 
+# Add uk_os_OSTN15_NTv2_OSGBtoETRS.tif used for reprojecting OS data
+execute "uk_os_OSTN15_NTv2_OSGBtoETRS.tif" do
+  command "projsync --file uk_os_OSTN15_NTv2_OSGBtoETRS.tif --system-directory"
+  not_if { ::File.exist?("/usr/share/proj/uk_os_OSTN15_NTv2_OSGBtoETRS.tif") }
+end
+
 nodejs_package "svgo"
 
 python_package "geojson" do