1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
3 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
4 ;;; Copyright © 2017, 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
5 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
6 ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
8 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
9 ;;; Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
10 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
12 ;;; This file is part of GNU Guix.
14 ;;; GNU Guix is free software; you can redistribute it and/or modify it
15 ;;; under the terms of the GNU General Public License as published by
16 ;;; the Free Software Foundation; either version 3 of the License, or (at
17 ;;; your option) any later version.
19 ;;; GNU Guix is distributed in the hope that it will be useful, but
20 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 ;;; GNU General Public License for more details.
24 ;;; You should have received a copy of the GNU General Public License
25 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
27 (define-module (gnu packages geo)
28 #:use-module (guix build-system cmake)
29 #:use-module (guix build-system glib-or-gtk)
30 #:use-module (guix build-system gnu)
31 #:use-module (guix build-system go)
32 #:use-module (guix build-system python)
33 #:use-module (guix build-system scons)
34 #:use-module (guix build-system r)
35 #:use-module (guix download)
36 #:use-module (guix git-download)
37 #:use-module ((guix licenses) #:prefix license:)
38 #:use-module (guix packages)
39 #:use-module (guix utils)
40 #:use-module (gnu packages autotools)
41 #:use-module (gnu packages boost)
42 #:use-module (gnu packages check)
43 #:use-module (gnu packages compression)
44 #:use-module (gnu packages databases)
45 #:use-module (gnu packages datastructures)
46 #:use-module (gnu packages documentation)
47 #:use-module (gnu packages fontutils)
48 #:use-module (gnu packages glib)
49 #:use-module (gnu packages gnome)
50 #:use-module (gnu packages gtk)
51 #:use-module (gnu packages image)
52 #:use-module (gnu packages icu4c)
53 #:use-module (gnu packages lua)
54 #:use-module (gnu packages pcre)
55 #:use-module (gnu packages perl)
56 #:use-module (gnu packages pkg-config)
57 #:use-module (gnu packages protobuf)
58 #:use-module (gnu packages python)
59 #:use-module (gnu packages python-xyz)
60 #:use-module (gnu packages sqlite)
61 #:use-module (gnu packages web)
62 #:use-module (gnu packages webkit)
63 #:use-module (gnu packages wxwidgets)
64 #:use-module (gnu packages xml))
72 (uri (string-append "http://download.osgeo.org/geos/geos-"
77 "1312m02xk4sp6f1xdpb9w0ic0zbxg90p5y66qnwidl5fksscf1h0"))))
78 (build-system gnu-build-system)
80 (modify-phases %standard-phases
82 'unpack 'patch-test-shebangs
84 (substitute* '("tests/xmltester/testrunner.sh"
85 "tests/geostest/testrunner.sh")
86 (("/bin/sh") (which "sh")))
90 (home-page "https://geos.osgeo.org/")
91 (synopsis "Geometry Engine for Geographic Information Systems")
93 "GEOS provides a spatial object model and fundamental geometric
94 functions. It is a C++ port of the Java Topology Suite (JTS). As such,
95 it aims to contain the complete functionality of JTS in C++. This
96 includes all the OpenGIS Simple Features for SQL spatial predicate
97 functions and spatial operators, as well as specific JTS enhanced
99 (license (list license:lgpl2.1+ ; Main distribution.
100 license:zlib ; tests/xmltester/tinyxml/*
101 license:public-domain)))) ; include/geos/timeval.h
103 (define-public gnome-maps
109 (uri (string-append "mirror://gnome/sources/" name "/"
110 (version-major+minor version) "/"
111 name "-" version ".tar.xz"))
114 "1yzi08a9316jplgsl2z0qzlqxhghyqcjhv0m6i94wcain4mxk1z7"))))
115 (build-system glib-or-gtk-build-system)
117 `(#:configure-flags ;; Ensure that geoclue is referred to by output.
118 (list (string-append "LDFLAGS=-L"
119 (assoc-ref %build-inputs "geoclue") "/lib")
120 (string-append "CFLAGS=-I"
121 (assoc-ref %build-inputs "geoclue") "/include"))
123 (modify-phases %standard-phases
124 (add-after 'install 'wrap
125 (lambda* (#:key inputs outputs #:allow-other-keys)
126 (let ((out (assoc-ref outputs "out"))
127 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
128 (goa-path (string-append
129 (assoc-ref inputs "gnome-online-accounts")
131 (webkitgtk-path (string-append
132 (assoc-ref inputs "webkitgtk")
134 (wrap-program (string-append out "/bin/gnome-maps")
135 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
137 ;; There seems to be no way to embed the path of
138 ;; libgoa-1.0.so.0, libwebkit2gtk-4.0.so.37 and
139 ;; libjavascriptcoregtk-4.0.so.18.
140 `("LD_LIBRARY_PATH" ":" prefix (,goa-path ,webkitgtk-path)))
143 `(("gobject-introspection" ,gobject-introspection)
144 ("intltool" ,intltool)
145 ("pkg-config" ,pkg-config)))
148 ("libchamplain" ,libchamplain)
150 ("libsecret" ,libsecret)
152 ("libgweather" ,libgweather)
154 ("gdk-pixbuf" ,gdk-pixbuf)
155 ("glib-networking" ,glib-networking)
157 ("geocode-glib" ,geocode-glib)
158 ("gfbgraph" ,gfbgraph)
161 ("gnome-online-accounts" ,gnome-online-accounts)
162 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
164 ("webkitgtk" ,webkitgtk)))
167 (synopsis "Graphical map viewer and wayfinding program")
168 (description "GNOME Maps is a graphical map viewer. It uses map data from
169 the OpenStreetMap project. It can provide directions for walking, bicycling,
171 (home-page "https://wiki.gnome.org/Apps/Maps")
172 (license license:gpl2+)))
174 (define-public libgaiagraphics
176 (name "libgaiagraphics")
181 (uri (string-append "https://www.gaia-gis.it/gaia-sins/libgaiagraphics-"
185 "076afqv417ag3hfvnif0qc7qscmnq1dsf6y431yygwgf34rjkayc"))))
186 (build-system gnu-build-system)
188 `(("pkg-config" ,pkg-config)))
192 ("libjpeg-turbo" ,libjpeg-turbo)
194 ("libgeotiff" ,libgeotiff)
198 (synopsis "Gaia common graphics support")
199 (description "libgaiagraphics is a library supporting
200 common-utility raster handling methods.")
201 (home-page "https://www.gaia-gis.it/fossil/libgaiagraphics/index")
202 (license license:lgpl3+)))
204 (define-public libgeotiff
211 (uri (string-append "http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-"
214 (base32 "0rbjqixi4c8yz19larlzq6jda0px2gpmpp9c52cyhplbjsdhsldq"))
215 (modules '((guix build utils)))
218 ;; Remove .csv files, distributed from EPSG under a restricted
219 ;; license. See LICENSE for full license text.
220 (for-each delete-file (find-files "." "\\.csv$"))
221 ;; Now that we have removed the csv files, we need to modify the Makefile.
222 (substitute* "Makefile.in"
224 "all-am: Makefile $(LTLIBRARIES) $(HEADERS) geo_config.h\n")
225 (("^install-data-am: .*$")
226 "install-data-am: install-includeHEADERS"))
228 (build-system gnu-build-system)
230 `(("libjpeg-turbo" ,libjpeg-turbo)
236 (list (string-append "--with-zlib")
237 (string-append "--with-jpeg")
238 (string-append "--with-libtiff=" (assoc-ref %build-inputs "libtiff")))))
239 (synopsis "Library for handling GeoTIFF (geographic enabled TIFF)")
240 (description "libgeotiff is a library on top of libtiff for reading and
241 writing GeoTIFF information tags.")
242 (home-page "https://trac.osgeo.org/geotiff/")
243 ;; This is a mixture of various contributions under different licenses.
244 ;; Note that the EPSG database is NOT "free to use" as the LICENSE file
245 ;; states, as its commercial redistribution is restricted. Hence, we have
246 ;; removed it from the package.
247 (license (list license:public-domain
250 (license:non-copyleft "file://LICENSE"
251 "See LICENSE in the distribution.")))))
253 (define-public libspatialite
255 (name "libspatialite")
260 (uri (string-append "https://www.gaia-gis.it/gaia-sins/libspatialite-"
264 "16d4lpl7xrm9zy4gphy6nwanpjp8wn9g4wq2i2kh8abnlhq01448"))))
265 (build-system gnu-build-system)
267 `(("pkg-config" ,pkg-config)))
277 (modify-phases %standard-phases
278 ;; 3 tests are failing, ignore them:
279 (add-after 'unpack 'ignore-broken-tests
281 (substitute* '("test/Makefile.in")
282 (("\tcheck_sql_stm.*" all) "\tcheck_multithread$(EXEEXT) \\\n")
283 (("(\tch.*) check_v.*ble2.*$" all vt1) (string-append vt1 " \\\n"))
284 (("\tch.* (check_v.*ble4.*)$" all vt4) (string-append "\t" vt4)))
286 (synopsis "Extend SQLite to support Spatial SQL capabilities")
288 "SpatiaLite is a library intended to extend the SQLite core to support
289 fully fledged Spatial SQL capabilities.")
290 (home-page "https://www.gaia-gis.it/fossil/libspatialite/index")
291 ;; For the genuine libspatialite-sources holds:
292 ;; Any of the licenses MPL1.1, GPL2+ or LGPL2.1+ may be picked.
293 ;; Files under src/control_points are from GRASS
294 ;; and are licensed under GPL2+ only.
295 ;; src/md5.[ch]: Placed into the public domain by Alexander Peslyak.
296 (license (list license:gpl2+
299 license:public-domain))))
301 (define-public proj.4
307 (uri (string-append "http://download.osgeo.org/proj/proj-"
311 "1xw5f427xk9p2nbsj04j6m5zyjlyd66sbvl2bkg8hd1kx8pm9139"))))
312 (build-system gnu-build-system)
315 (modify-phases %standard-phases
316 (add-after 'unpack 'patch-test-paths
318 (substitute* '("nad/test27"
324 (("/bin/rm") (which "rm")))
326 ;; Precision problems on i686 and other platforms. See:
327 ;; https://web.archive.org/web/20151006134301/http://trac.osgeo.org/proj/ticket/255
328 ;; Disable failing test.
329 (add-after 'patch-test-paths 'ignore-failing-tests
331 (substitute* '("nad/Makefile.in")
332 (("\tPROJ_LIB.*" all) (string-append "#" all)))
336 (home-page "http://proj4.org/")
337 (synopsis "Cartographic Projections Library")
339 "Proj.4 is a library for converting coordinates between cartographic
341 (license (list license:expat
342 ;; src/PJ_patterson.c
346 ;; Embedded EPSG database.
347 (license:non-copyleft "http://www.epsg.org/TermsOfUse")
351 (define-public mapnik
358 (uri (string-append "https://github.com/mapnik/mapnik/releases/download/v"
359 version "/mapnik-v" version ".tar.bz2"))
362 "06frcikaj2mgz3abfk5h0z4j3hbksi0zikwjngbjv4p5f3pwxf8q"))))
363 (build-system scons-build-system)
367 ("freetype" ,freetype)
368 ("harfbuzz" ,harfbuzz)
370 ("libjpeg-turbo" ,libjpeg-turbo)
379 `(("pkg-config" ,pkg-config)))
381 `(#:scons ,scons-python2
384 (string-append "PREFIX=" %output)
385 (string-append "CUSTOM_LDFLAGS=-Wl,-rpath=" %output "/lib"))))
386 (home-page "http://mapnik.org/")
387 (synopsis "Toolkit for developing mapping applications")
388 (description "Mapnik is a toolkit for developing mapping applications. It
389 is basically a collection of geographic objects like maps, layers,
390 datasources, features, and geometries. At its core is a C++ shared library
391 providing algorithms and patterns for spatial data access and visualization.
392 The library does not rely on any specific windowing system and can be deployed
393 to any server environment. It is intended to play fair in a multi-threaded
394 environment and is aimed primarily, but not exclusively, at web-based
396 (license (list license:lgpl2.1+
397 ;; demo/viewer, demo/python/rundemo.py
399 ;; deps/boost, deps/mapbox, deps/agg/include/agg_conv_offset.h
401 ;; deps/mapnik/sparsehash
404 (license:non-copyleft "file://deps/agg/copying")))))
406 (define-public python2-mapnik
408 (name "python2-mapnik")
413 (uri (string-append "https://github.com/mapnik/python-mapnik/archive/v"
415 (file-name (string-append name "-" version ".tar.gz"))
418 "0w7wg72gnwmbjani9sqk42p2jwqkrl9hsdkawahni5m05xsifcb4"))))
419 (build-system python-build-system)
422 ("harfbuzz" ,harfbuzz)
424 ("libjpeg-turbo" ,libjpeg-turbo)
430 ("python2-pycairo" ,python2-pycairo)))
432 (let ((test-data-input
433 (lambda (repository version hash)
436 (uri (string-append "https://github.com/mapnik/" repository
437 "/archive/v" version ".tar.gz"))
438 (file-name (string-append "python-mapnik-" repository
439 "-" version ".tar.gz"))
440 (sha256 (base32 hash))))))
441 `(("python2-nose" ,python2-nose)
442 ;; Test data is released as separate tarballs
444 ,(test-data-input "test-data" "3.0.18"
445 "10cvgn5gxn8ldrszj24zr1vzm5w76kqk4s7bl2zzp5yvkhh8lj1n"))
447 ,(test-data-input "test-data-visual" "3.0.18"
448 "1cb9ghy8sis0w5fkp0dvwxdqqx44rhs9a9w8g9r9i7md1c40r80i")))))
450 `(#:python ,python-2 ; Python 3 support is incomplete, and the build fails
452 (modify-phases %standard-phases
453 ;; Unpack test data into the source tree
454 (add-after 'unpack 'unpack-submodules
455 (lambda* (#:key inputs #:allow-other-keys)
456 (let ((unpack (lambda (source target)
457 (with-directory-excursion target
458 (invoke "tar" "xvf" (assoc-ref inputs source)
459 "--strip-components=1")))))
460 (unpack "test-data" "test/data")
461 (unpack "test-data-visual" "test/data-visual"))))
462 ;; Skip failing tests
463 (add-after 'unpack 'skip-tests
465 (let ((skipped-tests (list "test_vrt_referring_to_missing_files"
466 "test_unicode_regex_replace"
467 "test_proj_antimeridian_bbox"
468 "test_render_with_scale_factor")))
469 (substitute* "setup.cfg"
470 (("\\[nosetests\\]" all)
471 (string-append all "\nexclude=^("
472 (string-join skipped-tests "|") ")$")))))))))
473 (home-page "https://github.com/mapnik/python-mapnik")
474 (synopsis "Python bindings for Mapnik")
475 (description "This package provides Python bindings for Mapnik.")
476 (license license:lgpl2.1+)))
478 (define-public spatialite-gui
480 (name "spatialite-gui")
485 (uri (string-append "https://www.gaia-gis.it/gaia-sins/spatialite_gui-"
489 "1r05dz9pyc8vsd2wbqxcsracpfbaamz470rcyp2myfpqwznv376b"))))
490 (build-system gnu-build-system)
492 `(("pkg-config" ,pkg-config)))
496 ("libgaiagraphics" ,libgaiagraphics)
497 ("libspatialite" ,libspatialite)
501 ("wxwidgets" ,wxwidgets-2)
503 (synopsis "Graphical user interface for SpatiaLite")
504 (description "Spatialite-gui provides a visual interface for viewing and
505 maintaining a spatialite database. You can easily see the structure of the
506 tables and data contents using point and click functions, many of which
507 construct common SQL queries, or craft your own SQL queries.")
508 (home-page "https://www.gaia-gis.it/fossil/spatialite_gui/index")
509 (license license:gpl3+)))
518 "http://download.osgeo.org/gdal/" version "/gdal-"
522 "1951f7b69x3d1vic0rmq92q8f4bj3hbxnxmj5jl0cc3zg0isgmdr"))
523 (modules '((guix build utils)))
526 ;; TODO: frmts contains a lot more bundled code.
527 (for-each delete-file-recursively
532 "frmts/jpeg/libjpeg12"
533 "frmts/gtiff/libtiff"
534 "frmts/gtiff/libgeotiff"
536 "ogr/ogrsf_frmts/geojson/libjson"))))))
537 (build-system gnu-build-system)
541 (let-syntax ((with (syntax-rules ()
543 (string-append option "="
544 (assoc-ref %build-inputs input))))))
546 ;; TODO: --with-pcidsk, --with-pcraster
547 (with "--with-freexl" "freexl")
548 (with "--with-libjson-c" "json-c")
549 (with "--with-png" "libpng")
550 (with "--with-webp" "libwebp")
551 (with "--with-gif" "giflib")
552 (with "--with-jpeg" "libjpeg-turbo")
553 (with "--with-libtiff" "libtiff")
554 (with "--with-geotiff" "libgeotiff")
555 (with "--with-libz" "zlib")
558 (modify-phases %standard-phases
559 (add-before 'build 'fix-path
561 (substitute* "frmts/mrf/mrf_band.cpp"
562 (("\"../zlib/zlib.h\"") "<zlib.h>")))))))
568 ("libgeotiff" ,libgeotiff)
569 ("libjpeg-turbo" ,libjpeg-turbo)
575 (home-page "http://www.gdal.org/")
576 (synopsis "Raster and vector geospatial data format library")
577 (description "GDAL is a translator library for raster and vector geospatial
578 data formats. As a library, it presents a single raster abstract data model
579 and single vector abstract data model to the calling application for all
580 supported formats. It also comes with a variety of useful command line
581 utilities for data translation and processing.")
585 ;; frmts/gtiff/tif_float.c, frmts/pcraster/libcsf,
586 ;; ogr/ogrsf_frmts/dxf/intronurbs.cpp, frmts/pdf/pdfdataset.cpp
589 ;; frmts/hdf4/hdf-eos/*
590 ;; similar to the expat license, but without guarantee exclusion
591 (license:non-copyleft "file://frmts/hdf4/hdf-eos/README")
592 ;; frmts/grib/degrib/
593 license:public-domain ; with guarantee exclusion
595 ;; Some bsd-inspired license
596 (license:non-copyleft "file://port/LICENCE_minizip")
597 ;; alg/internal_libqhull
598 ;; Some 5-clause license
599 (license:non-copyleft "file://alg/internal_libqhull/COPYING.txt")
603 (define-public postgis
609 (uri (string-append "https://download.osgeo.org/postgis/source/postgis-"
613 "1hm8migjb53cymp4qvg1h20yqllmy9f7x0awv5450391i6syyqq6"))))
614 (build-system gnu-build-system)
618 (list (string-append "datadir=" (assoc-ref %outputs "out") "/share")
619 (string-append "docdir="(assoc-ref %outputs "out") "/share/doc")
620 (string-append "pkglibdir="(assoc-ref %outputs "out") "/lib")
621 (string-append "bindir=" (assoc-ref %outputs "out") "/bin"))
623 (modify-phases %standard-phases
624 (add-before 'build 'fix-install-path
625 (lambda* (#:key outputs #:allow-other-keys)
626 (substitute* '("raster/loader/Makefile" "raster/scripts/python/Makefile")
627 (("\\$\\(DESTDIR\\)\\$\\(PGSQL_BINDIR\\)")
628 (string-append (assoc-ref outputs "out") "/bin"))))))))
634 ("postgresql" ,postgresql)
638 ("pkg-config" ,pkg-config)))
639 (home-page "https://postgis.net")
640 (synopsis "Spatial database extender for PostgreSQL")
641 (description "PostGIS is a spatial database extender for PostgreSQL
642 object-relational database. It adds support for geographic objects allowing
643 location queries to be run in SQL. This package provides a PostgreSQL
648 ;; loader/dbfopen, safileio.*, shapefil.h, shpopen.c
651 license:public-domain
653 license:bsd-3 ; files only say "BSD"
655 license:cc-by-sa3.0))))
657 (define-public tegola
664 "https://github.com/go-spatial/tegola/archive/v"
666 (file-name (string-append name "-" version ".tar.gz"))
669 "09vnzxfn0r70kmd776kcdfqxhzdj11syxa0b27z4ci1k367v7viw"))))
670 (build-system go-build-system)
672 `(#:import-path "github.com/go-spatial/tegola/cmd/tegola"
673 #:unpack-path "github.com/go-spatial/tegola"
675 (modify-phases %standard-phases
676 (add-before 'build 'set-version
678 (with-directory-excursion "src/github.com/go-spatial/tegola"
679 (substitute* '("cmd/tegola/cmd/root.go"
680 "cmd/tegola_lambda/main.go")
681 (("version not set") ,version)))
683 (home-page "http://tegola.io")
684 (synopsis "Vector tile server for maps")
685 (description "Tegola is a free vector tile server written in Go. Tegola
686 takes geospatial data and slices it into vector tiles that can be efficiently
687 delivered to any client.")
690 ;; Some packages in vendor have other licenses
696 (define-public imposm3
699 (version "0.6.0-alpha.4")
703 (uri (string-append "https://github.com/omniscale/imposm3/archive/v"
705 (file-name (string-append name "-" version ".tar.gz"))
708 "06f0kwmv52yd5m9jlckqxqmkf0cnqy3hamakrvg9lspplyqrds80"))))
709 (build-system go-build-system)
711 `(#:import-path "github.com/omniscale/imposm3/cmd/imposm"
712 #:unpack-path "github.com/omniscale/imposm3"
714 (modify-phases %standard-phases
715 (add-before 'build 'set-version
717 (substitute* "src/github.com/omniscale/imposm3/version.go"
718 (("0.0.0-dev") ,version))
722 ("leveldb" ,leveldb)))
723 (home-page "https://imposm.org/")
724 (synopsis "OpenStreetMap importer for PostGIS")
725 (description "Imposm is an importer for OpenStreetMap data. It reads PBF
726 files and imports the data into PostgreSQL/PostGIS databases. It is designed
727 to create databases that are optimized for rendering/tile/map-services.")
730 ;; Some dependencies in vendor have different licenses
735 (define-public libosmium
743 (url "https://github.com/osmcode/libosmium.git")
744 (commit (string-append "v" version))))
745 (file-name (git-file-name name version))
747 (base32 "123ri1l0a2b9fljgpwsl7z2w4i3kmgxz79d4ns9z4mwbp8sw0250"))))
748 (build-system cmake-build-system)
755 ("protozero" ,protozero)
756 ("sparsehash" ,sparsehash)
759 `(("doxygen" ,doxygen)))
760 (home-page "https://osmcode.org/libosmium/")
761 (synopsis "C++ library for working with OpenStreetMap data")
762 (description "Libosmium is a fast and flexible C++ library for working with
763 OpenStreetMap data.")
764 (license license:boost1.0)))
766 (define-public osm2pgsql
774 (url "https://github.com/openstreetmap/osm2pgsql.git")
776 (file-name (git-file-name name version))
778 (base32 "032cydh8ynaqfhdzmkvgbmqyjql668y6qln1l59l2s3ni9963bbl"))
779 (modules '((guix build utils)))
782 (delete-file-recursively "contrib/protozero")
783 (delete-file-recursively "contrib/libosmium")
785 (build-system cmake-build-system)
787 `(#:tests? #f; tests fail because we need to setup a database
789 (list (string-append "-DOSMIUM_INCLUDE_DIR="
790 (assoc-ref %build-inputs "libosmium")
792 (string-append "-DPROTOZERO_INCLUDE_DIR="
793 (assoc-ref %build-inputs "protozero")
798 ("libosmium" ,libosmium)
800 ("postgresql" ,postgresql)
802 ("protozero" ,protozero)
805 `(("python-2" ,python-2)
806 ("python2-psycopg2" ,python2-psycopg2)))
807 (home-page "https://github.com/openstreetmap/osm2pgsql")
808 (synopsis "OSM data importer to postgresql")
809 (description "Osm2pgsql is a tool for loading OpenStreetMap data into a
810 PostgreSQL / PostGIS database suitable for applications like rendering into a
811 map, geocoding with Nominatim, or general analysis.")
812 (license license:gpl2+)))
814 (define-public tippecanoe
822 (url "https://github.com/mapbox/tippecanoe.git")
824 (file-name (git-file-name name version))
826 (base32 "1m0x931a945sr7axyhcvpwh798m58hx1zxh6ikgf9gsgqhdhmszz"))))
827 (build-system gnu-build-system)
830 (modify-phases %standard-phases (delete 'configure))
834 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
839 (home-page "https://github.com/mapbox/tippecanoe")
840 (synopsis "Vector tile server for maps")
841 (description "Tippecanoe creates scale-independent view of data, so that
842 the texture and density of features is visible at every zoom level, instead of
843 dropping features at lower levels.")
844 (license license:bsd-2)))
846 (define-public osmctools
854 (url "https://gitlab.com/osm-c-tools/osmctools")
856 (file-name (git-file-name name version))
859 "1m8d3r1q1v05pkr8k9czrmb4xjszw6hvgsf3kn9pf0v14gpn4r8f"))))
860 (build-system gnu-build-system)
862 `(("autoconf" ,autoconf)
863 ("automake" ,automake)))
866 (home-page "https://gitlab.com/osm-c-tools/osmctools")
867 (synopsis "Tools to convert, filter and update OpenStreetMap data files")
868 (description "This project contains a few tools which are used in the
869 OpenStreetMap project. They can be used to convert, filter and update
870 OpenStreetMap data files.")
871 (license license:agpl3)))