Skip to content

Commit 46ce1c4

Browse files
Ian Wagnerclausecker
authored andcommitted
astro/osmium-tool: Command line tool for working with OpenStreetMap data 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
1 parent d0f288a commit 46ce1c4

File tree

5 files changed

+87
-0
lines changed

5 files changed

+87
-0
lines changed

‎astro/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
SUBDIR += opencpn
4444
SUBDIR += openuniverse
4545
SUBDIR += oskar
46+
SUBDIR += osmium-tool
4647
SUBDIR += osmosis
4748
SUBDIR += p5-Astro
4849
SUBDIR += p5-Astro-ADS

‎astro/osmium-tool/Makefile‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
PORTNAME= osmium-tool
2+
DISTVERSIONPREFIX= v
3+
DISTVERSION= 1.15.0
4+
CATEGORIES= astro geography
5+
6+
MAINTAINER= ianthetechie@gmail.com
7+
COMMENT= Command line tool for working with OpenStreetMap data using libosmium
8+
WWW= https://osmcode.org/osmium-tool/
9+
10+
LICENSE= GPLv3
11+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
12+
13+
BUILD_DEPENDS= ${LOCALBASE}/include/osmium/version.hpp:astro/libosmium \
14+
${LOCALBASE}/include/protozero/version.hpp:devel/protozero \
15+
${LOCALBASE}/include/rapidjson/stringbuffer.h:devel/rapidjson \
16+
hs-pandoc>0:textproc/hs-pandoc
17+
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \
18+
libbz2.so:archivers/bzip2 \
19+
libexpat.so:textproc/expat2
20+
21+
USES= cmake:testing
22+
USE_GITHUB= yes
23+
GH_ACCOUNT= osmcode
24+
25+
PORTEXAMPLES= extract-example-config/*
26+
OPTIONS_DEFINE= EXAMPLES LZ4
27+
OPTIONS_DEFAULT= EXAMPLES LZ4
28+
29+
LZ4_CMAKE_ON= -DWITH_LZ4=ON
30+
LZ4_CMAKE_OFF= -DWITH_LZ4=OFF
31+
32+
LZ4_DESC= Build with support for LZ4 compression of PBF files
33+
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
34+
35+
post-install-EXAMPLES-on:
36+
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
37+
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR})
38+
39+
.include <bsd.port.mk>

‎astro/osmium-tool/distinfo‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TIMESTAMP = 1674959777
2+
SHA256 (osmcode-osmium-tool-v1.15.0_GH0.tar.gz) = 0b3be2f07d60dfb93f65d6a9f1af1fc9cf6ef68e5a460997d841c93079c3377b
3+
SIZE (osmcode-osmium-tool-v1.15.0_GH0.tar.gz) = 490366

‎astro/osmium-tool/pkg-descr‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Osmium Tool is a multipurpose command line tool for working with OpenStreetMap
2+
data based on the Osmium library.
3+
4+
With the Osmium Tool you can:
5+
6+
* Get information about an OSM file
7+
* Show the differences between OSM files
8+
* Convert OSM files from one format into another (supports XML, PBF, and more)
9+
* Merge and apply change files to an OSM file (with or without history)
10+
* Create OSM change files from OSM data files
11+
* Extract data from OSM history files for a given point in time or a time range
12+
* Sort OSM files
13+
* Create geographical extracts from OSM files
14+
* Filter OSM files by tags
15+
* Filter changesets by many different criteria
16+
* And much more...

‎astro/osmium-tool/pkg-plist‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
bin/osmium
2+
share/man/man1/osmium-add-locations-to-ways.1.gz
3+
share/man/man1/osmium-apply-changes.1.gz
4+
share/man/man1/osmium-cat.1.gz
5+
share/man/man1/osmium-changeset-filter.1.gz
6+
share/man/man1/osmium-check-refs.1.gz
7+
share/man/man1/osmium-create-locations-index.1.gz
8+
share/man/man1/osmium-derive-changes.1.gz
9+
share/man/man1/osmium-diff.1.gz
10+
share/man/man1/osmium-export.1.gz
11+
share/man/man1/osmium-extract.1.gz
12+
share/man/man1/osmium-fileinfo.1.gz
13+
share/man/man1/osmium-getid.1.gz
14+
share/man/man1/osmium-getparents.1.gz
15+
share/man/man1/osmium-merge-changes.1.gz
16+
share/man/man1/osmium-merge.1.gz
17+
share/man/man1/osmium-query-locations-index.1.gz
18+
share/man/man1/osmium-removeid.1.gz
19+
share/man/man1/osmium-renumber.1.gz
20+
share/man/man1/osmium-show.1.gz
21+
share/man/man1/osmium-sort.1.gz
22+
share/man/man1/osmium-tags-count.1.gz
23+
share/man/man1/osmium-tags-filter.1.gz
24+
share/man/man1/osmium-time-filter.1.gz
25+
share/man/man1/osmium.1.gz
26+
share/man/man5/osmium-file-formats.5.gz
27+
share/man/man5/osmium-index-types.5.gz
28+
share/man/man5/osmium-output-headers.5.gz

0 commit comments

Comments
 (0)