Skip to content

Commit

Permalink
astro/osmium-tool: Command line tool for working with OpenStreetMap d…
Browse files Browse the repository at this point in the history
…ata using libosmium

Osmium Tool is a multipurpose command line tool for working with OpenStreetMap
data based on the Osmium library.

With the Osmium Tool you can:

* Get information about an OSM file
* Show the differences between OSM files
* Convert OSM files from one format into another (supports XML, PBF, and more)
* Merge and apply change files to an OSM file (with or without history)
* Create OSM change files from OSM data files
* Extract data from OSM history files for a given point in time or a time range
* Sort OSM files
* Create geographical extracts from OSM files
* Filter OSM files by tags
* Filter changesets by many different criteria
* And much more...

WWW: https://osmcode.org/osmium-tool/

PR:		244012
  • Loading branch information
Ian Wagner authored and clausecker committed Aug 13, 2023
1 parent d0f288a commit 46ce1c4
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 0 deletions.
1 change: 1 addition & 0 deletions astro/Makefile
Expand Up @@ -43,6 +43,7 @@
SUBDIR += opencpn
SUBDIR += openuniverse
SUBDIR += oskar
SUBDIR += osmium-tool
SUBDIR += osmosis
SUBDIR += p5-Astro
SUBDIR += p5-Astro-ADS
Expand Down
39 changes: 39 additions & 0 deletions astro/osmium-tool/Makefile
@@ -0,0 +1,39 @@
PORTNAME= osmium-tool
DISTVERSIONPREFIX= v
DISTVERSION= 1.15.0
CATEGORIES= astro geography

MAINTAINER= ianthetechie@gmail.com
COMMENT= Command line tool for working with OpenStreetMap data using libosmium
WWW= https://osmcode.org/osmium-tool/

LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

BUILD_DEPENDS= ${LOCALBASE}/include/osmium/version.hpp:astro/libosmium \
${LOCALBASE}/include/protozero/version.hpp:devel/protozero \
${LOCALBASE}/include/rapidjson/stringbuffer.h:devel/rapidjson \
hs-pandoc>0:textproc/hs-pandoc
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \
libbz2.so:archivers/bzip2 \
libexpat.so:textproc/expat2

USES= cmake:testing
USE_GITHUB= yes
GH_ACCOUNT= osmcode

PORTEXAMPLES= extract-example-config/*
OPTIONS_DEFINE= EXAMPLES LZ4
OPTIONS_DEFAULT= EXAMPLES LZ4

LZ4_CMAKE_ON= -DWITH_LZ4=ON
LZ4_CMAKE_OFF= -DWITH_LZ4=OFF

LZ4_DESC= Build with support for LZ4 compression of PBF files
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4

post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions astro/osmium-tool/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1674959777
SHA256 (osmcode-osmium-tool-v1.15.0_GH0.tar.gz) = 0b3be2f07d60dfb93f65d6a9f1af1fc9cf6ef68e5a460997d841c93079c3377b
SIZE (osmcode-osmium-tool-v1.15.0_GH0.tar.gz) = 490366
16 changes: 16 additions & 0 deletions astro/osmium-tool/pkg-descr
@@ -0,0 +1,16 @@
Osmium Tool is a multipurpose command line tool for working with OpenStreetMap
data based on the Osmium library.

With the Osmium Tool you can:

* Get information about an OSM file
* Show the differences between OSM files
* Convert OSM files from one format into another (supports XML, PBF, and more)
* Merge and apply change files to an OSM file (with or without history)
* Create OSM change files from OSM data files
* Extract data from OSM history files for a given point in time or a time range
* Sort OSM files
* Create geographical extracts from OSM files
* Filter OSM files by tags
* Filter changesets by many different criteria
* And much more...
28 changes: 28 additions & 0 deletions astro/osmium-tool/pkg-plist
@@ -0,0 +1,28 @@
bin/osmium
share/man/man1/osmium-add-locations-to-ways.1.gz
share/man/man1/osmium-apply-changes.1.gz
share/man/man1/osmium-cat.1.gz
share/man/man1/osmium-changeset-filter.1.gz
share/man/man1/osmium-check-refs.1.gz
share/man/man1/osmium-create-locations-index.1.gz
share/man/man1/osmium-derive-changes.1.gz
share/man/man1/osmium-diff.1.gz
share/man/man1/osmium-export.1.gz
share/man/man1/osmium-extract.1.gz
share/man/man1/osmium-fileinfo.1.gz
share/man/man1/osmium-getid.1.gz
share/man/man1/osmium-getparents.1.gz
share/man/man1/osmium-merge-changes.1.gz
share/man/man1/osmium-merge.1.gz
share/man/man1/osmium-query-locations-index.1.gz
share/man/man1/osmium-removeid.1.gz
share/man/man1/osmium-renumber.1.gz
share/man/man1/osmium-show.1.gz
share/man/man1/osmium-sort.1.gz
share/man/man1/osmium-tags-count.1.gz
share/man/man1/osmium-tags-filter.1.gz
share/man/man1/osmium-time-filter.1.gz
share/man/man1/osmium.1.gz
share/man/man5/osmium-file-formats.5.gz
share/man/man5/osmium-index-types.5.gz
share/man/man5/osmium-output-headers.5.gz

0 comments on commit 46ce1c4

Please sign in to comment.