osmosis 0.45 (#6345)

This commit is contained in:
Christian Bäuerlein 2016-11-09 13:07:03 +01:00 committed by Mike McQuaid
parent 34ef12d0e5
commit d86ccdb2bb

View file

@ -1,8 +1,8 @@
class Osmosis < Formula
desc "Command-line OpenStreetMap data processor"
homepage "https://wiki.openstreetmap.org/wiki/Osmosis"
url "http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.44.1.zip"
sha256 "88ea076a9179d61736d3b943f39aa846bc4b52f3911eb09aaa02a72e9f4d44cb"
url "http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.45.zip"
sha256 "d801f1a8806359efe95d604bb8a770294bca6fcaf32b50672d2891487b97c6d1"
bottle :unneeded
@ -13,6 +13,31 @@ class Osmosis < Formula
bin.install "bin/osmosis"
libexec.install %w[lib config script]
end
test do
path = testpath/"test.osm"
path.write <<-EOS.undent
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="CGImap 0.5.8 (30532 thorn-05.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<bounds minlat="49.9363700" minlon="8.9159400" maxlat="49.9371300" maxlon="8.9173800"/>
<node id="4140986569" visible="true" version="1" changeset="38789367" timestamp="2016-04-22T15:17:02Z" user="KartoGrapHiti" uid="57645" lat="49.9369693" lon="8.9163279">
<tag k="bench" v="yes"/>
<tag k="bin" v="yes"/>
<tag k="bus" v="yes"/>
<tag k="highway" v="bus_stop"/>
<tag k="name" v="Bahnhof"/>
<tag k="network" v="RMV"/>
<tag k="public_transport" v="platform"/>
<tag k="shelter" v="yes"/>
<tag k="tactile_paving" v="no"/>
<tag k="wheelchair" v="no"/>
<tag k="wheelchair:description" v="Kein Kasseler Bord"/>
</node>
</osm>
EOS
system("#{bin}/osmosis", "--read-xml", "file=#{path}", "--write-null")
end
end
__END__