osmfilter 0.9

Closes #28463.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2018-05-30 02:08:17 -07:00
parent 2d5f3d9a25
commit 932add116e

View file

@ -2,8 +2,8 @@ class Osmfilter < Formula
desc "Command-line tool to filter OpenStreetMap files for specific tags"
homepage "https://wiki.openstreetmap.org/wiki/Osmfilter"
url "https://gitlab.com/osm-c-tools/osmctools.git",
:tag => "0.8", :revision => "fbf0a0a01624951efd7a7407ee3821fd817acf63"
:tag => "0.9",
:revision => "f341f5f237737594c1b024338f0a2fc04fabdff3"
head "https://gitlab.com/osm-c-tools/osmctools.git"
bottle do
@ -17,8 +17,8 @@ class Osmfilter < Formula
depends_on "autoconf" => :build
resource "pbf" do
url "http://archive.osm-hr.org/albania/20120930-albania.osm.pbf"
sha256 "f907f747e3363020f01e31235212e4376509bfa91b5177aeadccccfe4c97b524"
url "https://download.gisgraphy.com/openstreetmap/pbf/AD.tar.bz2"
sha256 "403d74dd62f7cc59c044965c52e0e0cb8dcf2c01faa205a668e94d7258d89ad1"
end
def install
@ -29,7 +29,7 @@ class Osmfilter < Formula
test do
resource("pbf").stage do
system bin/"osmconvert", "20120930-albania.osm.pbf", "-o=test.o5m"
system bin/"osmconvert", "AD", "-o=test.o5m"
system bin/"osmfilter", "test.o5m",
"--drop-relations", "--drop-ways", "--drop-nodes"
end