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–2021 Tobias Geerinckx-Rice <me@tobias.gr>
6 ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2018, 2019 Arun Isaac <arunisaac@systemreboot.net>
8 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
9 ;;; Copyright © 2018, 2019, 2020, 2021 Julien Lepiller <julien@lepiller.eu>
10 ;;; Copyright © 2019, 2020, 2021, 2022 Guillaume Le Vaillant <glv@posteo.net>
11 ;;; Copyright © 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
12 ;;; Copyright © 2019, 2021 Wiktor Żelazny <wzelazny@vurv.cz>
13 ;;; Copyright © 2019, 2020 Hartmut Goebel <h.goebel@crazy-compilers.com>
14 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
15 ;;; Copyright © 2020 Christopher Baines <mail@cbaines.net>
16 ;;; Copyright © 2020, 2021 Felix Gruber <felgru@posteo.net>
17 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
18 ;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
19 ;;; Copyright © 2021 Clément Lassieur <clement@lassieur.org>
20 ;;; Copyright © 2021 Nikolay Korotkiy <sikmir@disroot.org>
22 ;;; This file is part of GNU Guix.
24 ;;; GNU Guix is free software; you can redistribute it and/or modify it
25 ;;; under the terms of the GNU General Public License as published by
26 ;;; the Free Software Foundation; either version 3 of the License, or (at
27 ;;; your option) any later version.
29 ;;; GNU Guix is distributed in the hope that it will be useful, but
30 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 ;;; GNU General Public License for more details.
34 ;;; You should have received a copy of the GNU General Public License
35 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37 (define-module (gnu packages geo)
38 #:use-module (guix build-system ant)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system glib-or-gtk)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system go)
43 #:use-module (guix build-system meson)
44 #:use-module (guix build-system python)
45 #:use-module (guix build-system qt)
46 #:use-module (guix build-system scons)
47 #:use-module (guix build-system r)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix svn-download)
51 #:use-module ((guix licenses) #:prefix license:)
52 #:use-module (guix packages)
53 #:use-module (guix utils)
54 #:use-module (gnu packages)
55 #:use-module (gnu packages algebra)
56 #:use-module (gnu packages astronomy)
57 #:use-module (gnu packages audio)
58 #:use-module (gnu packages autotools)
59 #:use-module (gnu packages backup)
60 #:use-module (gnu packages bash)
61 #:use-module (gnu packages bison)
62 #:use-module (gnu packages boost)
63 #:use-module (gnu packages build-tools)
64 #:use-module (gnu packages check)
65 #:use-module (gnu packages compression)
66 #:use-module (gnu packages cpp)
67 #:use-module (gnu packages cups)
68 #:use-module (gnu packages curl)
69 #:use-module (gnu packages databases)
70 #:use-module (gnu packages datastructures)
71 #:use-module (gnu packages docbook)
72 #:use-module (gnu packages documentation)
73 #:use-module (gnu packages elf)
74 #:use-module (gnu packages flex)
75 #:use-module (gnu packages fonts)
76 #:use-module (gnu packages fontutils)
77 #:use-module (gnu packages gettext)
78 #:use-module (gnu packages gl)
79 #:use-module (gnu packages glib)
80 #:use-module (gnu packages gnome)
81 #:use-module (gnu packages gps)
82 #:use-module (gnu packages graphics)
83 #:use-module (gnu packages gtk)
84 #:use-module (gnu packages haskell-apps)
85 #:use-module (gnu packages image)
86 #:use-module (gnu packages image-processing)
87 #:use-module (gnu packages icu4c)
88 #:use-module (gnu packages java)
89 #:use-module (gnu packages kde)
90 #:use-module (gnu packages lua)
91 #:use-module (gnu packages maths)
92 #:use-module (gnu packages multiprecision)
93 #:use-module (gnu packages pcre)
94 #:use-module (gnu packages pdf)
95 #:use-module (gnu packages perl)
96 #:use-module (gnu packages photo)
97 #:use-module (gnu packages pkg-config)
98 #:use-module (gnu packages protobuf)
99 #:use-module (gnu packages pulseaudio)
100 #:use-module (gnu packages python)
101 #:use-module (gnu packages python-build)
102 #:use-module (gnu packages python-check)
103 #:use-module (gnu packages python-crypto)
104 #:use-module (gnu packages python-science)
105 #:use-module (gnu packages python-web)
106 #:use-module (gnu packages python-xyz)
107 #:use-module (gnu packages qt)
108 #:use-module (gnu packages readline)
109 #:use-module (gnu packages swig)
110 #:use-module (gnu packages sqlite)
111 #:use-module (gnu packages textutils)
112 #:use-module (gnu packages time)
113 #:use-module (gnu packages web)
114 #:use-module (gnu packages webkit)
115 #:use-module (gnu packages wxwidgets)
116 #:use-module (gnu packages xml)
117 #:use-module (gnu packages xorg))
119 (define-public memphis
128 (url "https://github.com/jiuka/memphis")
130 (file-name (git-file-name name version))
132 (base32 "068c3943pgbpfjq44pmvn5fmkh005ak5aa67vvrq3fn487c6w54q"))))
133 (build-system glib-or-gtk-build-system)
134 (outputs '("out" "doc"))
141 (string-append "--with-html-dir="
142 (assoc-ref %outputs "doc")
143 "/share/gtk-doc/html"))
145 (modify-phases %standard-phases
146 (add-after 'unpack 'patch-autogen
148 (substitute* "autogen.sh"
149 (("\\./configure \"\\$@\"")
152 (add-after 'patch-autogen 'patch-docbook-xml
153 (lambda* (#:key inputs #:allow-other-keys)
154 (with-directory-excursion "docs/reference"
155 (substitute* "libmemphis-docs.sgml"
156 (("http://www.oasis-open.org/docbook/xml/4.3/")
157 (string-append (assoc-ref inputs "docbook-xml")
158 "/xml/dtd/docbook/"))))
161 `(("autoconf" ,autoconf)
162 ("automake" ,automake)
163 ("docbook-xml" ,docbook-xml-4.3)
164 ("gobject-introspection" ,gobject-introspection)
165 ("gtk-doc" ,gtk-doc/stable)
167 ("pkg-config" ,pkg-config)
168 ("python" ,python-wrapper)
175 (synopsis "Map-rendering for OpenSteetMap")
176 (description "Memphis is a map-rendering application and a library for
177 OpenStreetMap written in C using eXpat, Cairo and GLib.")
178 (home-page "http://trac.openstreetmap.ch/trac/memphis/")
179 (license license:lgpl2.1+)))
187 (uri (string-append "http://download.osgeo.org/geos/geos-"
192 "1xqpmr10xi0n9sj47fbwc89qb0yr9imh4ybk0jsxpffy111syn22"))))
193 (build-system gnu-build-system)
194 (arguments `(#:phases
195 (modify-phases %standard-phases
197 'unpack 'patch-test-shebangs
199 (substitute* '("tests/xmltester/testrunner.sh"
200 "tests/geostest/testrunner.sh")
201 (("/bin/sh") (which "sh")))
205 (home-page "https://geos.osgeo.org/")
206 (synopsis "Geometry Engine for Geographic Information Systems")
208 "GEOS provides a spatial object model and fundamental geometric
209 functions. It is a C++ port of the Java Topology Suite (JTS). As such,
210 it aims to contain the complete functionality of JTS in C++. This
211 includes all the OpenGIS Simple Features for SQL spatial predicate
212 functions and spatial operators, as well as specific JTS enhanced
213 topology functions.")
214 (license (list license:lgpl2.1+ ; Main distribution.
215 license:zlib ; tests/xmltester/tinyxml/*
216 license:public-domain)))) ; include/geos/timeval.h
218 (define-public gnome-maps
224 (uri (string-append "mirror://gnome/sources/" name "/"
225 (version-major version) "/"
226 name "-" version ".tar.xz"))
229 "037xmkmcmcw87vb1c1s3y225m8757k331cvk1m8cshf6mx61p0l1"))))
230 (build-system meson-build-system)
234 (modify-phases %standard-phases
235 (add-after 'unpack 'skip-gtk-update-icon-cache
236 ;; Don't create 'icon-theme.cache'.
238 (substitute* "meson_post_install.py"
239 (("gtk-update-icon-cache") "true"))))
240 (add-after 'unpack 'patch-dbus-service
241 (lambda* (#:key outputs #:allow-other-keys)
242 (substitute* "data/org.gnome.Maps.service.in"
243 (("@pkgdatadir@/org.gnome.Maps")
244 (string-append (assoc-ref outputs "out")
245 "/bin/gnome-maps")))))
246 (add-after 'install 'wrap
247 (lambda* (#:key inputs outputs #:allow-other-keys)
248 (let ((out (assoc-ref outputs "out"))
249 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
250 (geocode-glib-path (string-append
251 (assoc-ref inputs "geocode-glib")
253 (goa-path (string-append
254 (assoc-ref inputs "gnome-online-accounts:lib")
256 (gdk-pixbuf-path (string-append
257 (assoc-ref inputs "gdk-pixbuf")
259 (webkitgtk-path (string-append
260 (assoc-ref inputs "webkitgtk")
262 (wrap-program (string-append out "/bin/gnome-maps")
263 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
265 ;; There seems to be no way to embed the path of
266 ;; libgoa-1.0.so.0, libwebkit2gtk-4.0.so.37,
267 ;; libgdk_pixbuf-2.0.so, libjavascriptcoregtk-4.0.so.18, and
268 ;; libgeocode-glib.so.0
269 `("LD_LIBRARY_PATH" ":" prefix (,goa-path
272 ,geocode-glib-path)))
275 `(("gettext" ,gettext-minimal)
276 ("gobject-introspection" ,gobject-introspection)
277 ("pkg-config" ,pkg-config)))
279 `(("evolution-data-server" ,evolution-data-server)
281 ("libchamplain" ,libchamplain)
283 ("libhandy" ,libhandy)
284 ("libsecret" ,libsecret)
285 ("libsoup" ,libsoup-minimal-2)
286 ("libgweather" ,libgweather)
289 ("glib-networking" ,glib-networking)
291 ("geocode-glib" ,geocode-glib)
292 ("gfbgraph" ,gfbgraph)
295 ("gnome-online-accounts:lib" ,gnome-online-accounts "lib")
296 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
299 ("webkitgtk" ,webkitgtk-with-libsoup2)))
300 (synopsis "Graphical map viewer and wayfinding program")
301 (description "GNOME Maps is a graphical map viewer. It uses map data from
302 the OpenStreetMap project. It can provide directions for walking, bicycling,
304 (home-page "https://wiki.gnome.org/Apps/Maps")
305 (license license:gpl2+)))
307 (define-public libgeotiff
314 (uri (string-append "http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-"
316 (patches (search-patches
317 ;; See libgeotiff 1.5.1 issue
318 ;; https://github.com/OSGeo/libgeotiff/issues/22
319 "libgeotiff-adapt-test-script-for-proj-6.2.patch"))
321 (base32 "0b31mlzcv5b1y7jdvb7p0pa3xradrg3x5g32ym911lbhq4rrgsgr"))
322 (modules '((guix build utils)))
325 ;; Remove .csv files, distributed from EPSG under a restricted
326 ;; license. See LICENSE for full license text.
327 (for-each delete-file (find-files "." "\\.csv$"))
329 (build-system gnu-build-system)
331 (list libjpeg-turbo libtiff zlib))
333 (list ;; libgeotiff headers include proj headers, so ensure those are available.
337 (list "--disable-static"
338 "--with-zlib" "--with-jpeg"
339 (string-append "--with-libtiff=" (assoc-ref %build-inputs "libtiff")))))
340 (synopsis "Library for handling GeoTIFF (geographic enabled TIFF)")
341 (description "libgeotiff is a library on top of libtiff for reading and
342 writing GeoTIFF information tags.")
343 (home-page "https://trac.osgeo.org/geotiff/")
344 ;; This is a mixture of various contributions under different licenses.
345 ;; Note that the EPSG database is NOT "free to use" as the LICENSE file
346 ;; states, as its commercial redistribution is restricted. Hence, we have
347 ;; removed it from the package.
348 (license (list license:public-domain
351 (license:non-copyleft "file://LICENSE"
352 "See LICENSE in the distribution.")))))
354 (define-public librasterlite2
356 (name "librasterlite2")
357 (version "1.1.0-beta1")
362 "https://www.gaia-gis.it/gaia-sins/librasterlite2-sources/"
363 "librasterlite2-" version ".tar.gz"))
366 "1x24gqp4hsq97c31ncwxblab0x0863q8v1z42jil7lvsq3glqa7p"))))
367 (build-system gnu-build-system)
390 (synopsis "Library to work with huge raster coverages using a SpatiaLite")
392 "librasterlite2 is a library that stores and retrieves huge raster
393 coverages using a SpatiaLite DBMS.")
394 (home-page "https://www.gaia-gis.it/fossil/librasterlite2/index")
395 ;; For the genuine librasterlite-sources holds:
396 ;; Any of the licenses MPL1.1, GPL2+ or LGPL2.1+ may be picked.
397 ;; Files under src/control_points are from GRASS
398 ;; and are licensed under GPL2+ only.
399 ;; src/md5.[ch]: Placed into the public domain by Alexander Peslyak.
400 ;; The tools supporting the library (both rl2tool and wmslite) are
401 ;; licensed under the GPL v3 (or any subsequent version) terms.
402 ;; The test/*.svg files are placed in the public domain, except for
403 ;; test/Car_Yellow.svg which is licensed under the Free Art License 1.3.
404 (license (list license:gpl2+
409 license:public-domain))))
411 (define-public librttopo
419 (url "https://git.osgeo.org/gitea/rttopo/librttopo")
420 (commit (string-append "librttopo-" version))))
421 (file-name (git-file-name name version))
423 (base32 "0h7lzlkn9g4xky6h81ndy0aa6dxz8wb6rnl8v3987jy1i6pr072p"))))
424 (build-system gnu-build-system)
427 (modify-phases %standard-phases
428 (add-after 'unpack 'patch-autogen
430 (let ((autoconf (which "autoconf"))
431 (autoheader (which "autoheader"))
432 (aclocal (which "aclocal"))
433 (automake (which "automake"))
434 (libtoolize (which "libtoolize")))
435 (substitute* "autogen.sh"
436 (("`which autoconf 2>/dev/null`") autoconf)
437 (("`which autoheader 2>/dev/null`") autoheader)
439 (string-append "ACLOCAL=" aclocal "\n"))
441 (string-append "AUTOMAKE=" automake "\n"))
443 (string-append "LIBTOOLIZE=" libtoolize "\n"))))
446 (list autoconf automake libtool pkg-config))
449 (synopsis "Library to handle SQL/MM topologies")
451 "The RT Topology Library exposes an API to create and manage standard
452 (ISO 13249 aka SQL/MM) topologies using user-provided data stores.")
453 (home-page "https://git.osgeo.org/gitea/rttopo/librttopo")
454 (license license:gpl2+)))
456 (define-public libspatialite
458 (name "libspatialite")
463 (uri (string-append "https://www.gaia-gis.it/gaia-sins/libspatialite-"
467 "164y82rw2lrp5glfc0rkn7n6xvx5dvlgmh7bb7815067251wkjzf"))))
468 (build-system gnu-build-system)
481 '("--enable-rttopo=yes")
483 (modify-phases %standard-phases
484 ;; 1 test is failing, ignore it:
485 (add-after 'unpack 'ignore-broken-tests
487 (substitute* '("test/Makefile.in")
488 (("check_wms\\$\\(EXEEXT\\) check_drop_rename\\$\\(EXEEXT\\) ")
489 "check_wms$(EXEEXT) ")))))))
490 (synopsis "Extend SQLite to support Spatial SQL capabilities")
492 "SpatiaLite is a library intended to extend the SQLite core to support
493 fully fledged Spatial SQL capabilities.")
494 (home-page "https://www.gaia-gis.it/fossil/libspatialite/index")
495 ;; For the genuine libspatialite-sources holds:
496 ;; Any of the licenses MPL1.1, GPL2+ or LGPL2.1+ may be picked.
497 ;; Files under src/control_points are from GRASS
498 ;; and are licensed under GPL2+ only.
499 ;; src/md5.[ch]: Placed into the public domain by Alexander Peslyak.
500 (license (list license:gpl2+
503 license:public-domain))))
512 (uri (string-append "http://download.osgeo.org/proj/proj-"
516 "050apzdn0isxpsblys1shrl9ccli5vd32kgswlgx1imrbwpg915k"))))
517 (build-system cmake-build-system)
519 `(#:configure-flags '("-DUSE_EXTERNAL_GTEST=ON")
521 (modify-phases %standard-phases
522 (add-after 'unpack 'fix-version
524 (substitute* "CMakeLists.txt"
525 (("MAJOR 7 MINOR 2 PATCH 0") "MAJOR 7 MINOR 2 PATCH 1")))))))
527 (list curl libjpeg-turbo libtiff sqlite))
529 (list googletest pkg-config))
530 (home-page "https://proj.org/")
531 (synopsis "Coordinate transformation software")
533 "Proj is a generic coordinate transformation software that transforms
534 geospatial coordinates from one @acronym{CRS, coordinate reference system}
535 to another. This includes cartographic projections as well as geodetic
536 transformations. Proj includes command line applications for easy
537 conversion of coordinates from text files or directly from user input.
538 In addition, Proj also exposes an application programming interface that
539 lets developers use the functionality of Proj in their own software.")
540 (license (list license:expat
541 ;; src/projections/patterson.cpp
543 ;; src/geodesic.*, src/tests/geodtest.cpp
546 (define-public proj.4
552 (uri (string-append "http://download.osgeo.org/proj/proj-"
556 "1xw5f427xk9p2nbsj04j6m5zyjlyd66sbvl2bkg8hd1kx8pm9139"))))
557 (build-system gnu-build-system)
560 (modify-phases %standard-phases
561 (add-after 'unpack 'patch-test-paths
563 (substitute* '("nad/test27"
569 (("/bin/rm") (which "rm")))
571 ;; Precision problems on i686 and other platforms. See:
572 ;; https://web.archive.org/web/20151006134301/http://trac.osgeo.org/proj/ticket/255
573 ;; Disable failing test.
574 (add-after 'patch-test-paths 'ignore-failing-tests
576 (substitute* '("nad/Makefile.in")
577 (("\tPROJ_LIB.*" all) (string-append "#" all)))
581 (home-page "https://proj.org/")
582 (synopsis "Cartographic Projections Library")
584 "Proj.4 is a library for converting coordinates between cartographic
586 (license (list license:expat
587 ;; src/PJ_patterson.c
591 ;; Embedded EPSG database.
592 (license:non-copyleft "http://www.epsg.org/TermsOfUse")
596 (define-public python-pyproj
598 (name "python-pyproj")
603 (uri (pypi-uri "pyproj" version))
606 "0xrqpy708qlyd7nqjra0dl7nvkqzaj9w0v7wq4j5pxazha9n14sa"))))
607 (build-system python-build-system)
610 (modify-phases %standard-phases
611 (add-after 'unpack 'set-proj-path
612 (lambda* (#:key inputs #:allow-other-keys)
613 (let ((proj (assoc-ref inputs "proj")))
614 (setenv "PROJ_DIR" proj)
615 (substitute* "pyproj/datadir.py"
616 (("(internal_datadir = ).*$" all var)
617 (string-append var "Path(\"" proj "/share/proj\")\n")))))))))
621 (list python-certifi))
623 (list python-cython python-numpy python-pandas python-pytest
625 (home-page "https://github.com/pyproj4/pyproj")
627 "Python interface to PROJ")
629 "This package provides a Python interface to PROJ, a cartographic
630 projections and coordinate transformations library.")
631 (license license:expat)))
633 (define-public python-fiona
635 (name "python-fiona")
640 (uri (pypi-uri "Fiona" version))
643 "0fql7i7dg1xpbadmk8d26dwp91v7faixxc4wq14zg0kvhp9041d7"))))
644 (build-system python-build-system)
647 (modify-phases %standard-phases
648 (add-before 'check 'remove-local-fiona
650 ; This would otherwise interfere with finding the installed
651 ; fiona when running tests.
652 (delete-file-recursively "fiona")))
654 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
655 (add-installed-pythonpath inputs outputs)
656 (setenv "GDAL_ENABLE_DEPRECATED_DRIVER_GTM" "YES")
659 "-m" "not network and not wheel"
660 ;; FIXME: Find why the
661 ;; test_no_append_driver_cannot_append[PCIDSK]
663 "-k" "not test_no_append_driver_cannot_append")))))))
677 (list gdal ; for gdal-config
682 (home-page "https://github.com/Toblerity/Fiona")
684 "Fiona reads and writes spatial data files")
686 "Fiona is GDAL’s neat and nimble vector API for Python programmers.
687 Fiona is designed to be simple and dependable. It focuses on reading
688 and writing data in standard Python IO style and relies upon familiar
689 Python types and protocols such as files, dictionaries, mappings, and
690 iterators instead of classes specific to OGR. Fiona can read and write
691 real-world data using multi-layered GIS formats and zipped virtual file
692 systems and integrates readily with other Python GIS packages such as
693 pyproj, Rtree, and Shapely.")
694 (license license:bsd-3)))
696 (define-public python-geopandas
698 (name "python-geopandas")
703 (uri (pypi-uri "geopandas" version))
706 "1nvim2i47ap1zdwy6kxydskf1cir5g4ij8124wvmrqij0zklggzg"))))
707 (build-system python-build-system)
710 (modify-phases %standard-phases
712 (lambda* (#:key tests? #:allow-other-keys)
715 ; Disable test that fails with
716 ; NotImplementedError in pandas.
717 "-k" "not test_fillna_no_op_returns_copy"
718 ; Disable tests that require internet access.
719 "-m" "not web")))))))
721 (list python-fiona python-pandas python-pyproj python-shapely))
723 (list python-pytest))
724 (home-page "http://geopandas.org")
725 (synopsis "Geographic pandas extensions")
726 (description "The goal of GeoPandas is to make working with
727 geospatial data in Python easier. It combines the capabilities of
728 Pandas and Shapely, providing geospatial operations in Pandas and a
729 high-level interface to multiple geometries to Shapely. GeoPandas
730 enables you to easily do operations in Python that would otherwise
731 require a spatial database such as PostGIS.")
732 (license license:bsd-3)))
734 (define-public mapnik
741 (uri (string-append "https://github.com/mapnik/mapnik/releases/download/v"
742 version "/mapnik-v" version ".tar.bz2"))
745 "06frcikaj2mgz3abfk5h0z4j3hbksi0zikwjngbjv4p5f3pwxf8q"))))
746 (build-system scons-build-system)
764 `(#:scons ,scons-python2
767 (string-append "PREFIX=" %output)
768 (string-append "CUSTOM_LDFLAGS=-Wl,-rpath=" %output "/lib"))))
769 (home-page "https://mapnik.org/")
770 (synopsis "Toolkit for developing mapping applications")
771 (description "Mapnik is a toolkit for developing mapping applications. It
772 is basically a collection of geographic objects like maps, layers,
773 datasources, features, and geometries. At its core is a C++ shared library
774 providing algorithms and patterns for spatial data access and visualization.
775 The library does not rely on any specific windowing system and can be deployed
776 to any server environment. It is intended to play fair in a multi-threaded
777 environment and is aimed primarily, but not exclusively, at web-based
779 (license (list license:lgpl2.1+
780 ;; demo/viewer, demo/python/rundemo.py
782 ;; deps/boost, deps/mapbox, deps/agg/include/agg_conv_offset.h
784 ;; deps/mapnik/sparsehash
787 (license:non-copyleft "file://deps/agg/copying")))))
789 (define-public spatialite-gui
791 (name "spatialite-gui")
792 (version "2.1.0-beta1")
797 "https://www.gaia-gis.it/gaia-sins/spatialite-gui-sources/"
798 "spatialite_gui-" version ".tar.gz"))
800 (base32 "0cyv4cycl073p9lnnnglcb72qn71g8h9g5zn4gzw7swcy5nxjj5s"))))
801 (build-system gnu-build-system)
826 `(#:phases (modify-phases %standard-phases
827 (add-after 'unpack 'fix-gui
829 ;; Fix for the GUI not showing up.
830 (substitute* "Main.cpp"
831 (("Hide\\(\\);") ""))
833 (synopsis "Graphical user interface for SpatiaLite")
834 (description "Spatialite-gui provides a visual interface for viewing and
835 maintaining a spatialite database. You can easily see the structure of the
836 tables and data contents using point and click functions, many of which
837 construct common SQL queries, or craft your own SQL queries.")
838 (home-page "https://www.gaia-gis.it/fossil/spatialite_gui/index")
839 (license license:gpl3+)))
848 "http://download.osgeo.org/gdal/" version "/gdal-"
852 "0nk09lws1hk873yn5f4wzqfvr82gm4hw3gq8w9g1h0kvf6j5x4i8"))
853 (modules '((guix build utils)))
856 ;; TODO: frmts contains a lot more bundled code.
857 (for-each delete-file-recursively
862 "frmts/jpeg/libjpeg12"
863 "frmts/gtiff/libtiff"
864 "frmts/gtiff/libgeotiff"
866 "ogr/ogrsf_frmts/geojson/libjson"))))))
867 (build-system gnu-build-system)
871 (let-syntax ((with (syntax-rules ()
873 (string-append option "="
874 (assoc-ref %build-inputs input))))))
876 ;; TODO: --with-pcidsk, --with-pcraster
877 (with "--with-freexl" "freexl")
878 (with "--with-libjson-c" "json-c")
879 (with "--with-png" "libpng")
880 (with "--with-webp" "libwebp")
881 (with "--with-gif" "giflib")
882 (with "--with-jpeg" "libjpeg-turbo")
883 (with "--with-libtiff" "libtiff")
884 (with "--with-geotiff" "libgeotiff")
885 (with "--with-libz" "zlib")
886 (with "--with-expat" "expat")
887 (with "--with-sqlite3" "sqlite")
890 (modify-phases %standard-phases
891 (add-before 'build 'fix-path
893 (substitute* "frmts/mrf/mrf_band.cpp"
894 (("\"../zlib/zlib.h\"") "<zlib.h>")))))))
914 (home-page "https://gdal.org/")
915 (synopsis "Raster and vector geospatial data format library")
916 (description "GDAL is a translator library for raster and vector geospatial
917 data formats. As a library, it presents a single raster abstract data model
918 and single vector abstract data model to the calling application for all
919 supported formats. It also comes with a variety of useful command line
920 utilities for data translation and processing.")
924 ;; frmts/gtiff/tif_float.c, frmts/pcraster/libcsf,
925 ;; ogr/ogrsf_frmts/dxf/intronurbs.cpp, frmts/pdf/pdfdataset.cpp
928 ;; frmts/hdf4/hdf-eos/*
929 ;; similar to the expat license, but without guarantee exclusion
930 (license:non-copyleft "file://frmts/hdf4/hdf-eos/README")
931 ;; frmts/grib/degrib/
932 license:public-domain ; with guarantee exclusion
934 ;; Some bsd-inspired license
935 (license:non-copyleft "file://port/LICENCE_minizip")
936 ;; alg/internal_libqhull
937 ;; Some 5-clause license
938 (license:non-copyleft "file://alg/internal_libqhull/COPYING.txt")
942 (define-public python-gdal
943 (package (inherit gdal)
945 (build-system python-build-system)
947 '(#:tests? #f ; no tests
949 (modify-phases %standard-phases
950 (add-before 'build 'chdir
952 (chdir "swig/python")
959 (synopsis "GDAL (Geospatial Data Abstraction Library) python bindings")))
961 (define-public python-pyshp
963 (name "python-pyshp")
969 (url "https://github.com/GeospatialPython/pyshp")
971 (file-name (git-file-name name version))
973 (base32 "0jsraqzq82pw19wvx84x7w5cs8agr44a9b5y0jjw540wim4xa73r"))))
974 (build-system python-build-system)
977 (modify-phases %standard-phases
979 (lambda* (#:key tests? #:allow-other-keys)
981 ;; This is the only test file.
982 (invoke "python" "-m" "pytest" "test_shapefile.py")))))))
984 (list python-pytest python-pytest-runner))
985 (home-page "https://github.com/GeospatialPython/pyshp")
986 (synopsis "Read/write support for ESRI Shapefile format")
988 "The Python Shapefile Library (PyShp) reads and writes ESRI Shapefiles.")
989 (license license:expat)))
991 (define-public python-cartopy
993 (name "python-cartopy")
994 ;; This is a post-release fix that adds build_ext to setup.py.
995 (version "0.19.0.post1")
999 (uri (pypi-uri "Cartopy" version))
1001 (base32 "0xnm8z3as3hriivdfd26s6vn5b63gb46x6vxw6gh1mwfm5rlg2sb"))))
1002 (build-system python-build-system)
1005 (modify-phases %standard-phases
1007 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1009 (add-installed-pythonpath inputs outputs)
1010 (invoke "python" "-m" "pytest" "--pyargs" "cartopy"
1011 ;; These tests require online data.
1012 "-m" "not natural_earth and not network"
1013 ;; This one too but it's not marked as such.
1014 "-k" "not test_gridliner_labels_bbox_style")))))))
1016 (list python-matplotlib
1025 (list python-cython python-flufl-lock python-pytest))
1026 (home-page "https://scitools.org.uk/cartopy/docs/latest/")
1027 (synopsis "Cartographic library for visualisation")
1029 "Cartopy is a Python package designed to make drawing maps for data
1030 analysis and visualisation easy.
1035 @item object oriented projection definitions
1036 @item point, line, polygon and image transformations between projections
1037 @item integration to expose advanced mapping in Matplotlib with a simple and
1039 @item powerful vector data handling by integrating shapefile reading with
1040 Shapely capabilities
1042 (license license:lgpl3+)))
1044 (define-public postgis
1050 (uri (string-append "https://download.osgeo.org/postgis/source/postgis-"
1054 "1zbwa15rsvr05rmcidk21q3amndd0q4df4psp3zhqz4lqraf3fbs"))))
1055 (build-system gnu-build-system)
1059 (list (string-append "datadir=" (assoc-ref %outputs "out") "/share")
1060 (string-append "docdir="(assoc-ref %outputs "out") "/share/doc")
1061 (string-append "pkglibdir="(assoc-ref %outputs "out") "/lib")
1062 (string-append "bindir=" (assoc-ref %outputs "out") "/bin"))
1064 (modify-phases %standard-phases
1065 (add-before 'build 'fix-install-path
1066 (lambda* (#:key outputs #:allow-other-keys)
1067 (substitute* '("raster/loader/Makefile" "raster/scripts/python/Makefile")
1068 (("\\$\\(DESTDIR\\)\\$\\(PGSQL_BINDIR\\)")
1069 (string-append (assoc-ref outputs "out") "/bin"))))))))
1082 (list perl pkg-config))
1083 (home-page "https://postgis.net")
1084 (synopsis "Spatial database extender for PostgreSQL")
1085 (description "PostGIS is a spatial database extender for PostgreSQL
1086 object-relational database. It adds support for geographic objects allowing
1087 location queries to be run in SQL. This package provides a PostgreSQL
1092 ;; loader/dbfopen, safileio.*, shapefil.h, shpopen.c
1095 license:public-domain
1097 license:bsd-3 ; files only say "BSD"
1099 license:cc-by-sa3.0))))
1101 (define-public tegola
1108 "https://github.com/go-spatial/tegola/archive/v"
1110 (file-name (string-append name "-" version ".tar.gz"))
1113 "09vnzxfn0r70kmd776kcdfqxhzdj11syxa0b27z4ci1k367v7viw"))))
1114 (build-system go-build-system)
1116 `(#:import-path "github.com/go-spatial/tegola/cmd/tegola"
1117 #:unpack-path "github.com/go-spatial/tegola"
1119 (modify-phases %standard-phases
1120 (add-before 'build 'set-version
1122 (with-directory-excursion "src/github.com/go-spatial/tegola"
1123 (substitute* '("cmd/tegola/cmd/root.go"
1124 "cmd/tegola_lambda/main.go")
1125 (("version not set") ,version)))
1127 (home-page "https://tegola.io")
1128 (synopsis "Vector tile server for maps")
1129 (description "Tegola is a free vector tile server written in Go. Tegola
1130 takes geospatial data and slices it into vector tiles that can be efficiently
1131 delivered to any client.")
1134 ;; Some packages in vendor have other licenses
1140 (define-public imposm3
1147 (uri (string-append "https://github.com/omniscale/imposm3/archive/v"
1149 (file-name (string-append name "-" version ".tar.gz"))
1152 "1w7b221z5k9254zn01imycxkyw62xigqizhwvrgxqmq1m9r5410l"))))
1153 (build-system go-build-system)
1155 `(#:import-path "github.com/omniscale/imposm3/cmd/imposm"
1156 #:unpack-path "github.com/omniscale/imposm3"
1158 (modify-phases %standard-phases
1159 (add-before 'build 'set-version
1161 (substitute* "src/github.com/omniscale/imposm3/version.go"
1162 (("0.0.0-dev") ,version))
1165 (list geos leveldb))
1166 (home-page "https://imposm.org/")
1167 (synopsis "OpenStreetMap importer for PostGIS")
1168 (description "Imposm is an importer for OpenStreetMap data. It reads PBF
1169 files and imports the data into PostgreSQL/PostGIS databases. It is designed
1170 to create databases that are optimized for rendering/tile/map-services.")
1173 ;; Some dependencies in vendor have different licenses
1178 (define-public libosmium
1186 (url "https://github.com/osmcode/libosmium")
1187 (commit (string-append "v" version))))
1188 (file-name (git-file-name name version))
1190 (base32 "0xgwicnzlyr8pcpgx528xrzh7g6rjfd7f80bi30478fnp8mq8rzr"))))
1191 (build-system cmake-build-system)
1206 (home-page "https://osmcode.org/libosmium/")
1207 (synopsis "C++ library for working with OpenStreetMap data")
1208 (description "Libosmium is a fast and flexible C++ library for working with
1209 OpenStreetMap data.")
1210 (license license:boost1.0)))
1212 (define-public osm2pgsql
1220 (url "https://github.com/openstreetmap/osm2pgsql")
1222 (file-name (git-file-name name version))
1224 (base32 "0i18mskcs087dn3f3h9n7j0wafn8502m0h13mrjwin38xsz0crfj"))
1225 (modules '((guix build utils)))
1228 (delete-file-recursively "contrib/protozero")
1229 (delete-file-recursively "contrib/libosmium")
1231 (build-system cmake-build-system)
1233 `(#:tests? #f; tests fail because we need to setup a database
1235 (list (string-append "-DOSMIUM_INCLUDE_DIR="
1236 (assoc-ref %build-inputs "libosmium")
1238 (string-append "-DPROTOZERO_INCLUDE_DIR="
1239 (assoc-ref %build-inputs "protozero")
1252 (list python python-psycopg2))
1253 (home-page "https://github.com/openstreetmap/osm2pgsql")
1254 (synopsis "OSM data importer to postgresql")
1255 (description "Osm2pgsql is a tool for loading OpenStreetMap data into a
1256 PostgreSQL / PostGIS database suitable for applications like rendering into a
1257 map, geocoding with Nominatim, or general analysis.")
1258 (license license:gpl2+)))
1260 (define-public tippecanoe
1268 (url "https://github.com/mapbox/tippecanoe")
1270 (file-name (git-file-name name version))
1272 (base32 "0lbmhly4ivnqc6qk1k3sdqvsg6x3nfd8gnjx846bhqj4wag3f88m"))))
1273 (build-system gnu-build-system)
1276 (modify-phases %standard-phases (delete 'configure))
1277 #:test-target "test"
1279 (list (string-append "CC=" ,(cc-for-target))
1280 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
1282 (list perl sqlite zlib))
1283 (home-page "https://github.com/mapbox/tippecanoe")
1284 (synopsis "Vector tile server for maps")
1285 (description "Tippecanoe creates scale-independent view of data, so that
1286 the texture and density of features is visible at every zoom level, instead of
1287 dropping features at lower levels.")
1288 (license license:bsd-2)))
1290 (define-public osmctools
1298 (url "https://gitlab.com/osm-c-tools/osmctools")
1300 (file-name (git-file-name name version))
1303 "1m8d3r1q1v05pkr8k9czrmb4xjszw6hvgsf3kn9pf0v14gpn4r8f"))))
1304 (build-system gnu-build-system)
1306 (list autoconf automake))
1309 (home-page "https://gitlab.com/osm-c-tools/osmctools")
1310 (synopsis "Tools to convert, filter and update OpenStreetMap data files")
1311 (description "This project contains a few tools which are used in the
1312 OpenStreetMap project. They can be used to convert, filter and update
1313 OpenStreetMap data files.")
1314 (license license:agpl3)))
1316 (define-public osm-gps-map
1318 (name "osm-gps-map")
1324 "https://github.com/nzjrs/osm-gps-map/releases/download/"
1325 version "/osm-gps-map-" version ".tar.gz"))
1328 "11imsf4cz1dpxdjh178k2s29axmq86rkfg1pqmn7incyxmjzhbwg"))))
1329 (build-system gnu-build-system)
1331 (list gnome-common gtk-doc/stable pkg-config))
1333 (list cairo glib gobject-introspection gtk+ libsoup-minimal-2))
1334 (home-page "https://nzjrs.github.io/osm-gps-map/")
1335 (synopsis "GTK+ widget for displaying OpenStreetMap tiles")
1337 "This package provides a GTK+ widget (and Python bindings) that when
1338 given GPS coordinates,draws a GPS track, and points of interest on a moving
1339 map display. Downloads map data from a number of websites, including
1340 @url{https://www.openstreetmap.org}.")
1341 (license license:gpl2+)))
1343 (define-public xygrib
1350 (url "https://github.com/opengribs/XyGrib")
1351 (commit (string-append "v" version))))
1352 (file-name (git-file-name name version))
1353 (patches (search-patches "xygrib-fix-finding-data.patch"))
1356 "0xzsm8pr0zjk3f8j880fg5n82jyxn8xf1330qmmq1fqv7rsrg9ia"))
1357 (modules '((guix build utils)))
1360 (delete-file-recursively "data/fonts")
1361 ;; Fixes compilation, can be removed with the next release.
1362 ;; Upstream link: https://github.com/opengribs/XyGrib/pull/255
1363 (substitute* "src/SkewT.h"
1364 (("QMessageBox>") "QMessageBox>\n#include <QPainterPath>"))
1366 (build-system cmake-build-system)
1368 `(#:configure-flags (list "-DGNU_PACKAGE=ON")
1371 (modify-phases %standard-phases
1372 (add-after 'unpack 'patch-directories
1373 (lambda* (#:key inputs #:allow-other-keys)
1374 (let ((jpeg (assoc-ref inputs "openjpeg"))
1375 (font (assoc-ref inputs "font-liberation")))
1376 (substitute* "CMakeLists.txt"
1377 ;; Skip looking for the static library.
1378 (("\"libnova.a\"") ""))
1379 ;; Don't use the bundled font-liberation.
1380 (substitute* "src/util/Font.cpp"
1381 (("Util::pathFonts\\(\\)\\+\"liberation-fonts/\"")
1382 (string-append "\"" font "/share/fonts/truetype/\"")))
1383 (substitute* "src/util/Util.h"
1384 (("pathData\\(\\)\\+\"data/fonts/\"")
1385 (string-append "\"" font "/share/fonts/\"")))))))
1386 #:tests? #f)) ; no tests
1398 (native-search-paths
1399 (list (search-path-specification
1400 (variable "XDG_DATA_DIRS")
1401 (files '("share")))))
1402 (synopsis "Weather Forecast Visualization")
1404 "XyGrib is a Grib file reader and visualizes meteorological data providing
1405 an off-line capability to analyse weather forecasts or hindcasts. It is
1406 intended to be used as a capable weather work station for anyone with a serious
1407 interest in examining weather. This would include members of the sailing
1408 community, private and sport aviators, farmers, weather buffs and many more.
1409 XyGrib is the continuation of the zyGrib software package with a new team of
1411 (home-page "https://opengribs.org")
1412 (license license:gpl3+)))
1414 (define-public libspatialindex
1416 (name "libspatialindex")
1421 (uri (string-append "https://github.com/libspatialindex/libspatialindex/"
1422 "releases/download/" version "/spatialindex-src-"
1423 version ".tar.bz2"))
1426 "02n5vjcyk04w0djidyp21hfbxfpbbara8ifd9nml6158rwqr8lja"))))
1427 (build-system cmake-build-system)
1428 (home-page "https://libspatialindex.org")
1429 (synopsis "Spatial indexing library")
1430 (description "The purpose of this library is to provide:
1433 @item An extensible framework that will support robust spatial indexing
1435 @item Support for sophisticated spatial queries. Range, point location,
1436 nearest neighbor and k-nearest neighbor as well as parametric queries (defined
1437 by spatial constraints) should be easy to deploy and run.
1438 @item Easy to use interfaces for inserting, deleting and updating information.
1439 @item Wide variety of customization capabilities. Basic index and storage
1440 characteristics like the page size, node capacity, minimum fan-out, splitting
1441 algorithm, etc. should be easy to customize.
1442 @item Index persistence. Internal memory and external memory structures
1443 should be supported. Clustered and non-clustered indices should be easy to be
1447 (license license:expat)))
1449 (define-public python-rtree
1451 (name "python-rtree")
1456 (uri (pypi-uri "Rtree" version))
1458 (base32 "0gna530vy6rh76035cqh7i2lx199cvxjrzjczg9rm6k96k5751xy"))))
1459 (build-system python-build-system)
1462 (modify-phases %standard-phases
1463 (add-after 'unpack 'find-libspatialindex
1464 (lambda* (#:key inputs #:allow-other-keys)
1465 (setenv "SPATIALINDEX_C_LIBRARY"
1466 (string-append (assoc-ref inputs "libspatialindex")
1467 "/lib/libspatialindex.so"))))
1469 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1471 (add-installed-pythonpath inputs outputs)
1472 (invoke "python" "-m" "pytest")))))))
1474 (list python-numpy python-pytest python-wheel))
1476 (list libspatialindex))
1477 (home-page "https://github.com/Toblerity/rtree")
1478 (synopsis "R-Tree spatial index for Python GIS")
1480 "RTree is a Python package with bindings for @code{libspatialindex}.")
1481 (license license:expat)))
1483 (define-public java-jmapviewer
1485 (name "java-jmapviewer")
1489 (uri (string-append "https://svn.openstreetmap.org/applications/"
1490 "viewer/jmapviewer/releases/" version
1491 "/JMapViewer-" version "-Source.zip"))
1494 "0sy6r5fkbb9bclw0is6gwnbzz627m7pjfnsqydxz58pbndakkhrv"))))
1495 (build-system ant-build-system)
1499 `(#:build-target "pack"
1500 #:tests? #f; No tests
1502 (modify-phases %standard-phases
1503 (add-before 'build 'clean
1505 (invoke "ant" "clean")))
1507 (lambda* (#:key outputs #:allow-other-keys)
1508 (let ((dir (string-append (assoc-ref outputs "out") "/share/java/")))
1510 (copy-file "JMapViewer.jar" (string-append dir "JMapViewer.jar"))
1512 (home-page "https://wiki.openstreetmap.org/wiki/JMapViewer")
1513 (synopsis "OSM map integration in Java")
1514 (description "JMapViewer is a Java component which easily
1515 integrates an OSM map view into your Java application. It is maintained as
1516 an independent project by the JOSM team.")
1517 (license license:gpl2)))
1519 (define-public java-opening-hours-parser
1521 (name "java-opening-hours-parser")
1526 (url "https://github.com/simonpoole/OpeningHoursParser")
1528 (file-name (git-file-name name version))
1531 "0yhbd2ix6h506aljh0jkrnp28m4xcqdcdpnqm30fn08kawdgxgsh"))))
1532 (build-system ant-build-system)
1534 `(#:jar-name "java-opening-hours-parser.jar"
1535 #:source-dir "src/main/java"
1537 (modify-phases %standard-phases
1538 (add-before 'build 'copy-resources
1540 (copy-recursively "src/main/resources" "build/classes")
1542 (add-before 'build 'generate-parser
1544 (let* ((dir "src/main/java/ch/poole/openinghoursparser")
1545 (file (string-append dir "/OpeningHoursParser.jj")))
1546 (invoke "javacc" "-DEBUG_PARSER=false"
1547 "-DEBUG_TOKEN_MANAGER=false" "-JDK_VERSION=1.8"
1548 "-GRAMMAR_ENCODING=UTF-8"
1549 (string-append "-OUTPUT_DIRECTORY=" dir)
1553 (list java-jetbrains-annotations))
1555 (list javacc java-junit java-hamcrest-core))
1556 (home-page "https://github.com/simonpoole/OpeningHoursParser")
1557 (synopsis "Java parser for the OpenStreetMap opening hour format")
1558 (description "This is a very simplistic parser for string values according
1559 to the OSM opening hours specification.")
1560 (license license:expat)))
1569 (url "https://josm.openstreetmap.de/svn/trunk")
1570 (revision (string->number version))
1574 "0j7fhzh6hs2b5r1a3d1xpy6f5r6q1kh79bck28raang8ldd754c6"))
1575 (file-name (string-append name "-" version "-checkout"))
1576 (modules '((guix build utils)))
1579 (for-each delete-file (find-files "." ".*.jar$"))
1581 (build-system ant-build-system)
1585 (list java-commons-jcs
1586 java-commons-compress
1589 java-jsonp-impl ; runtime dependency
1591 java-metadata-extractor
1592 java-opening-hours-parser
1595 java-svg-salamander))
1598 #:jar-name "josm.jar"
1600 (modify-phases %standard-phases
1601 (add-after 'unpack 'rm-build.xml
1603 (delete-file "build.xml")
1605 (add-before 'build 'fix-revision
1607 (with-output-to-file "REVISION.XML"
1610 (string-append "<info><entry><commit revision=\"" ,version "\">"
1611 "<date>1970-01-01 00:00:00 +0000</date>"
1612 "</commit></entry></info>"))))
1614 (add-before 'build 'fix-jcs
1616 ;; This version of JOSM uses an unreleased version of commons-jcs,
1617 ;; which has renamed its classes to another namespace. Rename them
1618 ;; back so they can be used with our version of jcs.
1619 (substitute* (find-files "." ".*.java$")
1621 (("ICache.NAME_COMPONENT_DELIMITER") "\":\""))
1623 (add-before 'build 'fix-classpath
1624 (lambda* (#:key inputs #:allow-other-keys)
1629 (let ((source (assoc-ref inputs "source")))
1630 (not (equal? (substring s 0 (string-length source))
1632 (string-split (getenv "CLASSPATH") #\:))
1635 (add-before 'build 'generate-parser
1637 (let* ((dir "src/org/openstreetmap/josm/gui/mappaint/mapcss")
1638 (out (string-append dir "/parsergen"))
1639 (file (string-append dir "/MapCSSParser.jj")))
1640 (mkdir-p "src/org/openstreetmap/josm/gui/mappaint/mapcss/parsergen")
1641 (invoke "javacc" "-DEBUG_PARSER=false"
1642 "-DEBUG_TOKEN_MANAGER=false" "-JDK_VERSION=1.8"
1643 "-GRAMMAR_ENCODING=UTF-8"
1644 (string-append "-OUTPUT_DIRECTORY=" out)
1647 (add-after 'build 'generate-epsg
1649 (system* "javac" "scripts/BuildProjectionDefinitions.java"
1650 "-cp" "build/classes")
1651 (mkdir-p "data/projection")
1652 (with-output-to-file "data/projection/custom-epsg"
1653 (lambda _ (display "")))
1654 (invoke "java" "-cp" "build/classes:scripts:."
1655 "BuildProjectionDefinitions" ".")
1657 (add-after 'generate-epsg 'copy-resources
1659 (copy-recursively "resources" "build/classes")
1661 (add-before 'install 'regenerate-jar
1663 ;; We need to regenerate the jar file to add data.
1664 (delete-file "build/jar/josm.jar")
1665 (invoke "jar" "-cf" "build/jar/josm.jar" "-C"
1666 "build/classes" ".")
1668 (add-before 'build 'copy-revision
1670 (mkdir-p "build/classes")
1671 (with-output-to-file "build/classes/REVISION"
1674 (string-append "Revision: " ,version "\n"
1675 "Is-Local-Build: true\n"
1676 "Build-Date: 1970-01-01 00:00:00 +0000\n"))))
1678 (add-after 'install 'install-share-directories
1679 (lambda* (#:key outputs #:allow-other-keys)
1680 (let ((out (assoc-ref outputs "out"))
1681 (share-directories '("applications" "icons" "man" "menu"
1682 "metainfo" "mime" "pixmaps"))
1683 (desktop "org.openstreetmap.josm.desktop"))
1684 (for-each (lambda (directory)
1685 (copy-recursively (string-append
1686 "native/linux/tested/usr/share/"
1689 out "/share/" directory)))
1691 (substitute* (string-append out "/share/applications/" desktop)
1692 (("josm-MainApplication") "josm-gui-MainApplication")))
1694 (add-after 'install 'install-bin
1695 (lambda* (#:key outputs inputs #:allow-other-keys)
1696 (let* ((out (assoc-ref outputs "out"))
1697 (bin (string-append out "/bin")))
1699 (with-output-to-file (string-append bin "/josm")
1702 (string-append "#!/bin/sh\n"
1703 (assoc-ref inputs "jdk") "/bin/java"
1704 " -cp " out "/share/java/josm.jar:"
1705 (getenv "CLASSPATH")
1706 " org.openstreetmap.josm.gui.MainApplication"))))
1707 (chmod (string-append bin "/josm") #o755))
1709 (home-page "https://josm.openstreetmap.de")
1710 (synopsis "OSM editor")
1711 (description "JOSM is an extensible editor for OpenStreetMap (OSM). It
1712 supports loading GPX tracks, background imagery and OSM data from local
1713 sources as well as from online sources and allows editing the OSM data (nodes,
1714 ways, and relations) and their metadata tags.")
1715 (license license:gpl2+)))
1717 (define-public libmaxminddb
1719 (name "libmaxminddb")
1724 (uri (string-append "https://github.com/maxmind/libmaxminddb"
1725 "/releases/download/" version "/"
1726 "/libmaxminddb-" version ".tar.gz"))
1728 (base32 "0fd4a4sxiiwzbd5h74wl1ijnb7xybjyybb7q41vdq3w8nk3zdzd5"))))
1729 (build-system gnu-build-system)
1732 (list ,(string-append "CC=" (cc-for-target)))))
1735 (home-page "https://maxmind.github.io/libmaxminddb/")
1736 (synopsis "C library for the MaxMind DB file format")
1737 (description "The libmaxminddb library provides a C library for reading
1738 MaxMind DB files, including the GeoIP2 databases from MaxMind. The MaxMind DB
1739 format is a custom, but open, binary format designed to facilitate fast
1740 lookups of IP addresses while allowing flexibility in the type of data
1741 associated with an address.")
1742 (license license:asl2.0)))
1744 (define-public python-maxminddb
1746 (name "python-maxminddb")
1751 (uri (pypi-uri "maxminddb" version))
1754 "0y9giw81k4wdmpryr4k42w50z292mf364a6vs1vxf83ksc9ig6j4"))))
1755 (build-system python-build-system)
1757 `(#:tests? #f)) ;; Tests require a copy of the maxmind database
1759 (list libmaxminddb))
1760 (home-page "https://www.maxmind.com/")
1761 (synopsis "Reader for the MaxMind DB format")
1762 (description "MaxMind DB is a binary file format that stores data indexed
1763 by IP address subnets (IPv4 or IPv6). This is a Python module for reading
1765 (license license:asl2.0)))
1767 (define-public python-geoip2
1769 (name "python-geoip2")
1774 (uri (pypi-uri "geoip2" version))
1777 "1w7cay5q6zawjzivqbwz5cqx1qbdjw6kbriccb7l46p7b39fkzzp"))))
1778 (build-system python-build-system)
1780 `(#:tests? #f)) ;; Tests require a copy of the maxmind database
1782 (list python-maxminddb python-requests))
1783 (home-page "https://www.maxmind.com/")
1784 (synopsis "MaxMind GeoIP2 API")
1785 (description "Provides an API for the GeoIP2 web services and databases.
1786 The API also works with MaxMind’s free GeoLite2 databases.")
1787 (license license:asl2.0)))
1789 (define-public routino
1796 (uri (string-append "http://www.routino.org/download/routino-"
1799 (base32 "1xa7l2bjn832nk6bc7b481nv8hd2gj41jwhg0d2qy10lqdvjpn5b"))))
1800 (build-system gnu-build-system)
1804 (list bzip2 xz zlib))
1806 `(#:test-target "test"
1808 (modify-phases %standard-phases
1810 (lambda* (#:key outputs #:allow-other-keys)
1811 (substitute* "Makefile.conf"
1812 (("prefix=/usr/local")
1813 (string-append "prefix=" (assoc-ref outputs "out")))
1814 (("LDFLAGS_LDSO=-Wl,-R\\.")
1815 "LDFLAGS_LDSO=-Wl,-R$(libdir)")
1816 (("#CFLAGS\\+=-DUSE_XZ")
1818 (("#LDFLAGS\\+=-llzma")
1821 (synopsis "Routing application for OpenStreetMap data")
1823 "Routino is an application for finding a route between two points
1824 using the dataset of topographical information collected by
1825 @url{https://www.OpenStreetMap.org}.")
1826 (home-page "https://www.routino.org/")
1827 (license license:agpl3+)))
1829 (define-public qmapshack
1837 (url "https://github.com/Maproom/qmapshack")
1838 (commit (string-append "V_" version))))
1839 (file-name (git-file-name name version))
1841 (base32 "184fqmsfzr3b333ssizjk6gvv7mncmygq8dj5r7rsvs5md26z2ys"))))
1842 (build-system qt-build-system)
1844 (list pkg-config qttools))
1856 sqlite ; See wrap phase
1861 (modify-phases %standard-phases
1862 (add-after 'unpack 'fix-cmake-modules
1863 (lambda* (#:key inputs #:allow-other-keys)
1864 (substitute* "CMakeLists.txt"
1865 (("find_package\\(Qt5PrintSupport REQUIRED\\)" all)
1866 (string-append all "\nfind_package(Qt5Positioning REQUIRED)")))
1867 (substitute* "cmake/Modules/FindROUTINO.cmake"
1869 (assoc-ref inputs "routino"))))))))
1870 (synopsis "GPS mapping application")
1872 "QMapShack can be used to plan your next outdoor trip or to visualize and
1873 archive all the GPS recordings of your past trips. It is the successor of the
1874 QLandkarte GT application.")
1875 (home-page "https://github.com/Maproom/qmapshack/wiki")
1876 (license license:gpl3+)))
1878 (define-public readosm
1885 (uri (string-append "https://www.gaia-gis.it/gaia-sins/"
1886 "readosm-" version ".tar.gz"))
1888 (base32 "0igif2bxf4dr82glxz9gyx5mmni0r2dsnx9p9k6pxv3c4lfhaz6v"))))
1889 (build-system gnu-build-system)
1892 (synopsis "Data extractor for OpenStreetMap files")
1894 "ReadOSM is a library to extract valid data from within an OpenStreetMap
1895 input file (in @code{.osm} or @code{.osm.pbf} format).")
1896 (home-page "https://www.gaia-gis.it/fossil/readosm/index")
1897 (license (list license:gpl2+
1901 (define-public shapelib
1909 (url "https://github.com/OSGeo/shapelib")
1910 (commit (string-append "v" version))))
1911 (file-name (git-file-name name version))
1913 (base32 "1lzch0jf6yqhw391phhafzw4ghmiz98zkf698h4fmq109fa2vhqd"))))
1914 (build-system gnu-build-system)
1916 (list autoconf automake libtool))
1917 (home-page "http://shapelib.maptools.org/")
1918 (synopsis "Provides C library to write and update ESRI Shapefiles")
1920 "The Shapefile C Library provides the ability to write simple C programs
1921 for reading, writing and updating (to a limited extent) ESRI Shapefiles, and the
1922 associated attribute file (@file{.dbf}).")
1923 (license license:gpl2+)))
1925 (define-public spatialite-tools
1927 (name "spatialite-tools")
1932 (uri (string-append "https://www.gaia-gis.it/gaia-sins/"
1933 "spatialite-tools-" version ".tar.gz"))
1935 (base32 "070p6pg541wvwb28wkn7k0z1qdyirik2qc2jpj4pf0vzx02w414n"))))
1936 (build-system gnu-build-system)
1950 (synopsis "Collection of command line tools for SpatiaLite")
1952 "@code{spatialite-tools} is a collection of Command Line Interface (CLI)
1953 tools supporting SpatiaLite.")
1954 (home-page "https://www.gaia-gis.it/fossil/spatialite-tools/index")
1955 (license license:gpl3+)))
1957 (define-public virtualpg
1964 (uri (string-append "https://www.gaia-gis.it/gaia-sins/"
1965 "virtualpg-" version ".tar.gz"))
1967 (base32 "12z0l7368r4116ljzg7nljy5hf425r11vxc540w79wlzikmynamy"))))
1968 (build-system gnu-build-system)
1970 (list postgresql sqlite))
1971 (synopsis "Allow SQLite/SpatiaLite to access PostgreSQL/PostGIS tables")
1973 "VirtualPG is a dynamic extension for the SQLite DBMS. It implements
1974 the VirtualPostgres driver, allowing to directly exchange data between SQLite
1975 and PostgreSQL; if SpatiaLite is available even PostGIS geometries can be
1976 exchanged form one Spatial DBMS and the other.")
1977 (home-page "https://www.gaia-gis.it/fossil/virtualpg/index")
1978 (license (list license:gpl2+
1982 (define-public opencpn
1990 (url "https://github.com/OpenCPN/OpenCPN")
1991 (commit (string-append "v" version))))
1992 (file-name (git-file-name name version))
1994 (base32 "0ffx0lmz1mp5433zqyxigy4qqav32xprpagd66krvihkyvqp2y6y"))))
1995 (build-system cmake-build-system)
1997 `(("gettext" ,gettext-minimal)
1998 ("pkg-config" ,pkg-config)))
2020 `(#:configure-flags '("-DOCPN_USE_BUNDLED_LIBS=OFF"
2021 "-DOCPN_ENABLE_PORTAUDIO=ON"
2022 "-DOCPN_ENABLE_SNDFILE=ON"
2023 "-DOCPN_BUNDLE_TCDATA=ON"
2024 "-DOCPN_BUNDLE_GSHHS=ON")
2025 #:tests? #f ; No tests defined
2027 (modify-phases %standard-phases
2028 (add-after 'unpack 'fix-build
2029 (lambda* (#:key inputs #:allow-other-keys)
2030 (substitute* "CMakeLists.txt"
2033 (("\"/bin/sh\" \"-c\"")
2034 (string-append "\"" (which "bash") "\" \"-c\""))
2035 (("include\\(TargetSetup\\)")
2036 "set(PKG_TARGET \"guix\")\nset(PKG_TARGET_VERSION 1)")))))))
2037 (synopsis "Chart plotter and marine GPS navigation software")
2039 "OpenCPN is a chart plotter and marine navigation software designed to be
2040 used at the helm station of your boat while underway. Chart a course and
2041 track your position right from your laptop.")
2042 (home-page "https://opencpn.org/")
2043 (license (list license:asl2.0
2054 (define-public openorienteering-mapper
2056 (name "openorienteering-mapper")
2061 (url "https://github.com/OpenOrienteering/mapper")
2062 (commit (string-append "v" version))))
2063 (file-name (git-file-name name version))
2066 "11b578h8f3q9yvphbjhqmy2w1cfc9skslzawypqmc3k44v24aj0s"))))
2067 (build-system cmake-build-system)
2072 "-DLICENSING_PROVIDER:BOOL=OFF"
2073 "-DMapper_MANUAL_QTHELP:BOOL=OFF")))
2075 `(("clipper" ,clipper)
2079 ("qtbase" ,qtbase-5)
2080 ("qtimageformats" ,qtimageformats)
2081 ("qtlocation" ,qtlocation)
2082 ("qtsensors" ,qtsensors)
2085 `(("doxygen" ,doxygen)
2086 ("qttools" ,qttools)))
2087 (home-page "https://www.openorienteering.org/apps/mapper/")
2088 (synopsis "OpenOrienteering Mapper (OOM)")
2090 "OpenOrienteering Mapper is a software for creating maps for the
2091 orienteering sport.")
2092 (license license:gpl3+)))
2094 (define-public grass
2095 (let* ((version "7.8.6")
2096 (majorminor (string-join (list-head (string-split version #\.) 2) ""))
2097 (grassxx (string-append "grass" majorminor)))
2104 (uri (string-append "https://grass.osgeo.org/" grassxx
2105 "/source/grass-" version ".tar.gz"))
2107 (base32 "1glk74ly3j0x8ymn4jp73s6y8qv7p3g5nv4gvb6l9qqplyq1fpnq"))))
2108 (build-system gnu-build-system)
2113 ("freetype" ,freetype)
2119 ("libtiff" ,libtiff)
2121 ("mariadb-dev" ,mariadb "dev")
2122 ("mariadb-lib" ,mariadb "lib")
2124 ("openblas" ,openblas)
2126 ("postgresql" ,postgresql)
2129 ("python-dateutil" ,python-dateutil)
2130 ("python-numpy" ,python-numpy)
2131 ("python-wxpython" ,python-wxpython)
2132 ("readline" ,readline)
2134 ("wxwidgets" ,wxwidgets)
2136 ("zstd" ,zstd "lib")))
2138 `(("bash" ,bash-minimal)
2141 ("pkg-config" ,pkg-config)))
2143 `(#:tests? #f ; No tests
2144 #:modules ((guix build gnu-build-system)
2145 ((guix build python-build-system) #:prefix python:)
2147 #:imported-modules (,@%gnu-build-system-modules
2148 (guix build python-build-system))
2150 (modify-phases %standard-phases
2152 (lambda* (#:key inputs outputs #:allow-other-keys)
2153 (let ((shell (search-input-file inputs "/bin/bash")))
2154 (setenv "SHELL" shell)
2155 (setenv "CONFIG_SHELL" shell)
2156 (setenv "LDFLAGS" (string-append "-Wl,-rpath -Wl,"
2157 (assoc-ref outputs "out")
2158 "/" ,grassxx "/lib")))
2159 (invoke "./configure"
2160 (string-append "--prefix="
2161 (assoc-ref outputs "out"))
2164 (string-append "--with-freetype-includes="
2165 (assoc-ref inputs "freetype")
2166 "/include/freetype2")
2167 (string-append "--with-freetype-libs="
2168 (assoc-ref inputs "freetype")
2173 (string-append "--with-mysql-includes="
2174 (assoc-ref inputs "mariadb-dev")
2176 (string-append "--with-mysql-libs="
2177 (assoc-ref inputs "mariadb-lib")
2181 (string-append "--with-proj-share="
2182 (assoc-ref inputs "proj")
2187 "--with-wxwidgets")))
2188 (add-after 'install 'install-links
2189 (lambda* (#:key outputs #:allow-other-keys)
2190 ;; Put links for includes and libraries in the standard places.
2191 (let* ((out (assoc-ref outputs "out"))
2192 (dir (string-append out "/" ,grassxx)))
2193 (symlink (string-append dir "/include")
2194 (string-append out "/include"))
2195 (symlink (string-append dir "/lib")
2196 (string-append out "/lib")))
2198 (add-after 'install-links 'python:wrap
2199 (assoc-ref python:%standard-phases 'wrap))
2200 (add-after 'python:wrap 'wrap-with-python-interpreter
2201 (lambda* (#:key outputs #:allow-other-keys)
2202 (let ((out (assoc-ref outputs "out")))
2203 (wrap-program (string-append out "/bin/" ,grassxx)
2204 `("GRASS_PYTHON" = (,(which "python3"))))
2206 (synopsis "GRASS Geographic Information System")
2208 "GRASS (Geographic Resources Analysis Support System), is a Geographic
2209 Information System (GIS) software suite used for geospatial data management and
2210 analysis, image processing, graphics and maps production, spatial modeling, and
2212 (home-page "https://grass.osgeo.org/")
2213 (license license:gpl2+))))
2222 (uri (string-append "mirror://sourceforge/saga-gis/SAGA%20-%20"
2223 (version-major version) "/SAGA%20-%20" version
2224 "/saga-" version ".tar.gz"))
2226 (base32 "1n051yxxkylly0k9rlkx2ih3j2lf9d4csg00sm7161r7nhjvggd1"))))
2227 (build-system gnu-build-system)
2229 (list pkg-config swig))
2247 '(#:configure-flags '("--enable-python")))
2248 (synopsis "System for Automated Geoscientific Analyses")
2250 "SAGA (System for Automated Geoscientific Analyses) is a Geographic
2251 Information System (GIS) software. It has been designed for an easy and
2252 effective implementation of spatial algorithms and it offers a comprehensive,
2253 growing set of geoscientific methods.")
2254 (home-page "http://www.saga-gis.org")
2255 (license (list license:gpl2+ license:lgpl2.1+))))
2264 (uri (string-append "https://qgis.org/downloads/qgis-"
2265 version ".tar.bz2"))
2267 (base32 "012dv8dcg7w4lf6k37i41wialwhi0kpkxw2dnq19yqqk35632mzx"))))
2268 (build-system cmake-build-system)
2270 `(#:modules ((guix build cmake-build-system)
2271 ((guix build python-build-system) #:prefix python:)
2272 (guix build qt-utils)
2274 #:imported-modules (,@%cmake-build-system-modules
2275 (guix build python-build-system)
2276 (guix build qt-utils))
2278 '("-DWITH_QTWEBKIT=NO")
2280 (modify-phases %standard-phases
2281 ;; Configure correct path to PyQt5 SIP directory
2282 (add-after 'unpack 'configure-pyqt5-sip-path
2283 (lambda* (#:key inputs #:allow-other-keys)
2284 (substitute* "cmake/FindPyQt5.py"
2285 (("sip_dir = cfg.default_sip_dir")
2286 (string-append "sip_dir = \""
2287 (assoc-ref inputs "python-pyqt+qscintilla")
2289 ;; Fix building with python-sip@5.
2291 ;; The reason for this is that python-sip@5 introduces some
2292 ;; changes such as a new build system 'sip-build' as well as the
2293 ;; use of the path "/lib/pythonX.X/site-packages/*/bindings/"
2294 ;; instead of "/share/sip/" for .sip files. However, we do not
2295 ;; actually use that those yet. QGIS detects SIP5 and assumes we
2296 ;; are, messing up the build. The long term solution is to fully
2297 ;; upgrade SIP, use sip-build and fix all failing packages, but
2298 ;; for now I just want to get the build working.
2299 ((".pyqt_sip_dir...os.path.join.*,")
2300 (string-append "'pyqt_sip_dir': \""
2301 (assoc-ref inputs "python-pyqt+qscintilla")
2302 "/share/sip" "\",")))
2303 (substitute* (list "scripts/prepare_commit.sh"
2304 "scripts/qstringfixup.sh"
2305 "scripts/release.pl"
2306 "scripts/runtests_local_travis_config.sh"
2307 "scripts/sip_include.sh"
2309 "scripts/sipify_all.sh"
2310 "scripts/spell_check/check_spelling.sh"
2311 "scripts/spell_check/spell_test.sh"
2312 "scripts/verify_indentation.sh"
2313 "tests/code_layout/test_banned_keywords.sh"
2314 "tests/code_layout/test_licenses.sh"
2315 "tests/code_layout/test_shellcheck.sh"
2316 "tests/code_layout/test_sip_include.sh"
2317 "tests/code_layout/test_sipfiles.sh"
2318 "tests/code_layout/test_sipify.sh")
2319 (("\\$\\(git rev-parse --show-toplevel\\)")
2321 (substitute* "tests/code_layout/test_sip_include.sh"
2322 (("^REV=.*") "REV=currentrev\n"))
2325 (lambda* (#:key inputs tests? #:allow-other-keys)
2327 (setenv "HOME" "/tmp")
2328 (system "Xvfb :1 &")
2329 (setenv "DISPLAY" ":1")
2330 (setenv "TRAVIS" "true")
2331 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
2334 '(;; Disable tests that require network access
2335 "qgis_filedownloader"
2336 ;; TODO: Find why the following tests fail
2337 "ProcessingGdalAlgorithmsRasterTest"
2338 "ProcessingGdalAlgorithmsVectorTest"
2339 "ProcessingGrass7AlgorithmsImageryTest"
2340 "ProcessingGrass7AlgorithmsRasterTest"
2341 "ProcessingGrass7AlgorithmsVectorTest"
2342 "ProcessingOtbAlgorithmsTest"
2343 "ProcessingQgisAlgorithmsTestPt1"
2344 "ProcessingQgisAlgorithmsTestPt2"
2345 "ProcessingQgisAlgorithmsTestPt3"
2346 "ProcessingQgisAlgorithmsTestPt4"
2350 "PyQgsAuthBasicMethod"
2351 "PyQgsAuthenticationSystem"
2352 "PyQgsAuxiliaryStorage"
2353 "PyQgsDBManagerGpkg"
2354 "PyQgsDBManagerSpatialite"
2356 "PyQgsFieldValidator"
2360 "PyQgsImportIntoPostGIS"
2361 "PyQgsLayerDependencies"
2362 "PyQgsLayerMetadata"
2364 "PyQgsLayoutExporter"
2367 "PyQgsLayoutMapGrid"
2371 "PyQgsOGRProviderGpkg"
2372 "PyQgsOapifProvider"
2373 "PyQgsPalLabelingLayout"
2375 "PyQgsProviderConnectionGpkg"
2376 "PyQgsProviderConnectionPostgres"
2377 "PyQgsProviderConnectionSpatialite"
2378 "PyQgsPythonProvider"
2380 "PyQgsRulebasedRenderer"
2381 "PyQgsSelectiveMasking"
2383 "PyQgsShapefileProvider"
2384 "PyQgsSpatialiteProvider"
2386 "PyQgsSymbolExpressionVariables"
2388 "PyQgsVectorFileWriter"
2390 "PyQgsVectorLayerUtils"
2391 "PyQgsVirtualLayerProvider"
2393 "qgis_arcgisrestutilstest"
2394 "qgis_authmanagertest"
2395 "qgis_compositionconvertertest"
2396 "qgis_coordinatereferencesystemtest"
2397 "qgis_expressiontest"
2398 "qgis_fontmarkertest"
2399 "qgis_geometrycheckstest"
2401 "qgis_gpsinformationwidget"
2402 "qgis_grassprovidertest7"
2403 "qgis_imagecachetest"
2404 "qgis_labelingenginetest"
2405 "qgis_layouthtmltest"
2406 "qgis_layoutlabeltest"
2407 "qgis_layoutmanualtabletest"
2408 "qgis_layoutmapgridtest"
2409 "qgis_layoutmaptest"
2410 "qgis_layoutmultiframetest"
2411 "qgis_layoutpicturetest"
2412 "qgis_layouttabletest"
2414 "qgis_mapdevicepixelratiotest"
2415 "qgis_maprendererjobtest"
2416 "qgis_ogrproviderguitest"
2417 "qgis_painteffecttest"
2418 "qgis_pallabelingtest"
2419 "qgis_processingtest"
2420 "qgis_rasterlayertest"
2426 "qgis_svgmarkertest"
2427 "qgis_taskmanagertest"
2428 "qgis_wcsprovidertest"
2429 "qgis_ziplayertest")
2431 (add-after 'install 'wrap-python
2432 (assoc-ref python:%standard-phases 'wrap))
2433 (add-after 'wrap-python 'wrap-qt
2434 (lambda* (#:key outputs inputs #:allow-other-keys)
2435 (let ((out (assoc-ref outputs "out")))
2436 (wrap-qt-program "qgis" #:output out #:inputs inputs))
2438 (add-after 'wrap-qt 'wrap-gis
2439 (lambda* (#:key inputs outputs #:allow-other-keys)
2440 ;; TODO: Find if there is a way to get SAGA to work.
2441 ;; Currently QGIS says "version of SAGA not supported".
2442 ;; Disable it for now.
2443 (let* ((out (assoc-ref outputs "out"))
2444 ;;(saga (string-append (assoc-ref inputs "saga") "/bin"))
2445 (grass-version ,(package-version grass))
2446 (grass-majorminor (string-join
2448 (string-split grass-version #\.) 2)
2450 (grass (string-append (assoc-ref inputs "grass")
2451 "/grass" grass-majorminor)))
2452 (wrap-program (string-append out "/bin/qgis")
2453 ;;`("PATH" ":" prefix (,saga))
2454 `("QGIS_PREFIX_PATH" = (,out))
2455 `("GISBASE" = (,grass))))
2484 python-pyqt+qscintilla
2512 xorg-server-for-tests))
2513 (home-page "https://qgis.org")
2514 (synopsis "Geographical information system")
2515 (description "QGIS is an easy to use Geographical Information
2516 System (GIS). It is a GIS data viewer and editor. QGIS supports a number of
2517 raster and vector data formats, with new support easily added using the plugin
2530 (license:fsdg-compatible "https://www.deviantart.com/elvensword")
2531 (license:fsf-free "file://debian/copyright" "Go Squared")
2535 "https://www.deviantart.com/webgoddess/art/Reddish-Inspired-Gradients-42208824")
2537 "file://debian/copyright"
2538 "QT-Commercial or LGPL-2.1 with Digia Qt LGPL Exception 1.1 or GPL-3")
2548 (license:non-copyleft "file://debian/copyright" "BSD-like-gist")
2549 (license:non-copyleft "file://debian/copyright" "Jim Mossman Attribution")
2550 (license:non-copyleft
2551 "https://www.ncl.ucar.edu/Download/NCL_source_license.shtml"
2552 "NCL Source Code License")
2555 license:public-domain
2558 (define-public python-geographiclib
2560 (name "python-geographiclib")
2565 (uri (pypi-uri "geographiclib" version))
2568 "0cn6ap5fkh3mkfa57l5b44z3gvz7j6lpmc9rl4g2jny2gvp4dg8j"))))
2569 (build-system python-build-system)
2570 (home-page "https://geographiclib.sourceforge.io/1.50/python/")
2571 (synopsis "Python geodesic routines from GeographicLib")
2573 "This is a python implementation of the geodesic routines in GeographicLib.")
2574 (license license:expat)))
2576 (define-public python-geopy
2578 (name "python-geopy")
2583 (uri (pypi-uri "geopy" version))
2586 "0fx0cv0kgbvynpmjgsvq2fpsyngd5idiscdn8pd5201f1ngii3mq"))))
2587 (build-system python-build-system)
2589 (list python-geographiclib))
2591 (list python-async-generator
2596 python-pytest-aiohttp
2597 python-readme-renderer
2599 (home-page "https://github.com/geopy/geopy")
2600 (synopsis "Geocoding library for Python")
2601 (description "@code{geopy} is a Python client for several popular geocoding
2602 web services. @code{geopy} makes it easy for Python developers to locate the
2603 coordinates of addresses, cities, countries, and landmarks across the globe
2604 using third-party geocoders and other data sources.")
2605 (license license:expat)))
2607 (define-public gplates
2613 (uri "https://www.earthbyte.org/download/8421/")
2614 (file-name (string-append name "-" version ".tar.bz2"))
2617 "0lrcmcxc924ixddii8cyglqlwwxvk7f00g4yzbss5i3fgcbh8n96"))))
2618 (build-system cmake-build-system)
2620 `(#:configure-flags (list "-DBoost_NO_BOOST_CMAKE=ON")
2621 #:tests? #f)) ;no test target
2632 ("python-3" ,python-3)
2633 ("python-numpy" ,python-numpy)
2636 ("qtxmlpatterns" ,qtxmlpatterns)
2639 (home-page "https://www.gplates.org")
2640 (synopsis "Plate tectonics simulation program")
2641 (description "GPlates is a plate tectonics program. Manipulate
2642 reconstructions of geological and paleogeographic features through geological
2643 time. Interactively visualize vector, raster and volume data.")
2644 (license license:gpl2+)))