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>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages geo)
27 #:use-module (guix build-system cmake)
28 #:use-module (guix build-system glib-or-gtk)
29 #:use-module (guix build-system gnu)
30 #:use-module (guix build-system go)
31 #:use-module (guix build-system python)
32 #:use-module (guix build-system scons)
33 #:use-module (guix build-system r)
34 #:use-module (guix download)
35 #:use-module (guix git-download)
36 #:use-module ((guix licenses) #:prefix license:)
37 #:use-module (guix packages)
38 #:use-module (guix utils)
39 #:use-module (gnu packages boost)
40 #:use-module (gnu packages check)
41 #:use-module (gnu packages compression)
42 #:use-module (gnu packages databases)
43 #:use-module (gnu packages datastructures)
44 #:use-module (gnu packages documentation)
45 #:use-module (gnu packages fontutils)
46 #:use-module (gnu packages glib)
47 #:use-module (gnu packages gnome)
48 #:use-module (gnu packages gtk)
49 #:use-module (gnu packages image)
50 #:use-module (gnu packages icu4c)
51 #:use-module (gnu packages lua)
52 #:use-module (gnu packages pcre)
53 #:use-module (gnu packages perl)
54 #:use-module (gnu packages pkg-config)
55 #:use-module (gnu packages protobuf)
56 #:use-module (gnu packages python)
57 #:use-module (gnu packages python-xyz)
58 #:use-module (gnu packages sqlite)
59 #:use-module (gnu packages web)
60 #:use-module (gnu packages webkit)
61 #:use-module (gnu packages wxwidgets)
62 #:use-module (gnu packages xml))
70 (uri (string-append "http://download.osgeo.org/geos/geos-"
75 "1312m02xk4sp6f1xdpb9w0ic0zbxg90p5y66qnwidl5fksscf1h0"))))
76 (build-system gnu-build-system)
78 (modify-phases %standard-phases
80 'unpack 'patch-test-shebangs
82 (substitute* '("tests/xmltester/testrunner.sh"
83 "tests/geostest/testrunner.sh")
84 (("/bin/sh") (which "sh")))
88 (home-page "https://geos.osgeo.org/")
89 (synopsis "Geometry Engine for Geographic Information Systems")
91 "GEOS provides a spatial object model and fundamental geometric
92 functions. It is a C++ port of the Java Topology Suite (JTS). As such,
93 it aims to contain the complete functionality of JTS in C++. This
94 includes all the OpenGIS Simple Features for SQL spatial predicate
95 functions and spatial operators, as well as specific JTS enhanced
97 (license (list license:lgpl2.1+ ; Main distribution.
98 license:zlib ; tests/xmltester/tinyxml/*
99 license:public-domain)))) ; include/geos/timeval.h
101 (define-public gnome-maps
107 (uri (string-append "mirror://gnome/sources/" name "/"
108 (version-major+minor version) "/"
109 name "-" version ".tar.xz"))
112 "0l40l7m9dyphvasiq1jxrn6ivavs1xwzn0bzz2x1z7x73955q783"))))
113 (build-system glib-or-gtk-build-system)
115 `(#:configure-flags ;; Ensure that geoclue is referred to by output.
116 (list (string-append "LDFLAGS=-L"
117 (assoc-ref %build-inputs "geoclue") "/lib")
118 (string-append "CFLAGS=-I"
119 (assoc-ref %build-inputs "geoclue") "/include"))
121 (modify-phases %standard-phases
122 (add-after 'install 'wrap
123 (lambda* (#:key inputs outputs #:allow-other-keys)
124 (let ((out (assoc-ref outputs "out"))
125 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
126 (goa-path (string-append
127 (assoc-ref inputs "gnome-online-accounts")
129 (webkitgtk-path (string-append
130 (assoc-ref inputs "webkitgtk")
132 (wrap-program (string-append out "/bin/gnome-maps")
133 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
135 ;; There seems to be no way to embed the path of
136 ;; libgoa-1.0.so.0, libwebkit2gtk-4.0.so.37 and
137 ;; libjavascriptcoregtk-4.0.so.18.
138 `("LD_LIBRARY_PATH" ":" prefix (,goa-path ,webkitgtk-path)))
141 `(("gobject-introspection" ,gobject-introspection)
142 ("intltool" ,intltool)
143 ("pkg-config" ,pkg-config)))
146 ("libchamplain" ,libchamplain)
148 ("libsecret" ,libsecret)
150 ("libgweather" ,libgweather)
152 ("gdk-pixbuf" ,gdk-pixbuf)
153 ("glib-networking" ,glib-networking)
155 ("geocode-glib" ,geocode-glib)
156 ("gfbgraph" ,gfbgraph)
159 ("gnome-online-accounts" ,gnome-online-accounts)
160 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
162 ("webkitgtk" ,webkitgtk)))
165 (synopsis "Graphical map viewer and wayfinding program")
166 (description "GNOME Maps is a graphical map viewer. It uses map data from
167 the OpenStreetMap project. It can provide directions for walking, bicycling,
169 (home-page "https://wiki.gnome.org/Apps/Maps")
170 (license license:gpl2+)))
172 (define-public libgaiagraphics
174 (name "libgaiagraphics")
179 (uri (string-append "https://www.gaia-gis.it/gaia-sins/libgaiagraphics-"
183 "076afqv417ag3hfvnif0qc7qscmnq1dsf6y431yygwgf34rjkayc"))))
184 (build-system gnu-build-system)
186 `(("pkg-config" ,pkg-config)))
190 ("libjpeg-turbo" ,libjpeg-turbo)
192 ("libgeotiff" ,libgeotiff)
196 (synopsis "Gaia common graphics support")
197 (description "libgaiagraphics is a library supporting
198 common-utility raster handling methods.")
199 (home-page "https://www.gaia-gis.it/fossil/libgaiagraphics/index")
200 (license license:lgpl3+)))
202 (define-public libgeotiff
209 (uri (string-append "http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-"
212 (base32 "0rbjqixi4c8yz19larlzq6jda0px2gpmpp9c52cyhplbjsdhsldq"))
213 (modules '((guix build utils)))
216 ;; Remove .csv files, distributed from EPSG under a restricted
217 ;; license. See LICENSE for full license text.
218 (for-each delete-file (find-files "." "\\.csv$"))
219 ;; Now that we have removed the csv files, we need to modify the Makefile.
220 (substitute* "Makefile.in"
222 "all-am: Makefile $(LTLIBRARIES) $(HEADERS) geo_config.h\n")
223 (("^install-data-am: .*$")
224 "install-data-am: install-includeHEADERS"))
226 (build-system gnu-build-system)
228 `(("libjpeg-turbo" ,libjpeg-turbo)
234 (list (string-append "--with-zlib")
235 (string-append "--with-jpeg")
236 (string-append "--with-libtiff=" (assoc-ref %build-inputs "libtiff")))))
237 (synopsis "Library for handling GeoTIFF (geographic enabled TIFF)")
238 (description "libgeotiff is a library on top of libtiff for reading and
239 writing GeoTIFF information tags.")
240 (home-page "https://trac.osgeo.org/geotiff/")
241 ;; This is a mixture of various contributions under different licenses.
242 ;; Note that the EPSG database is NOT "free to use" as the LICENSE file
243 ;; states, as its commercial redistribution is restricted. Hence, we have
244 ;; removed it from the package.
245 (license (list license:public-domain
248 (license:non-copyleft "file://LICENSE"
249 "See LICENSE in the distribution.")))))
251 (define-public libspatialite
253 (name "libspatialite")
258 (uri (string-append "https://www.gaia-gis.it/gaia-sins/libspatialite-"
262 "16d4lpl7xrm9zy4gphy6nwanpjp8wn9g4wq2i2kh8abnlhq01448"))))
263 (build-system gnu-build-system)
265 `(("pkg-config" ,pkg-config)))
275 (modify-phases %standard-phases
276 ;; 3 tests are failing, ignore them:
277 (add-after 'unpack 'ignore-broken-tests
279 (substitute* '("test/Makefile.in")
280 (("\tcheck_sql_stm.*" all) "\tcheck_multithread$(EXEEXT) \\\n")
281 (("(\tch.*) check_v.*ble2.*$" all vt1) (string-append vt1 " \\\n"))
282 (("\tch.* (check_v.*ble4.*)$" all vt4) (string-append "\t" vt4)))
284 (synopsis "Extend SQLite to support Spatial SQL capabilities")
286 "SpatiaLite is a library intended to extend the SQLite core to support
287 fully fledged Spatial SQL capabilities.")
288 (home-page "https://www.gaia-gis.it/fossil/libspatialite/index")
289 ;; For the genuine libspatialite-sources holds:
290 ;; Any of the licenses MPL1.1, GPL2+ or LGPL2.1+ may be picked.
291 ;; Files under src/control_points are from GRASS
292 ;; and are licensed under GPL2+ only.
293 ;; src/md5.[ch]: Placed into the public domain by Alexander Peslyak.
294 (license (list license:gpl2+
297 license:public-domain))))
299 (define-public proj.4
305 (uri (string-append "http://download.osgeo.org/proj/proj-"
309 "1xw5f427xk9p2nbsj04j6m5zyjlyd66sbvl2bkg8hd1kx8pm9139"))))
310 (build-system gnu-build-system)
313 (modify-phases %standard-phases
314 (add-after 'unpack 'patch-test-paths
316 (substitute* '("nad/test27"
322 (("/bin/rm") (which "rm")))
324 ;; Precision problems on i686 and other platforms. See:
325 ;; https://web.archive.org/web/20151006134301/http://trac.osgeo.org/proj/ticket/255
326 ;; Disable failing test.
327 (add-after 'patch-test-paths 'ignore-failing-tests
329 (substitute* '("nad/Makefile.in")
330 (("\tPROJ_LIB.*" all) (string-append "#" all)))
334 (home-page "http://proj4.org/")
335 (synopsis "Cartographic Projections Library")
337 "Proj.4 is a library for converting coordinates between cartographic
339 (license (list license:expat
340 ;; src/PJ_patterson.c
344 ;; Embedded EPSG database.
345 (license:non-copyleft "http://www.epsg.org/TermsOfUse")
349 (define-public mapnik
356 (uri (string-append "https://github.com/mapnik/mapnik/releases/download/v"
357 version "/mapnik-v" version ".tar.bz2"))
360 "06frcikaj2mgz3abfk5h0z4j3hbksi0zikwjngbjv4p5f3pwxf8q"))))
361 (build-system scons-build-system)
365 ("freetype" ,freetype)
366 ("harfbuzz" ,harfbuzz)
368 ("libjpeg-turbo" ,libjpeg-turbo)
377 `(("pkg-config" ,pkg-config)))
379 `(#:scons ,scons-python2
382 (string-append "PREFIX=" %output)
383 (string-append "CUSTOM_LDFLAGS=-Wl,-rpath=" %output "/lib"))))
384 (home-page "http://mapnik.org/")
385 (synopsis "Toolkit for developing mapping applications")
386 (description "Mapnik is a toolkit for developing mapping applications. It
387 is basically a collection of geographic objects like maps, layers,
388 datasources, features, and geometries. At its core is a C++ shared library
389 providing algorithms and patterns for spatial data access and visualization.
390 The library does not rely on any specific windowing system and can be deployed
391 to any server environment. It is intended to play fair in a multi-threaded
392 environment and is aimed primarily, but not exclusively, at web-based
394 (license (list license:lgpl2.1+
395 ;; demo/viewer, demo/python/rundemo.py
397 ;; deps/boost, deps/mapbox, deps/agg/include/agg_conv_offset.h
399 ;; deps/mapnik/sparsehash
402 (license:non-copyleft "file://deps/agg/copying")))))
404 (define-public python2-mapnik
406 (name "python2-mapnik")
411 (uri (string-append "https://github.com/mapnik/python-mapnik/archive/v"
413 (file-name (string-append name "-" version ".tar.gz"))
416 "0w7wg72gnwmbjani9sqk42p2jwqkrl9hsdkawahni5m05xsifcb4"))))
417 (build-system python-build-system)
420 ("harfbuzz" ,harfbuzz)
422 ("libjpeg-turbo" ,libjpeg-turbo)
428 ("python2-pycairo" ,python2-pycairo)))
430 (let ((test-data-input
431 (lambda (repository version hash)
434 (uri (string-append "https://github.com/mapnik/" repository
435 "/archive/v" version ".tar.gz"))
436 (file-name (string-append "python-mapnik-" repository
437 "-" version ".tar.gz"))
438 (sha256 (base32 hash))))))
439 `(("python2-nose" ,python2-nose)
440 ;; Test data is released as separate tarballs
442 ,(test-data-input "test-data" "3.0.18"
443 "10cvgn5gxn8ldrszj24zr1vzm5w76kqk4s7bl2zzp5yvkhh8lj1n"))
445 ,(test-data-input "test-data-visual" "3.0.18"
446 "1cb9ghy8sis0w5fkp0dvwxdqqx44rhs9a9w8g9r9i7md1c40r80i")))))
448 `(#:python ,python-2 ; Python 3 support is incomplete, and the build fails
450 (modify-phases %standard-phases
451 ;; Unpack test data into the source tree
452 (add-after 'unpack 'unpack-submodules
453 (lambda* (#:key inputs #:allow-other-keys)
454 (let ((unpack (lambda (source target)
455 (with-directory-excursion target
456 (invoke "tar" "xvf" (assoc-ref inputs source)
457 "--strip-components=1")))))
458 (unpack "test-data" "test/data")
459 (unpack "test-data-visual" "test/data-visual"))))
460 ;; Skip failing tests
461 (add-after 'unpack 'skip-tests
463 (let ((skipped-tests (list "test_vrt_referring_to_missing_files"
464 "test_unicode_regex_replace"
465 "test_proj_antimeridian_bbox"
466 "test_render_with_scale_factor")))
467 (substitute* "setup.cfg"
468 (("\\[nosetests\\]" all)
469 (string-append all "\nexclude=^("
470 (string-join skipped-tests "|") ")$")))))))))
471 (home-page "https://github.com/mapnik/python-mapnik")
472 (synopsis "Python bindings for Mapnik")
473 (description "This package provides Python bindings for Mapnik.")
474 (license license:lgpl2.1+)))
476 (define-public spatialite-gui
478 (name "spatialite-gui")
483 (uri (string-append "https://www.gaia-gis.it/gaia-sins/spatialite_gui-"
487 "1r05dz9pyc8vsd2wbqxcsracpfbaamz470rcyp2myfpqwznv376b"))))
488 (build-system gnu-build-system)
490 `(("pkg-config" ,pkg-config)))
494 ("libgaiagraphics" ,libgaiagraphics)
495 ("libspatialite" ,libspatialite)
499 ("wxwidgets" ,wxwidgets-2)
501 (synopsis "Graphical user interface for SpatiaLite")
502 (description "Spatialite-gui provides a visual interface for viewing and
503 maintaining a spatialite database. You can easily see the structure of the
504 tables and data contents using point and click functions, many of which
505 construct common SQL queries, or craft your own SQL queries.")
506 (home-page "https://www.gaia-gis.it/fossil/spatialite_gui/index")
507 (license license:gpl3+)))
516 "http://download.osgeo.org/gdal/" version "/gdal-"
520 "1951f7b69x3d1vic0rmq92q8f4bj3hbxnxmj5jl0cc3zg0isgmdr"))
521 (modules '((guix build utils)))
524 ;; TODO: frmts contains a lot more bundled code.
525 (for-each delete-file-recursively
530 "frmts/jpeg/libjpeg12"
531 "frmts/gtiff/libtiff"
532 "frmts/gtiff/libgeotiff"
534 "ogr/ogrsf_frmts/geojson/libjson"))))))
535 (build-system gnu-build-system)
539 (let-syntax ((with (syntax-rules ()
541 (string-append option "="
542 (assoc-ref %build-inputs input))))))
544 ;; TODO: --with-pcidsk, --with-pcraster
545 (with "--with-freexl" "freexl")
546 (with "--with-libjson-c" "json-c")
547 (with "--with-png" "libpng")
548 (with "--with-webp" "libwebp")
549 (with "--with-gif" "giflib")
550 (with "--with-jpeg" "libjpeg-turbo")
551 (with "--with-libtiff" "libtiff")
552 (with "--with-geotiff" "libgeotiff")
553 (with "--with-libz" "zlib")
556 (modify-phases %standard-phases
557 (add-before 'build 'fix-path
559 (substitute* "frmts/mrf/mrf_band.cpp"
560 (("\"../zlib/zlib.h\"") "<zlib.h>")))))))
566 ("libgeotiff" ,libgeotiff)
567 ("libjpeg-turbo" ,libjpeg-turbo)
573 (home-page "http://www.gdal.org/")
574 (synopsis "Raster and vector geospatial data format library")
575 (description "GDAL is a translator library for raster and vector geospatial
576 data formats. As a library, it presents a single raster abstract data model
577 and single vector abstract data model to the calling application for all
578 supported formats. It also comes with a variety of useful command line
579 utilities for data translation and processing.")
583 ;; frmts/gtiff/tif_float.c, frmts/pcraster/libcsf,
584 ;; ogr/ogrsf_frmts/dxf/intronurbs.cpp, frmts/pdf/pdfdataset.cpp
587 ;; frmts/hdf4/hdf-eos/*
588 ;; similar to the expat license, but without guarantee exclusion
589 (license:non-copyleft "file://frmts/hdf4/hdf-eos/README")
590 ;; frmts/grib/degrib/
591 license:public-domain ; with guarantee exclusion
593 ;; Some bsd-inspired license
594 (license:non-copyleft "file://port/LICENCE_minizip")
595 ;; alg/internal_libqhull
596 ;; Some 5-clause license
597 (license:non-copyleft "file://alg/internal_libqhull/COPYING.txt")
601 (define-public postgis
607 (uri (string-append "https://download.osgeo.org/postgis/source/postgis-"
611 "1hm8migjb53cymp4qvg1h20yqllmy9f7x0awv5450391i6syyqq6"))))
612 (build-system gnu-build-system)
616 (list (string-append "datadir=" (assoc-ref %outputs "out") "/share")
617 (string-append "docdir="(assoc-ref %outputs "out") "/share/doc")
618 (string-append "pkglibdir="(assoc-ref %outputs "out") "/lib")
619 (string-append "bindir=" (assoc-ref %outputs "out") "/bin"))
621 (modify-phases %standard-phases
622 (add-before 'build 'fix-install-path
623 (lambda* (#:key outputs #:allow-other-keys)
624 (substitute* '("raster/loader/Makefile" "raster/scripts/python/Makefile")
625 (("\\$\\(DESTDIR\\)\\$\\(PGSQL_BINDIR\\)")
626 (string-append (assoc-ref outputs "out") "/bin"))))))))
632 ("postgresql" ,postgresql)
636 ("pkg-config" ,pkg-config)))
637 (home-page "https://postgis.net")
638 (synopsis "Spatial database extender for PostgreSQL")
639 (description "PostGIS is a spatial database extender for PostgreSQL
640 object-relational database. It adds support for geographic objects allowing
641 location queries to be run in SQL. This package provides a PostgreSQL
646 ;; loader/dbfopen, safileio.*, shapefil.h, shpopen.c
649 license:public-domain
651 license:bsd-3 ; files only say "BSD"
653 license:cc-by-sa3.0))))
655 (define-public tegola
662 "https://github.com/go-spatial/tegola/archive/v"
664 (file-name (string-append name "-" version ".tar.gz"))
667 "09vnzxfn0r70kmd776kcdfqxhzdj11syxa0b27z4ci1k367v7viw"))))
668 (build-system go-build-system)
670 `(#:import-path "github.com/go-spatial/tegola/cmd/tegola"
671 #:unpack-path "github.com/go-spatial"
673 (modify-phases %standard-phases
674 (add-before 'build 'set-version
676 (with-directory-excursion
677 (string-append "src/github.com/go-spatial/tegola-" ,version)
678 (substitute* '("cmd/tegola/cmd/root.go"
679 "cmd/tegola_lambda/main.go")
680 (("version not set") ,version)))
682 (add-before 'build 'rename-import
684 (rename-file (string-append "src/github.com/go-spatial/tegola-" ,version)
685 "src/github.com/go-spatial/tegola")
687 (home-page "http://tegola.io")
688 (synopsis "Vector tile server for maps")
689 (description "Tegola is a free vector tile server written in Go. Tegola
690 takes geospatial data and slices it into vector tiles that can be efficiently
691 delivered to any client.")
694 ;; Some packages in vendor have other licenses
700 (define-public imposm3
703 (version "0.6.0-alpha.4")
707 (uri (string-append "https://github.com/omniscale/imposm3/archive/v"
709 (file-name (string-append name "-" version ".tar.gz"))
712 "06f0kwmv52yd5m9jlckqxqmkf0cnqy3hamakrvg9lspplyqrds80"))))
713 (build-system go-build-system)
715 `(#:import-path "github.com/omniscale/imposm3/cmd/imposm"
716 #:unpack-path "github.com/omniscale"
718 (modify-phases %standard-phases
719 (add-before 'build 'rename-import
721 (rename-file (string-append "src/github.com/omniscale/imposm3-" ,version)
722 "src/github.com/omniscale/imposm3")
724 (add-before 'build 'set-version
726 (substitute* "src/github.com/omniscale/imposm3/version.go"
727 (("0.0.0-dev") ,version))
731 ("leveldb" ,leveldb)))
732 (home-page "https://imposm.org/")
733 (synopsis "OpenStreetMap importer for PostGIS")
734 (description "Imposm is an importer for OpenStreetMap data. It reads PBF
735 files and imports the data into PostgreSQL/PostGIS databases. It is designed
736 to create databases that are optimized for rendering/tile/map-services.")
739 ;; Some dependencies in vendor have different licenses
744 (define-public libosmium
752 (url "https://github.com/osmcode/libosmium.git")
753 (commit (string-append "v" version))))
754 (file-name (git-file-name name version))
756 (base32 "123ri1l0a2b9fljgpwsl7z2w4i3kmgxz79d4ns9z4mwbp8sw0250"))))
757 (build-system cmake-build-system)
764 ("protozero" ,protozero)
765 ("sparsehash" ,sparsehash)
768 `(("doxygen" ,doxygen)))
769 (home-page "https://osmcode.org/libosmium/")
770 (synopsis "C++ library for working with OpenStreetMap data")
771 (description "Libosmium is a fast and flexible C++ library for working with
772 OpenStreetMap data.")
773 (license license:boost1.0)))
775 (define-public osm2pgsql
783 (url "https://github.com/openstreetmap/osm2pgsql.git")
785 (file-name (git-file-name name version))
787 (base32 "032cydh8ynaqfhdzmkvgbmqyjql668y6qln1l59l2s3ni9963bbl"))
788 (modules '((guix build utils)))
791 (delete-file-recursively "contrib/protozero")
792 (delete-file-recursively "contrib/libosmium")
794 (build-system cmake-build-system)
796 `(#:tests? #f; tests fail because we need to setup a database
798 (list (string-append "-DOSMIUM_INCLUDE_DIR="
799 (assoc-ref %build-inputs "libosmium")
801 (string-append "-DPROTOZERO_INCLUDE_DIR="
802 (assoc-ref %build-inputs "protozero")
807 ("libosmium" ,libosmium)
809 ("postgresql" ,postgresql)
811 ("protozero" ,protozero)
814 `(("python-2" ,python-2)
815 ("python2-psycopg2" ,python2-psycopg2)))
816 (home-page "https://github.com/openstreetmap/osm2pgsql")
817 (synopsis "OSM data importer to postgresql")
818 (description "Osm2pgsql is a tool for loading OpenStreetMap data into a
819 PostgreSQL / PostGIS database suitable for applications like rendering into a
820 map, geocoding with Nominatim, or general analysis.")
821 (license license:gpl2+)))
823 (define-public tippecanoe
831 (url "https://github.com/mapbox/tippecanoe.git")
833 (file-name (git-file-name name version))
835 (base32 "1m0x931a945sr7axyhcvpwh798m58hx1zxh6ikgf9gsgqhdhmszz"))))
836 (build-system gnu-build-system)
839 (modify-phases %standard-phases (delete 'configure))
843 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
848 (home-page "https://github.com/mapbox/tippecanoe")
849 (synopsis "Vector tile server for maps")
850 (description "Tippecanoe creates scale-independent view of data, so that
851 the texture and density of features is visible at every zoom level, instead of
852 dropping features at lower levels.")
853 (license license:bsd-2)))