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, 2022 Marius Bakke <marius@gnu.org>
15 ;;; Copyright © 2020 Christopher Baines <mail@cbaines.net>
16 ;;; Copyright © 2020, 2021, 2022 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, 2022 Nikolay Korotkiy <sikmir@disroot.org>
21 ;;; Copyright © 2022 Roman Scherer <roman.scherer@burningswell.com>
22 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages geo)
40 #:use-module (guix build-system ant)
41 #:use-module (guix build-system cmake)
42 #:use-module (guix build-system glib-or-gtk)
43 #:use-module (guix build-system gnu)
44 #:use-module (guix build-system go)
45 #:use-module (guix build-system meson)
46 #:use-module (guix build-system python)
47 #:use-module (guix build-system qt)
48 #:use-module (guix build-system scons)
49 #:use-module (guix build-system r)
50 #:use-module (guix gexp)
51 #:use-module (guix download)
52 #:use-module (guix git-download)
53 #:use-module (guix svn-download)
54 #:use-module ((guix licenses) #:prefix license:)
55 #:use-module (guix packages)
56 #:use-module (guix utils)
57 #:use-module (gnu packages)
58 #:use-module (gnu packages algebra)
59 #:use-module (gnu packages astronomy)
60 #:use-module (gnu packages audio)
61 #:use-module (gnu packages autotools)
62 #:use-module (gnu packages backup)
63 #:use-module (gnu packages bash)
64 #:use-module (gnu packages bison)
65 #:use-module (gnu packages boost)
66 #:use-module (gnu packages build-tools)
67 #:use-module (gnu packages check)
68 #:use-module (gnu packages cmake)
69 #:use-module (gnu packages compression)
70 #:use-module (gnu packages cpp)
71 #:use-module (gnu packages cups)
72 #:use-module (gnu packages curl)
73 #:use-module (gnu packages databases)
74 #:use-module (gnu packages datastructures)
75 #:use-module (gnu packages docbook)
76 #:use-module (gnu packages documentation)
77 #:use-module (gnu packages elf)
78 #:use-module (gnu packages flex)
79 #:use-module (gnu packages fonts)
80 #:use-module (gnu packages fontutils)
81 #:use-module (gnu packages gettext)
82 #:use-module (gnu packages gl)
83 #:use-module (gnu packages glib)
84 #:use-module (gnu packages gnome)
85 #:use-module (gnu packages gps)
86 #:use-module (gnu packages graphics)
87 #:use-module (gnu packages gtk)
88 #:use-module (gnu packages haskell-apps)
89 #:use-module (gnu packages haskell-xyz)
90 #:use-module (gnu packages image)
91 #:use-module (gnu packages image-processing)
92 #:use-module (gnu packages icu4c)
93 #:use-module (gnu packages java)
94 #:use-module (gnu packages kde)
95 #:use-module (gnu packages libusb)
96 #:use-module (gnu packages linux)
97 #:use-module (gnu packages lua)
98 #:use-module (gnu packages maths)
99 #:use-module (gnu packages multiprecision)
100 #:use-module (gnu packages pcre)
101 #:use-module (gnu packages pdf)
102 #:use-module (gnu packages perl)
103 #:use-module (gnu packages photo)
104 #:use-module (gnu packages pkg-config)
105 #:use-module (gnu packages pretty-print)
106 #:use-module (gnu packages protobuf)
107 #:use-module (gnu packages pulseaudio)
108 #:use-module (gnu packages python)
109 #:use-module (gnu packages python-build)
110 #:use-module (gnu packages python-check)
111 #:use-module (gnu packages python-crypto)
112 #:use-module (gnu packages python-science)
113 #:use-module (gnu packages python-web)
114 #:use-module (gnu packages python-xyz)
115 #:use-module (gnu packages qt)
116 #:use-module (gnu packages readline)
117 #:use-module (gnu packages swig)
118 #:use-module (gnu packages sqlite)
119 #:use-module (gnu packages textutils)
120 #:use-module (gnu packages time)
121 #:use-module (gnu packages tls)
122 #:use-module (gnu packages web)
123 #:use-module (gnu packages webkit)
124 #:use-module (gnu packages wxwidgets)
125 #:use-module (gnu packages xml)
126 #:use-module (gnu packages xorg))
135 "https://code.mpimet.mpg.de/attachments/download/26823/cdo-"
139 "1khdbd5cmnn7qm6hcqg4md5wbq14fs6brrns8b3g18diqgqvpvpd"))))
140 (build-system gnu-build-system)
142 (list #:configure-flags
143 #~(list (string-append "--with-netcdf="
144 #$(this-package-input "netcdf")))))
149 (home-page "https://code.mpimet.mpg.de/projects/cdo")
150 (synopsis "Climate data operators")
151 (description "@acronym{CDO, Climate Data Operators} is a collection of command-line
152 operators to manipulate and analyse climate and NWP model data. Supported
153 data formats are GRIB 1/2, netCDF 3/4, SERVICE, EXTRA and IEG. There are more
154 than 600 operators available.")
155 (license license:bsd-3)))
157 (define-public memphis
166 (url "https://github.com/jiuka/memphis")
168 (file-name (git-file-name name version))
170 (base32 "068c3943pgbpfjq44pmvn5fmkh005ak5aa67vvrq3fn487c6w54q"))))
171 (build-system glib-or-gtk-build-system)
172 (outputs '("out" "doc"))
179 (string-append "--with-html-dir="
180 (assoc-ref %outputs "doc")
181 "/share/gtk-doc/html"))
183 (modify-phases %standard-phases
184 (add-after 'unpack 'patch-autogen
186 (substitute* "autogen.sh"
187 (("\\./configure \"\\$@\"")
190 (add-after 'patch-autogen 'patch-docbook-xml
191 (lambda* (#:key inputs #:allow-other-keys)
192 (with-directory-excursion "docs/reference"
193 (substitute* "libmemphis-docs.sgml"
194 (("http://www.oasis-open.org/docbook/xml/4.3/")
195 (string-append (assoc-ref inputs "docbook-xml")
196 "/xml/dtd/docbook/"))))
199 `(("autoconf" ,autoconf)
200 ("automake" ,automake)
201 ("docbook-xml" ,docbook-xml-4.3)
202 ("gobject-introspection" ,gobject-introspection)
203 ("gtk-doc" ,gtk-doc/stable)
205 ("pkg-config" ,pkg-config)
206 ("python" ,python-wrapper)
213 (synopsis "Map-rendering for OpenSteetMap")
214 (description "Memphis is a map-rendering application and a library for
215 OpenStreetMap written in C using eXpat, Cairo and GLib.")
216 (home-page "http://trac.openstreetmap.ch/trac/memphis/")
217 (license license:lgpl2.1+)))
225 (uri (string-append "http://download.osgeo.org/geos/geos-"
230 "12l59pxawyizmc4wn20dvjn7aifqwkim4ysmc78h91mayjmqravr"))))
231 (build-system cmake-build-system)
232 (arguments `(#:phases
233 (modify-phases %standard-phases
235 'unpack 'patch-test-shebangs
237 (substitute* '("tests/xmltester/testrunner.sh"
238 "tests/geostest/testrunner.sh")
239 (("/bin/sh") (which "sh"))))))))
242 (home-page "https://libgeos.org/")
243 (synopsis "Geometry Engine for Geographic Information Systems")
245 "GEOS provides a spatial object model and fundamental geometric
246 functions. It is a C++ port of the Java Topology Suite (JTS). As such,
247 it aims to contain the complete functionality of JTS in C++. This
248 includes all the OpenGIS Simple Features for SQL spatial predicate
249 functions and spatial operators, as well as specific JTS enhanced
250 topology functions.")
251 (license (list license:lgpl2.1+ ; Main distribution.
252 license:zlib ; tests/xmltester/tinyxml/*
253 license:public-domain)))) ; include/geos/timeval.h
255 (define-public gnome-maps
258 (version "43.rc") ;for libsoup 3 support
261 (uri (string-append "mirror://gnome/sources/" name "/"
262 (version-major version) "/"
263 name "-" version ".tar.xz"))
266 "16a3j896fwxgnvrmx27jnrvhxzh3v22paaq87ad57yp8wkq946il"))))
267 (build-system meson-build-system)
272 #~(modify-phases %standard-phases
273 (add-after 'unpack 'skip-gtk-update-icon-cache
274 ;; Don't create 'icon-theme.cache'.
276 (substitute* "meson_post_install.py"
277 (("gtk-update-icon-cache") "true"))))
278 (add-after 'unpack 'patch-dbus-service
280 (substitute* "data/org.gnome.Maps.service.in"
281 (("@pkgdatadir@/org.gnome.Maps")
282 (string-append #$output "/bin/gnome-maps")))))
283 (add-after 'install 'wrap
285 (wrap-program (string-append #$output "/bin/gnome-maps")
286 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))))))))
288 (list gettext-minimal
290 gobject-introspection
294 evolution-data-server
301 gnome-online-accounts
302 gsettings-desktop-schemas
313 pango-next ;TODO: remove when it's the default
316 (synopsis "Graphical map viewer and wayfinding program")
317 (description "GNOME Maps is a graphical map viewer. It uses map data from
318 the OpenStreetMap project. It can provide directions for walking, bicycling,
320 (home-page "https://wiki.gnome.org/Apps/Maps")
321 (license license:gpl2+)))
323 (define-public libgeotiff
330 (uri (string-append "http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-"
333 (base32 "1mjmgv48x51ppax5dnb6lq7z600czxll53bx6jbzqwd4m93i7aq5"))
334 (modules '((guix build utils)))
337 ;; Remove .csv files, distributed from EPSG under a restricted
338 ;; license. See LICENSE for full license text.
339 (for-each delete-file (find-files "." "\\.csv$"))
341 (build-system gnu-build-system)
343 (list libjpeg-turbo libtiff zlib))
345 (list ;; libgeotiff headers include proj headers, so ensure those are available.
349 (list "--disable-static"
350 "--with-zlib" "--with-jpeg"
351 (string-append "--with-libtiff=" (assoc-ref %build-inputs "libtiff")))))
352 (synopsis "Library for handling GeoTIFF (geographic enabled TIFF)")
353 (description "libgeotiff is a library on top of libtiff for reading and
354 writing GeoTIFF information tags.")
355 (home-page "https://trac.osgeo.org/geotiff/")
356 ;; This is a mixture of various contributions under different licenses.
357 ;; Note that the EPSG database is NOT "free to use" as the LICENSE file
358 ;; states, as its commercial redistribution is restricted. Hence, we have
359 ;; removed it from the package.
360 (license (list license:public-domain
363 (license:non-copyleft "file://LICENSE"
364 "See LICENSE in the distribution.")))))
366 (define-public librasterlite2
368 (name "librasterlite2")
369 (version "1.1.0-beta1")
374 "https://www.gaia-gis.it/gaia-sins/librasterlite2-sources/"
375 "librasterlite2-" version ".tar.gz"))
378 "1x24gqp4hsq97c31ncwxblab0x0863q8v1z42jil7lvsq3glqa7p"))))
379 (build-system gnu-build-system)
402 (synopsis "Library to work with huge raster coverages using a SpatiaLite")
404 "librasterlite2 is a library that stores and retrieves huge raster
405 coverages using a SpatiaLite DBMS.")
406 (home-page "https://www.gaia-gis.it/fossil/librasterlite2/index")
407 ;; For the genuine librasterlite-sources holds:
408 ;; Any of the licenses MPL1.1, GPL2+ or LGPL2.1+ may be picked.
409 ;; Files under src/control_points are from GRASS
410 ;; and are licensed under GPL2+ only.
411 ;; src/md5.[ch]: Placed into the public domain by Alexander Peslyak.
412 ;; The tools supporting the library (both rl2tool and wmslite) are
413 ;; licensed under the GPL v3 (or any subsequent version) terms.
414 ;; The test/*.svg files are placed in the public domain, except for
415 ;; test/Car_Yellow.svg which is licensed under the Free Art License 1.3.
416 (license (list license:gpl2+
421 license:public-domain))))
423 (define-public librttopo
431 (url "https://git.osgeo.org/gitea/rttopo/librttopo")
432 (commit (string-append "librttopo-" version))))
433 (file-name (git-file-name name version))
435 (base32 "0h7lzlkn9g4xky6h81ndy0aa6dxz8wb6rnl8v3987jy1i6pr072p"))))
436 (build-system gnu-build-system)
439 (modify-phases %standard-phases
440 (add-after 'unpack 'patch-autogen
442 (let ((autoconf (which "autoconf"))
443 (autoheader (which "autoheader"))
444 (aclocal (which "aclocal"))
445 (automake (which "automake"))
446 (libtoolize (which "libtoolize")))
447 (substitute* "autogen.sh"
448 (("`which autoconf 2>/dev/null`") autoconf)
449 (("`which autoheader 2>/dev/null`") autoheader)
451 (string-append "ACLOCAL=" aclocal "\n"))
453 (string-append "AUTOMAKE=" automake "\n"))
455 (string-append "LIBTOOLIZE=" libtoolize "\n"))))
458 (list autoconf automake libtool pkg-config))
461 (synopsis "Library to handle SQL/MM topologies")
463 "The RT Topology Library exposes an API to create and manage standard
464 (ISO 13249 aka SQL/MM) topologies using user-provided data stores.")
465 (home-page "https://git.osgeo.org/gitea/rttopo/librttopo")
466 (license license:gpl2+)))
468 (define-public libspatialite
470 (name "libspatialite")
475 (uri (string-append "https://www.gaia-gis.it/gaia-sins/libspatialite-"
479 "164y82rw2lrp5glfc0rkn7n6xvx5dvlgmh7bb7815067251wkjzf"))))
480 (build-system gnu-build-system)
493 '("--enable-rttopo=yes")
494 ;; FIXME: Several tests fail with Proj 9.
497 (modify-phases %standard-phases
498 ;; 1 test is failing, ignore it:
499 (add-after 'unpack 'ignore-broken-tests
501 (substitute* '("test/Makefile.in")
502 (("check_wms\\$\\(EXEEXT\\) check_drop_rename\\$\\(EXEEXT\\) ")
503 "check_wms$(EXEEXT) ")))))))
504 (synopsis "Extend SQLite to support Spatial SQL capabilities")
506 "SpatiaLite is a library intended to extend the SQLite core to support
507 fully fledged Spatial SQL capabilities.")
508 (home-page "https://www.gaia-gis.it/fossil/libspatialite/index")
509 ;; For the genuine libspatialite-sources holds:
510 ;; Any of the licenses MPL1.1, GPL2+ or LGPL2.1+ may be picked.
511 ;; Files under src/control_points are from GRASS
512 ;; and are licensed under GPL2+ only.
513 ;; src/md5.[ch]: Placed into the public domain by Alexander Peslyak.
514 (license (list license:gpl2+
517 license:public-domain))))
526 (uri (string-append "http://download.osgeo.org/proj/proj-"
530 "0593vd9sac0c98j1f4rammd90d4xnhygbr6d49i8il6ajjdj7cl1"))))
531 (build-system cmake-build-system)
532 (native-inputs (list googletest pkg-config))
533 (propagated-inputs (list curl libtiff sqlite)) ;required by proj.pc
534 (home-page "https://proj.org/")
535 (synopsis "Coordinate transformation software")
537 "Proj is a generic coordinate transformation software that transforms
538 geospatial coordinates from one @acronym{CRS, coordinate reference system}
539 to another. This includes cartographic projections as well as geodetic
540 transformations. Proj includes command line applications for easy
541 conversion of coordinates from text files or directly from user input.
542 In addition, Proj also exposes an application programming interface that
543 lets developers use the functionality of Proj in their own software.")
544 (license (list license:expat
545 ;; src/projections/patterson.cpp
547 ;; src/geodesic.*, src/tests/geodtest.cpp
550 ; This is the last version of proj that provides the old proj.4 API.
551 (define-public proj-7
552 (package (inherit proj)
557 (uri (string-append "http://download.osgeo.org/proj/proj-"
561 "050apzdn0isxpsblys1shrl9ccli5vd32kgswlgx1imrbwpg915k"))))
563 `(#:configure-flags '("-DUSE_EXTERNAL_GTEST=ON")
565 (modify-phases %standard-phases
566 (add-after 'unpack 'fix-version
568 (substitute* "CMakeLists.txt"
569 (("MAJOR 7 MINOR 2 PATCH 0") "MAJOR 7 MINOR 2 PATCH 1")))))))))
571 (define-public proj.4
577 (uri (string-append "http://download.osgeo.org/proj/proj-"
581 "1xw5f427xk9p2nbsj04j6m5zyjlyd66sbvl2bkg8hd1kx8pm9139"))))
582 (build-system gnu-build-system)
585 (modify-phases %standard-phases
586 (add-after 'unpack 'patch-test-paths
588 (substitute* '("nad/test27"
594 (("/bin/rm") (which "rm")))
596 ;; Precision problems on i686 and other platforms. See:
597 ;; https://web.archive.org/web/20151006134301/http://trac.osgeo.org/proj/ticket/255
598 ;; Disable failing test.
599 (add-after 'patch-test-paths 'ignore-failing-tests
601 (substitute* '("nad/Makefile.in")
602 (("\tPROJ_LIB.*" all) (string-append "#" all)))
606 (home-page "https://proj.org/")
607 (synopsis "Cartographic Projections Library")
609 "Proj.4 is a library for converting coordinates between cartographic
611 (license (list license:expat
612 ;; src/PJ_patterson.c
616 ;; Embedded EPSG database.
617 (license:non-copyleft "http://www.epsg.org/TermsOfUse")
621 (define-public python-pyproj
623 (name "python-pyproj")
628 (uri (pypi-uri "pyproj" version))
631 "1gjg63irs44djyqbp9gg7s02d0y5i9cd1a83phyzp5fcj56y3n5k"))))
632 (build-system python-build-system)
635 (modify-phases %standard-phases
636 (add-after 'unpack 'set-proj-path
637 (lambda* (#:key inputs #:allow-other-keys)
638 (let ((proj (assoc-ref inputs "proj")))
639 (setenv "PROJ_DIR" proj)
640 (substitute* "pyproj/datadir.py"
641 (("(internal_datadir = ).*$" all var)
642 (string-append var "Path(\"" proj "/share/proj\")\n")))))))))
646 (list python-certifi))
648 (list python-cython python-numpy python-pandas python-pytest
650 (home-page "https://github.com/pyproj4/pyproj")
652 "Python interface to PROJ")
654 "This package provides a Python interface to PROJ, a cartographic
655 projections and coordinate transformations library.")
656 (license license:expat)))
658 (define-public python-fiona
660 (name "python-fiona")
665 (uri (pypi-uri "Fiona" version))
668 "0fql7i7dg1xpbadmk8d26dwp91v7faixxc4wq14zg0kvhp9041d7"))))
669 (build-system python-build-system)
672 (modify-phases %standard-phases
673 (add-before 'check 'remove-local-fiona
675 ; This would otherwise interfere with finding the installed
676 ; fiona when running tests.
677 (delete-file-recursively "fiona")))
679 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
680 (add-installed-pythonpath inputs outputs)
681 (setenv "GDAL_ENABLE_DEPRECATED_DRIVER_GTM" "YES")
684 "-m" "not network and not wheel"
685 ;; FIXME: Find why the
686 ;; test_no_append_driver_cannot_append[PCIDSK]
688 "-k" "not test_no_append_driver_cannot_append")))))))
702 (list gdal ; for gdal-config
707 (home-page "https://github.com/Toblerity/Fiona")
709 "Fiona reads and writes spatial data files")
711 "Fiona is GDAL’s neat and nimble vector API for Python programmers.
712 Fiona is designed to be simple and dependable. It focuses on reading
713 and writing data in standard Python IO style and relies upon familiar
714 Python types and protocols such as files, dictionaries, mappings, and
715 iterators instead of classes specific to OGR. Fiona can read and write
716 real-world data using multi-layered GIS formats and zipped virtual file
717 systems and integrates readily with other Python GIS packages such as
718 pyproj, Rtree, and Shapely.")
719 (license license:bsd-3)))
721 (define-public python-geopandas
723 (name "python-geopandas")
728 (uri (pypi-uri "geopandas" version))
731 "1nvim2i47ap1zdwy6kxydskf1cir5g4ij8124wvmrqij0zklggzg"))))
732 (build-system python-build-system)
735 (modify-phases %standard-phases
737 (lambda* (#:key tests? #:allow-other-keys)
740 ; Disable tests that fail due to incompatibilities
741 ; with our pandas version.
744 "not test_getitem_invalid"
745 " and not test_value_counts"
746 " and not test_setitem_invalid"
747 " and not test_insert_invalid")
748 ; Disable tests that require internet access.
749 "-m" "not web")))))))
751 (list python-fiona python-pandas python-pyproj python-shapely))
753 (list python-pytest))
754 (home-page "http://geopandas.org")
755 (synopsis "Geographic pandas extensions")
756 (description "The goal of GeoPandas is to make working with
757 geospatial data in Python easier. It combines the capabilities of
758 Pandas and Shapely, providing geospatial operations in Pandas and a
759 high-level interface to multiple geometries to Shapely. GeoPandas
760 enables you to easily do operations in Python that would otherwise
761 require a spatial database such as PostGIS.")
762 (license license:bsd-3)))
764 (define-public python-osmnx
766 (name "python-osmnx")
770 ; Fetch from github as the pypi package is missing the tests dir.
773 (url "https://github.com/gboeing/osmnx")
774 (commit (string-append "v" version))))
775 (file-name (git-file-name name version))
777 (base32 "1n8qjn184p5a2s3j6x6iyc1i7p3l3xnbqqxm6ajwgwv6j5fw1d5a"))))
778 (build-system python-build-system)
781 (modify-phases %standard-phases
783 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
785 (add-installed-pythonpath inputs outputs)
786 ; TODO: Disable network tests
787 (invoke "pytest" "tests"
790 ;; The following tests require network access.
791 "not test_geocode_to_gdf"
792 " and not test_stats"
793 " and not test_osm_xml"
794 " and not test_elevation"
795 " and not test_routing"
796 " and not test_plots"
797 " and not test_find_nearest"
798 " and not test_api_endpoints"
799 " and not test_graph_save_load"
800 " and not test_graph_from_functions"
801 " and not test_geometries"))))))))
814 (list python-numpy python-pytest))
815 (home-page "https://github.com/gboeing/osmnx")
817 "Retrieve, model, analyze, and visualize OpenStreetMap street networks")
819 "OSMnx is a Python library that lets you download geospatial data
820 from OpenStreetMap and model, project, visualize, and analyze real-world
821 street networks and any other geospatial geometries. You can download
822 and model walkable, drivable, or bikeable urban networks with a single
823 line of Python code then easily analyze and visualize them. You can
824 just as easily download and work with other infrastructure types,
825 amenities/points of interest, building footprints, elevation data,
826 street bearings/orientations, and speed/travel time.")
827 (license license:expat)))
829 (define-public mapnik
830 ;; There hasn't been a release since early 2021, and it fails to build with
832 (let ((commit "81103491b467e17218140f50bc0bb9dc8c1f0317")
836 (version (git-version "3.1.0" revision commit))
841 (url "https://github.com/mapnik/mapnik")
843 ;; TODO: Un-bundle mapbox dependencies (not yet packaged).
844 (recursive? #t))) ;for mapbox dependencies and test data
845 (file-name (git-file-name name version))
847 (base32 "094nam57bdd5nak88qy33z2p3kjahk3vk2nk56m5jkcr5d3hlnx2"))))
848 (build-system qt-build-system)
851 #:cmake cmake ;for FIND_PACKAGE_ARGS
853 #~(list (string-append "-DCMAKE_CXX_FLAGS=-I"
854 #$(this-package-native-input "catch2")
857 #~(modify-phases %standard-phases
858 (add-after 'unpack 'use-system-catch2
860 (substitute* "test/CMakeLists.txt"
861 (("GIT_TAG.*v2.13.7" all)
862 (string-append all "\n"
863 " FIND_PACKAGE_ARGS NAMES Catch2"))
864 (("^include.*Catch2_SOURCE_DIR.*contrib/Catch.cmake.*")
865 "include(Catch)\n"))))
866 (add-after 'unpack 'disable-problematic-tests
868 ;; The 'ogr' test fails for unknown reasons. Mark it as
869 ;; expected to fail (see:
870 ;; https://github.com/mapnik/mapnik/issues/4329).
871 (substitute* "test/unit/datasource/ogr.cpp"
872 (("TEST_CASE\\(\"ogr\"" all)
873 (string-append all ", \"[!shouldfail]\""))))))))
893 (home-page "https://mapnik.org/")
894 (synopsis "Toolkit for developing mapping applications")
895 (description "Mapnik is a toolkit for developing mapping applications. It
896 is basically a collection of geographic objects like maps, layers,
897 datasources, features, and geometries. At its core is a C++ shared library
898 providing algorithms and patterns for spatial data access and visualization.
899 The library does not rely on any specific windowing system and can be deployed
900 to any server environment. It is intended to play fair in a multi-threaded
901 environment and is aimed primarily, but not exclusively, at web-based
903 (license (list license:lgpl2.1+
904 ;; demo/viewer, demo/python/rundemo.py
906 ;; deps/boost, deps/mapbox, deps/agg/include/agg_conv_offset.h
908 ;; deps/mapnik/sparsehash
911 (license:non-copyleft "file://deps/agg/copying"))))))
913 (define-public spatialite-gui
915 (name "spatialite-gui")
916 (version "2.1.0-beta1")
921 "https://www.gaia-gis.it/gaia-sins/spatialite-gui-sources/"
922 "spatialite_gui-" version ".tar.gz"))
924 (base32 "0cyv4cycl073p9lnnnglcb72qn71g8h9g5zn4gzw7swcy5nxjj5s"))))
925 (build-system gnu-build-system)
950 `(#:phases (modify-phases %standard-phases
951 (add-after 'unpack 'fix-gui
953 ;; Fix for the GUI not showing up.
954 (substitute* "Main.cpp"
955 (("Hide\\(\\);") ""))
957 (synopsis "Graphical user interface for SpatiaLite")
958 (description "Spatialite-gui provides a visual interface for viewing and
959 maintaining a spatialite database. You can easily see the structure of the
960 tables and data contents using point and click functions, many of which
961 construct common SQL queries, or craft your own SQL queries.")
962 (home-page "https://www.gaia-gis.it/fossil/spatialite_gui/index")
963 (license license:gpl3+)))
972 "http://download.osgeo.org/gdal/" version "/gdal-"
976 "1l93q7xf6qx9ck5axfkf3ygmvclxkvrjd8x00ckn7j0d0750ci3w"))
977 (modules '((guix build utils)))
980 ;; TODO: frmts contains a lot more bundled code.
981 (for-each delete-file-recursively
986 "frmts/jpeg/libjpeg12"
987 "frmts/gtiff/libtiff"
988 "frmts/gtiff/libgeotiff"
990 "ogr/ogrsf_frmts/geojson/libjson"))))))
991 (build-system cmake-build-system)
995 (list "-DGDAL_USE_INTERNAL_LIBS=WHEN_NO_EXTERNAL"
996 "-DGDAL_USE_JPEG12_INTERNAL=OFF")))
1019 (home-page "https://gdal.org/")
1020 (synopsis "Raster and vector geospatial data format library")
1021 (description "GDAL is a translator library for raster and vector geospatial
1022 data formats. As a library, it presents a single raster abstract data model
1023 and single vector abstract data model to the calling application for all
1024 supported formats. It also comes with a variety of useful command line
1025 utilities for data translation and processing.")
1029 ;; frmts/gtiff/tif_float.c, frmts/pcraster/libcsf,
1030 ;; ogr/ogrsf_frmts/dxf/intronurbs.cpp, frmts/pdf/pdfdataset.cpp
1033 ;; frmts/hdf4/hdf-eos/*
1034 ;; similar to the expat license, but without guarantee exclusion
1035 (license:non-copyleft "file://frmts/hdf4/hdf-eos/README")
1036 ;; frmts/grib/degrib/
1037 license:public-domain ; with guarantee exclusion
1038 ;; port/cpl_minizip*
1039 ;; Some bsd-inspired license
1040 (license:non-copyleft "file://port/LICENCE_minizip")
1041 ;; alg/internal_libqhull
1042 ;; Some 5-clause license
1043 (license:non-copyleft "file://alg/internal_libqhull/COPYING.txt")
1044 ;; frmts/mrf/libLERC
1047 (define-public python-gdal
1048 (package (inherit gdal)
1049 (name "python-gdal")
1050 (build-system python-build-system)
1052 '(#:tests? #f ; no tests
1054 (modify-phases %standard-phases
1055 (add-before 'build 'chdir
1057 (chdir "swig/python")
1061 (list python-numpy))
1064 (synopsis "GDAL (Geospatial Data Abstraction Library) python bindings")))
1066 (define-public python-pyshp
1068 (name "python-pyshp")
1074 (url "https://github.com/GeospatialPython/pyshp")
1076 (file-name (git-file-name name version))
1078 (base32 "0jsraqzq82pw19wvx84x7w5cs8agr44a9b5y0jjw540wim4xa73r"))))
1079 (build-system python-build-system)
1082 (modify-phases %standard-phases
1084 (lambda* (#:key tests? #:allow-other-keys)
1086 ;; This is the only test file.
1087 (invoke "python" "-m" "pytest" "test_shapefile.py")))))))
1089 (list python-pytest python-pytest-runner))
1090 (home-page "https://github.com/GeospatialPython/pyshp")
1091 (synopsis "Read/write support for ESRI Shapefile format")
1093 "The Python Shapefile Library (PyShp) reads and writes ESRI Shapefiles.")
1094 (license license:expat)))
1096 (define-public python-cartopy
1098 (name "python-cartopy")
1099 ;; This is a post-release fix that adds build_ext to setup.py.
1104 (uri (pypi-uri "Cartopy" version))
1106 (base32 "01lhnkhw22jp6hnrs5qvgkq4fqcni2sx7ydiyv8w8xxx5wpglq0d"))))
1107 (build-system python-build-system)
1110 (modify-phases %standard-phases
1112 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1114 (add-installed-pythonpath inputs outputs)
1115 (invoke "python" "-m" "pytest" "--pyargs" "cartopy"
1116 ;; These tests require online data.
1117 "-m" "not natural_earth and not network"
1118 ;; This one too but it's not marked as such.
1119 "-k" "not test_gridliner_labels_bbox_style")))))))
1121 (list python-matplotlib
1130 ;; cartopy's setup.py looks for the proj executable.
1131 ;; Not sure if it actually makes use of it since it
1132 ;; probably uses proj only through pyproj.
1135 (list python-cython python-flufl-lock python-pytest))
1136 (home-page "https://scitools.org.uk/cartopy/docs/latest/")
1137 (synopsis "Cartographic library for visualisation")
1139 "Cartopy is a Python package designed to make drawing maps for data
1140 analysis and visualisation easy.
1145 @item object oriented projection definitions
1146 @item point, line, polygon and image transformations between projections
1147 @item integration to expose advanced mapping in Matplotlib with a simple and
1149 @item powerful vector data handling by integrating shapefile reading with
1150 Shapely capabilities
1152 (license license:lgpl3+)))
1154 (define-public postgis
1160 (uri (string-append "https://download.osgeo.org/postgis/source/postgis-"
1164 "0gl9d6xy2an82ldb9sixz5blyngjryq8m3509fr38ffawvfniazv"))))
1165 (build-system gnu-build-system)
1169 (list (string-append "datadir=" (assoc-ref %outputs "out") "/share")
1170 (string-append "docdir="(assoc-ref %outputs "out") "/share/doc")
1171 (string-append "pkglibdir="(assoc-ref %outputs "out") "/lib")
1172 (string-append "bindir=" (assoc-ref %outputs "out") "/bin"))
1174 (modify-phases %standard-phases
1175 (add-before 'build 'fix-install-path
1176 (lambda* (#:key outputs #:allow-other-keys)
1177 (substitute* '("raster/loader/Makefile" "raster/scripts/python/Makefile")
1178 (("\\$\\(DESTDIR\\)\\$\\(PGSQL_BINDIR\\)")
1179 (string-append (assoc-ref outputs "out") "/bin"))))))))
1193 (list perl pkg-config))
1194 (home-page "https://postgis.net")
1195 (synopsis "Spatial database extender for PostgreSQL")
1196 (description "PostGIS is a spatial database extender for PostgreSQL
1197 object-relational database. It adds support for geographic objects allowing
1198 location queries to be run in SQL. This package provides a PostgreSQL
1203 ;; loader/dbfopen, safileio.*, shapefil.h, shpopen.c
1206 license:public-domain
1208 license:bsd-3 ; files only say "BSD"
1210 license:cc-by-sa3.0))))
1212 (define-public tegola
1219 "https://github.com/go-spatial/tegola/archive/v"
1221 (file-name (string-append name "-" version ".tar.gz"))
1224 "09vnzxfn0r70kmd776kcdfqxhzdj11syxa0b27z4ci1k367v7viw"))))
1225 (build-system go-build-system)
1227 `(#:import-path "github.com/go-spatial/tegola/cmd/tegola"
1228 #:unpack-path "github.com/go-spatial/tegola"
1230 (modify-phases %standard-phases
1231 (add-before 'build 'set-version
1233 (with-directory-excursion "src/github.com/go-spatial/tegola"
1234 (substitute* '("cmd/tegola/cmd/root.go"
1235 "cmd/tegola_lambda/main.go")
1236 (("version not set") ,version)))
1238 (home-page "https://tegola.io")
1239 (synopsis "Vector tile server for maps")
1240 (description "Tegola is a free vector tile server written in Go. Tegola
1241 takes geospatial data and slices it into vector tiles that can be efficiently
1242 delivered to any client.")
1245 ;; Some packages in vendor have other licenses
1251 (define-public imposm3
1258 (uri (string-append "https://github.com/omniscale/imposm3/archive/v"
1260 (file-name (string-append name "-" version ".tar.gz"))
1263 "1w7b221z5k9254zn01imycxkyw62xigqizhwvrgxqmq1m9r5410l"))))
1264 (build-system go-build-system)
1266 `(#:import-path "github.com/omniscale/imposm3/cmd/imposm"
1267 #:unpack-path "github.com/omniscale/imposm3"
1269 (modify-phases %standard-phases
1270 (add-before 'build 'set-version
1272 (substitute* "src/github.com/omniscale/imposm3/version.go"
1273 (("0.0.0-dev") ,version))
1276 (list geos leveldb))
1277 (home-page "https://imposm.org/")
1278 (synopsis "OpenStreetMap importer for PostGIS")
1279 (description "Imposm is an importer for OpenStreetMap data. It reads PBF
1280 files and imports the data into PostgreSQL/PostGIS databases. It is designed
1281 to create databases that are optimized for rendering/tile/map-services.")
1284 ;; Some dependencies in vendor have different licenses
1289 (define-public libosmium
1297 (url "https://github.com/osmcode/libosmium")
1298 (commit (string-append "v" version))))
1299 (file-name (git-file-name name version))
1301 (base32 "0fh57mpii1ksacwfx5rz213j896aklib53jbybld2i517q2mmxr0"))))
1302 (build-system cmake-build-system)
1317 (home-page "https://osmcode.org/libosmium/")
1318 (synopsis "C++ library for working with OpenStreetMap data")
1319 (description "Libosmium is a fast and flexible C++ library for working with
1320 OpenStreetMap data.")
1321 (license license:boost1.0)))
1323 (define-public osmium-tool
1325 (name "osmium-tool")
1331 (url "https://github.com/osmcode/osmium-tool")
1332 (commit (string-append "v" version))))
1333 (file-name (git-file-name name version))
1335 (base32 "0zgyqyrs89vch0qnkh9m5xq079sr2wmydy5zz4l8xbysbjf6xry5"))
1336 (modules '((guix build utils)))
1338 ;; Remove bundled libraries.
1339 '(delete-file-recursively "include/rapidjson"))))
1340 (build-system cmake-build-system)
1346 (home-page "https://osmcode.org/osmium-tool/")
1347 (synopsis "Osmium command-line tool")
1348 (description "Command line tool for working with OpenStreetMap data
1349 based on the Osmium library.")
1350 (license license:gpl3+)))
1352 (define-public osm2pgsql
1360 (url "https://github.com/openstreetmap/osm2pgsql")
1362 (file-name (git-file-name name version))
1364 (base32 "15fxr4xq7siy237763l7nswx7v0swr3qzs2h3zkjzgvajw4p6qii"))
1365 (modules '((guix build utils)))
1367 ;; Remove bundled libraries.
1368 '(delete-file-recursively "contrib"))))
1369 (build-system cmake-build-system)
1371 `(#:tests? #f; tests fail because we need to setup a database
1373 (list "-DEXTERNAL_LIBOSMIUM=ON"
1374 "-DEXTERNAL_PROTOZERO=ON"
1376 "-DEXTERNAL_RAPIDJSON=ON")))
1390 (list python python-psycopg2))
1391 (home-page "https://github.com/openstreetmap/osm2pgsql")
1392 (synopsis "OSM data importer to postgresql")
1393 (description "Osm2pgsql is a tool for loading OpenStreetMap data into a
1394 PostgreSQL / PostGIS database suitable for applications like rendering into a
1395 map, geocoding with Nominatim, or general analysis.")
1396 (license license:gpl2+)))
1398 (define-public tippecanoe
1406 (url "https://github.com/mapbox/tippecanoe")
1408 (file-name (git-file-name name version))
1410 (base32 "0lbmhly4ivnqc6qk1k3sdqvsg6x3nfd8gnjx846bhqj4wag3f88m"))))
1411 (build-system gnu-build-system)
1414 (modify-phases %standard-phases (delete 'configure))
1415 #:test-target "test"
1417 (list (string-append "CC=" ,(cc-for-target))
1418 (string-append "PREFIX=" (assoc-ref %outputs "out")))))
1420 (list perl sqlite zlib))
1421 (home-page "https://github.com/mapbox/tippecanoe")
1422 (synopsis "Vector tile server for maps")
1423 (description "Tippecanoe creates scale-independent view of data, so that
1424 the texture and density of features is visible at every zoom level, instead of
1425 dropping features at lower levels.")
1426 (license license:bsd-2)))
1428 (define-public osmctools
1436 (url "https://gitlab.com/osm-c-tools/osmctools")
1438 (file-name (git-file-name name version))
1441 "1m8d3r1q1v05pkr8k9czrmb4xjszw6hvgsf3kn9pf0v14gpn4r8f"))))
1442 (build-system gnu-build-system)
1444 (list autoconf automake))
1447 (home-page "https://gitlab.com/osm-c-tools/osmctools")
1448 (synopsis "Tools to convert, filter and update OpenStreetMap data files")
1449 (description "This project contains a few tools which are used in the
1450 OpenStreetMap project. They can be used to convert, filter and update
1451 OpenStreetMap data files.")
1452 (license license:agpl3)))
1454 (define-public osm-gps-map
1456 (name "osm-gps-map")
1462 "https://github.com/nzjrs/osm-gps-map/releases/download/"
1463 version "/osm-gps-map-" version ".tar.gz"))
1466 "11imsf4cz1dpxdjh178k2s29axmq86rkfg1pqmn7incyxmjzhbwg"))))
1467 (build-system gnu-build-system)
1469 (list gnome-common gtk-doc/stable pkg-config))
1471 (list cairo glib gobject-introspection gtk+ libsoup-minimal-2))
1472 (home-page "https://nzjrs.github.io/osm-gps-map/")
1473 (synopsis "GTK+ widget for displaying OpenStreetMap tiles")
1475 "This package provides a GTK+ widget (and Python bindings) that when
1476 given GPS coordinates,draws a GPS track, and points of interest on a moving
1477 map display. Downloads map data from a number of websites, including
1478 @url{https://www.openstreetmap.org}.")
1479 (license license:gpl2+)))
1481 (define-public xygrib
1488 (url "https://github.com/opengribs/XyGrib")
1489 (commit (string-append "v" version))))
1490 (file-name (git-file-name name version))
1491 (patches (search-patches "xygrib-fix-finding-data.patch"))
1494 "0xzsm8pr0zjk3f8j880fg5n82jyxn8xf1330qmmq1fqv7rsrg9ia"))
1495 (modules '((guix build utils)))
1498 (delete-file-recursively "data/fonts")
1499 ;; Fixes compilation, can be removed with the next release.
1500 ;; Upstream link: https://github.com/opengribs/XyGrib/pull/255
1501 (substitute* "src/SkewT.h"
1502 (("QMessageBox>") "QMessageBox>\n#include <QPainterPath>"))
1504 (build-system cmake-build-system)
1506 `(#:configure-flags (list "-DGNU_PACKAGE=ON")
1509 (modify-phases %standard-phases
1510 (add-after 'unpack 'patch-directories
1511 (lambda* (#:key inputs #:allow-other-keys)
1512 (let ((jpeg (assoc-ref inputs "openjpeg"))
1513 (font (assoc-ref inputs "font-liberation")))
1514 (substitute* "CMakeLists.txt"
1515 ;; Skip looking for the static library.
1516 (("\"libnova.a\"") ""))
1517 ;; Don't use the bundled font-liberation.
1518 (substitute* "src/util/Font.cpp"
1519 (("Util::pathFonts\\(\\)\\+\"liberation-fonts/\"")
1520 (string-append "\"" font "/share/fonts/truetype/\"")))
1521 (substitute* "src/util/Util.h"
1522 (("pathData\\(\\)\\+\"data/fonts/\"")
1523 (string-append "\"" font "/share/fonts/\"")))))))
1524 #:tests? #f)) ; no tests
1536 (native-search-paths
1537 (list (search-path-specification
1538 (variable "XDG_DATA_DIRS")
1539 (files '("share")))))
1540 (synopsis "Weather Forecast Visualization")
1542 "XyGrib is a Grib file reader and visualizes meteorological data providing
1543 an off-line capability to analyse weather forecasts or hindcasts. It is
1544 intended to be used as a capable weather work station for anyone with a serious
1545 interest in examining weather. This would include members of the sailing
1546 community, private and sport aviators, farmers, weather buffs and many more.
1547 XyGrib is the continuation of the zyGrib software package with a new team of
1549 (home-page "https://opengribs.org")
1550 (license license:gpl3+)))
1552 (define-public libspatialindex
1554 (name "libspatialindex")
1559 (uri (string-append "https://github.com/libspatialindex/libspatialindex/"
1560 "releases/download/" version "/spatialindex-src-"
1561 version ".tar.bz2"))
1564 "02n5vjcyk04w0djidyp21hfbxfpbbara8ifd9nml6158rwqr8lja"))))
1565 (build-system cmake-build-system)
1566 (home-page "https://libspatialindex.org")
1567 (synopsis "Spatial indexing library")
1568 (description "The purpose of this library is to provide:
1571 @item An extensible framework that will support robust spatial indexing
1573 @item Support for sophisticated spatial queries. Range, point location,
1574 nearest neighbor and k-nearest neighbor as well as parametric queries (defined
1575 by spatial constraints) should be easy to deploy and run.
1576 @item Easy to use interfaces for inserting, deleting and updating information.
1577 @item Wide variety of customization capabilities. Basic index and storage
1578 characteristics like the page size, node capacity, minimum fan-out, splitting
1579 algorithm, etc. should be easy to customize.
1580 @item Index persistence. Internal memory and external memory structures
1581 should be supported. Clustered and non-clustered indices should be easy to be
1585 (license license:expat)))
1587 (define-public python-rtree
1589 (name "python-rtree")
1594 (uri (pypi-uri "Rtree" version))
1596 (base32 "10lnhf67c9pb0yisxdqmb52dy6lj1za1h9d4p69v0ihk2a138j6h"))))
1597 (build-system python-build-system)
1600 (modify-phases %standard-phases
1601 (add-after 'unpack 'find-libspatialindex
1602 (lambda* (#:key inputs #:allow-other-keys)
1603 (let ((libspatialindex (assoc-ref inputs "libspatialindex")))
1604 (substitute* "rtree/finder.py"
1605 (("find_library\\(\"spatialindex_c\"\\)")
1606 (string-append "\"" libspatialindex
1607 "/lib/libspatialindex_c.so\""))))))
1609 (lambda* (#:key outputs tests? #:allow-other-keys)
1611 (invoke "pytest")))))))
1613 (list python-numpy python-pytest python-wheel))
1615 (list libspatialindex))
1616 (home-page "https://github.com/Toblerity/rtree")
1617 (synopsis "R-Tree spatial index for Python GIS")
1619 "RTree is a Python package with bindings for @code{libspatialindex}.")
1620 (license license:expat)))
1622 (define-public java-jmapviewer
1624 (name "java-jmapviewer")
1628 (uri (string-append "https://svn.openstreetmap.org/applications/"
1629 "viewer/jmapviewer/releases/" version
1630 "/JMapViewer-" version "-Source.zip"))
1633 "0sy6r5fkbb9bclw0is6gwnbzz627m7pjfnsqydxz58pbndakkhrv"))))
1634 (build-system ant-build-system)
1638 `(#:build-target "pack"
1639 #:tests? #f; No tests
1641 (modify-phases %standard-phases
1642 (add-before 'build 'clean
1644 (invoke "ant" "clean")))
1646 (lambda* (#:key outputs #:allow-other-keys)
1647 (let ((dir (string-append (assoc-ref outputs "out") "/share/java/")))
1649 (copy-file "JMapViewer.jar" (string-append dir "JMapViewer.jar"))
1651 (home-page "https://wiki.openstreetmap.org/wiki/JMapViewer")
1652 (synopsis "OSM map integration in Java")
1653 (description "JMapViewer is a Java component which easily
1654 integrates an OSM map view into your Java application. It is maintained as
1655 an independent project by the JOSM team.")
1656 (license license:gpl2)))
1658 (define-public java-opening-hours-parser
1660 (name "java-opening-hours-parser")
1665 (url "https://github.com/simonpoole/OpeningHoursParser")
1667 (file-name (git-file-name name version))
1670 "0yhbd2ix6h506aljh0jkrnp28m4xcqdcdpnqm30fn08kawdgxgsh"))))
1671 (build-system ant-build-system)
1673 `(#:jar-name "java-opening-hours-parser.jar"
1674 #:source-dir "src/main/java"
1676 (modify-phases %standard-phases
1677 (add-before 'build 'copy-resources
1679 (copy-recursively "src/main/resources" "build/classes")
1681 (add-before 'build 'generate-parser
1683 (let* ((dir "src/main/java/ch/poole/openinghoursparser")
1684 (file (string-append dir "/OpeningHoursParser.jj")))
1685 (invoke "javacc" "-DEBUG_PARSER=false"
1686 "-DEBUG_TOKEN_MANAGER=false" "-JDK_VERSION=1.8"
1687 "-GRAMMAR_ENCODING=UTF-8"
1688 (string-append "-OUTPUT_DIRECTORY=" dir)
1692 (list java-jetbrains-annotations))
1694 (list javacc java-junit java-hamcrest-core))
1695 (home-page "https://github.com/simonpoole/OpeningHoursParser")
1696 (synopsis "Java parser for the OpenStreetMap opening hour format")
1697 (description "This is a very simplistic parser for string values according
1698 to the OSM opening hours specification.")
1699 (license license:expat)))
1708 (url "https://josm.openstreetmap.de/svn/trunk")
1709 (revision (string->number version))
1713 "0j7fhzh6hs2b5r1a3d1xpy6f5r6q1kh79bck28raang8ldd754c6"))
1714 (file-name (string-append name "-" version "-checkout"))
1715 (modules '((guix build utils)))
1718 (for-each delete-file (find-files "." ".*.jar$"))
1720 (build-system ant-build-system)
1724 (list java-commons-jcs
1725 java-commons-compress
1728 java-jsonp-impl ; runtime dependency
1730 java-metadata-extractor
1731 java-opening-hours-parser
1734 java-svg-salamander))
1737 #:jar-name "josm.jar"
1739 (modify-phases %standard-phases
1740 (add-after 'unpack 'rm-build.xml
1742 (delete-file "build.xml")
1744 (add-before 'build 'fix-revision
1746 (with-output-to-file "REVISION.XML"
1749 (string-append "<info><entry><commit revision=\"" ,version "\">"
1750 "<date>1970-01-01 00:00:00 +0000</date>"
1751 "</commit></entry></info>"))))
1753 (add-before 'build 'fix-jcs
1755 ;; This version of JOSM uses an unreleased version of commons-jcs,
1756 ;; which has renamed its classes to another namespace. Rename them
1757 ;; back so they can be used with our version of jcs.
1758 (substitute* (find-files "." ".*.java$")
1760 (("ICache.NAME_COMPONENT_DELIMITER") "\":\""))
1762 (add-before 'build 'fix-classpath
1763 (lambda* (#:key inputs #:allow-other-keys)
1768 (let ((source (assoc-ref inputs "source")))
1769 (not (equal? (substring s 0 (string-length source))
1771 (string-split (getenv "CLASSPATH") #\:))
1774 (add-before 'build 'generate-parser
1776 (let* ((dir "src/org/openstreetmap/josm/gui/mappaint/mapcss")
1777 (out (string-append dir "/parsergen"))
1778 (file (string-append dir "/MapCSSParser.jj")))
1779 (mkdir-p "src/org/openstreetmap/josm/gui/mappaint/mapcss/parsergen")
1780 (invoke "javacc" "-DEBUG_PARSER=false"
1781 "-DEBUG_TOKEN_MANAGER=false" "-JDK_VERSION=1.8"
1782 "-GRAMMAR_ENCODING=UTF-8"
1783 (string-append "-OUTPUT_DIRECTORY=" out)
1786 (add-after 'build 'generate-epsg
1788 (system* "javac" "scripts/BuildProjectionDefinitions.java"
1789 "-cp" "build/classes")
1790 (mkdir-p "data/projection")
1791 (with-output-to-file "data/projection/custom-epsg"
1792 (lambda _ (display "")))
1793 (invoke "java" "-cp" "build/classes:scripts:."
1794 "BuildProjectionDefinitions" ".")
1796 (add-after 'generate-epsg 'copy-resources
1798 (copy-recursively "resources" "build/classes")
1800 (add-before 'install 'regenerate-jar
1802 ;; We need to regenerate the jar file to add data.
1803 (delete-file "build/jar/josm.jar")
1804 (invoke "jar" "-cf" "build/jar/josm.jar" "-C"
1805 "build/classes" ".")
1807 (add-before 'build 'copy-revision
1809 (mkdir-p "build/classes")
1810 (with-output-to-file "build/classes/REVISION"
1813 (string-append "Revision: " ,version "\n"
1814 "Is-Local-Build: true\n"
1815 "Build-Date: 1970-01-01 00:00:00 +0000\n"))))
1817 (add-after 'install 'install-share-directories
1818 (lambda* (#:key outputs #:allow-other-keys)
1819 (let ((out (assoc-ref outputs "out"))
1820 (share-directories '("applications" "icons" "man" "menu"
1821 "metainfo" "mime" "pixmaps"))
1822 (desktop "org.openstreetmap.josm.desktop"))
1823 (for-each (lambda (directory)
1824 (copy-recursively (string-append
1825 "native/linux/tested/usr/share/"
1828 out "/share/" directory)))
1830 (substitute* (string-append out "/share/applications/" desktop)
1831 (("josm-MainApplication") "josm-gui-MainApplication")))
1833 (add-after 'install 'install-bin
1834 (lambda* (#:key outputs inputs #:allow-other-keys)
1835 (let* ((out (assoc-ref outputs "out"))
1836 (bin (string-append out "/bin")))
1838 (with-output-to-file (string-append bin "/josm")
1841 (string-append "#!/bin/sh\n"
1842 (assoc-ref inputs "jdk") "/bin/java"
1843 " -cp " out "/share/java/josm.jar:"
1844 (getenv "CLASSPATH")
1845 " org.openstreetmap.josm.gui.MainApplication"))))
1846 (chmod (string-append bin "/josm") #o755))
1848 (home-page "https://josm.openstreetmap.de")
1849 (synopsis "OSM editor")
1850 (description "JOSM is an extensible editor for OpenStreetMap (OSM). It
1851 supports loading GPX tracks, background imagery and OSM data from local
1852 sources as well as from online sources and allows editing the OSM data (nodes,
1853 ways, and relations) and their metadata tags.")
1854 (license license:gpl2+)))
1856 (define-public libmaxminddb
1858 (name "libmaxminddb")
1863 (uri (string-append "https://github.com/maxmind/libmaxminddb"
1864 "/releases/download/" version "/"
1865 "/libmaxminddb-" version ".tar.gz"))
1867 (base32 "0rw2z7rx8jzgdcgqlmc4wqrsjmiwd8vm5wvvrldy472rghcaq83n"))))
1868 (build-system gnu-build-system)
1871 (list ,(string-append "CC=" (cc-for-target)))))
1874 (home-page "https://maxmind.github.io/libmaxminddb/")
1875 (synopsis "C library for the MaxMind DB file format")
1876 (description "The libmaxminddb library provides a C library for reading
1877 MaxMind DB files, including the GeoIP2 databases from MaxMind. The MaxMind DB
1878 format is a custom, but open, binary format designed to facilitate fast
1879 lookups of IP addresses while allowing flexibility in the type of data
1880 associated with an address.")
1881 (license license:asl2.0)))
1883 (define-public python-maxminddb
1885 (name "python-maxminddb")
1890 (uri (pypi-uri "maxminddb" version))
1893 "1rc4a403r3b4vhmhb03gidd0fmsbvfpbf3qfcw25h4db9zn0fxz3"))))
1894 (build-system python-build-system)
1896 `(#:tests? #f)) ;; Tests require a copy of the maxmind database
1898 (list libmaxminddb))
1899 (home-page "https://www.maxmind.com/")
1900 (synopsis "Reader for the MaxMind DB format")
1901 (description "MaxMind DB is a binary file format that stores data indexed
1902 by IP address subnets (IPv4 or IPv6). This is a Python module for reading
1904 (license license:asl2.0)))
1906 (define-public python-geoip2
1908 (name "python-geoip2")
1913 (uri (pypi-uri "geoip2" version))
1916 "1w7cay5q6zawjzivqbwz5cqx1qbdjw6kbriccb7l46p7b39fkzzp"))))
1917 (build-system python-build-system)
1919 `(#:tests? #f)) ;; Tests require a copy of the maxmind database
1921 (list python-maxminddb python-requests))
1922 (home-page "https://www.maxmind.com/")
1923 (synopsis "MaxMind GeoIP2 API")
1924 (description "Provides an API for the GeoIP2 web services and databases.
1925 The API also works with MaxMind’s free GeoLite2 databases.")
1926 (license license:asl2.0)))
1928 (define-public routino
1935 (uri (string-append "http://www.routino.org/download/routino-"
1938 (base32 "1xa7l2bjn832nk6bc7b481nv8hd2gj41jwhg0d2qy10lqdvjpn5b"))))
1939 (build-system gnu-build-system)
1943 (list bzip2 xz zlib))
1945 `(#:test-target "test"
1947 (modify-phases %standard-phases
1949 (lambda* (#:key outputs #:allow-other-keys)
1950 (substitute* "Makefile.conf"
1951 (("prefix=/usr/local")
1952 (string-append "prefix=" (assoc-ref outputs "out")))
1953 (("LDFLAGS_LDSO=-Wl,-R\\.")
1954 "LDFLAGS_LDSO=-Wl,-R$(libdir)")
1955 (("#CFLAGS\\+=-DUSE_XZ")
1957 (("#LDFLAGS\\+=-llzma")
1960 (synopsis "Routing application for OpenStreetMap data")
1962 "Routino is an application for finding a route between two points
1963 using the dataset of topographical information collected by
1964 @url{https://www.OpenStreetMap.org}.")
1965 (home-page "https://www.routino.org/")
1966 (license license:agpl3+)))
1968 (define-public qmapshack
1976 (url "https://github.com/Maproom/qmapshack")
1977 (commit (string-append "V_" version))))
1978 (file-name (git-file-name name version))
1980 (base32 "184fqmsfzr3b333ssizjk6gvv7mncmygq8dj5r7rsvs5md26z2ys"))))
1981 (build-system qt-build-system)
1983 (list pkg-config qttools-5))
1996 sqlite ; See wrap phase
2001 (modify-phases %standard-phases
2002 (add-after 'unpack 'fix-cmake-modules
2003 (lambda* (#:key inputs #:allow-other-keys)
2004 (substitute* "CMakeLists.txt"
2005 (("find_package\\(Qt5PrintSupport REQUIRED\\)" all)
2006 (string-append all "\nfind_package(Qt5Positioning REQUIRED)")))
2007 (substitute* "cmake/Modules/FindROUTINO.cmake"
2009 (assoc-ref inputs "routino"))))))))
2010 (synopsis "GPS mapping application")
2012 "QMapShack can be used to plan your next outdoor trip or to visualize and
2013 archive all the GPS recordings of your past trips. It is the successor of the
2014 QLandkarte GT application.")
2015 (home-page "https://github.com/Maproom/qmapshack/wiki")
2016 (license license:gpl3+)))
2018 (define-public readosm
2025 (uri (string-append "https://www.gaia-gis.it/gaia-sins/"
2026 "readosm-" version ".tar.gz"))
2028 (base32 "0igif2bxf4dr82glxz9gyx5mmni0r2dsnx9p9k6pxv3c4lfhaz6v"))))
2029 (build-system gnu-build-system)
2032 (synopsis "Data extractor for OpenStreetMap files")
2034 "ReadOSM is a library to extract valid data from within an OpenStreetMap
2035 input file (in @code{.osm} or @code{.osm.pbf} format).")
2036 (home-page "https://www.gaia-gis.it/fossil/readosm/index")
2037 (license (list license:gpl2+
2041 (define-public shapelib
2049 (url "https://github.com/OSGeo/shapelib")
2050 (commit (string-append "v" version))))
2051 (file-name (git-file-name name version))
2053 (base32 "1lzch0jf6yqhw391phhafzw4ghmiz98zkf698h4fmq109fa2vhqd"))))
2054 (build-system gnu-build-system)
2056 (list autoconf automake libtool))
2057 (home-page "http://shapelib.maptools.org/")
2058 (synopsis "Provides C library to write and update ESRI Shapefiles")
2060 "The Shapefile C Library provides the ability to write simple C programs
2061 for reading, writing and updating (to a limited extent) ESRI Shapefiles, and the
2062 associated attribute file (@file{.dbf}).")
2063 (license license:gpl2+)))
2065 (define-public spatialite-tools
2067 (name "spatialite-tools")
2072 (uri (string-append "https://www.gaia-gis.it/gaia-sins/"
2073 "spatialite-tools-" version ".tar.gz"))
2075 (base32 "070p6pg541wvwb28wkn7k0z1qdyirik2qc2jpj4pf0vzx02w414n"))))
2076 (build-system gnu-build-system)
2090 (synopsis "Collection of command line tools for SpatiaLite")
2092 "@code{spatialite-tools} is a collection of Command Line Interface (CLI)
2093 tools supporting SpatiaLite.")
2094 (home-page "https://www.gaia-gis.it/fossil/spatialite-tools/index")
2095 (license license:gpl3+)))
2097 (define-public virtualpg
2104 (uri (string-append "https://www.gaia-gis.it/gaia-sins/"
2105 "virtualpg-" version ".tar.gz"))
2107 (base32 "12z0l7368r4116ljzg7nljy5hf425r11vxc540w79wlzikmynamy"))))
2108 (build-system gnu-build-system)
2110 (list postgresql sqlite))
2111 (synopsis "Allow SQLite/SpatiaLite to access PostgreSQL/PostGIS tables")
2113 "VirtualPG is a dynamic extension for the SQLite DBMS. It implements
2114 the VirtualPostgres driver, allowing to directly exchange data between SQLite
2115 and PostgreSQL; if SpatiaLite is available even PostGIS geometries can be
2116 exchanged form one Spatial DBMS and the other.")
2117 (home-page "https://www.gaia-gis.it/fossil/virtualpg/index")
2118 (license (list license:gpl2+
2122 (define-public opencpn
2130 (url "https://github.com/OpenCPN/OpenCPN")
2131 (commit (string-append "Release_" version))))
2132 (file-name (git-file-name name version))
2134 (base32 "0g5x45wv3djfjmigk6kgs0i63yp8rs1fbmm4pb15wb3z6dml624y"))))
2135 (build-system cmake-build-system)
2137 `(("gettext" ,gettext-minimal)
2138 ("pkg-config" ,pkg-config)))
2165 `(#:configure-flags '("-DOCPN_USE_BUNDLED_LIBS=OFF"
2166 "-DOCPN_ENABLE_PORTAUDIO=ON"
2167 "-DOCPN_ENABLE_SNDFILE=ON"
2168 "-DOCPN_BUNDLE_TCDATA=ON"
2169 "-DOCPN_BUNDLE_GSHHS=ON")
2170 #:tests? #f ; No tests defined
2172 (modify-phases %standard-phases
2173 (add-after 'unpack 'fix-build
2174 (lambda* (#:key inputs #:allow-other-keys)
2175 (substitute* "CMakeLists.txt"
2178 (("\"/bin/sh\" \"-c\"")
2179 (string-append "\"" (which "bash") "\" \"-c\""))
2180 (("include\\(TargetSetup\\)")
2181 "set(PKG_TARGET \"guix\")\nset(PKG_TARGET_VERSION 1)")))))))
2182 (synopsis "Chart plotter and marine GPS navigation software")
2184 "OpenCPN is a chart plotter and marine navigation software designed to be
2185 used at the helm station of your boat while underway. Chart a course and
2186 track your position right from your laptop.")
2187 (home-page "https://opencpn.org/")
2188 (license (list license:asl2.0
2199 (define-public openorienteering-mapper
2201 (name "openorienteering-mapper")
2206 (url "https://github.com/OpenOrienteering/mapper")
2207 (commit (string-append "v" version))))
2208 (file-name (git-file-name name version))
2211 "11b578h8f3q9yvphbjhqmy2w1cfc9skslzawypqmc3k44v24aj0s"))))
2212 (build-system cmake-build-system)
2217 "-DLICENSING_PROVIDER:BOOL=OFF"
2218 "-DMapper_MANUAL_QTHELP:BOOL=OFF")))
2220 `(("clipper" ,clipper)
2225 ("qtbase" ,qtbase-5)
2226 ("qtimageformats" ,qtimageformats)
2227 ("qtlocation" ,qtlocation)
2228 ("qtsensors" ,qtsensors)
2231 `(("doxygen" ,doxygen)
2232 ("qttools-5" ,qttools-5)))
2233 (home-page "https://www.openorienteering.org/apps/mapper/")
2234 (synopsis "OpenOrienteering Mapper (OOM)")
2236 "OpenOrienteering Mapper is a software for creating maps for the
2237 orienteering sport.")
2238 (license license:gpl3+)))
2240 (define-public grass
2241 (let* ((version "7.8.7")
2242 (majorminor (string-join (list-head (string-split version #\.) 2) ""))
2243 (grassxx (string-append "grass" majorminor)))
2250 (uri (string-append "https://grass.osgeo.org/" grassxx
2251 "/source/grass-" version ".tar.gz"))
2253 (base32 "0sbz0ba9p963phvd0gmvfqq1fg4ixpipzcjbf20ys86qavjppzsg"))))
2254 (build-system gnu-build-system)
2259 ("freetype" ,freetype)
2265 ("libtiff" ,libtiff)
2267 ("mariadb-dev" ,mariadb "dev")
2268 ("mariadb-lib" ,mariadb "lib")
2270 ("openblas" ,openblas)
2272 ("postgresql" ,postgresql)
2275 ("python-dateutil" ,python-dateutil)
2276 ("python-numpy" ,python-numpy)
2277 ("python-wxpython" ,python-wxpython)
2278 ("readline" ,readline)
2280 ("wxwidgets" ,wxwidgets)
2282 ("zstd" ,zstd "lib")))
2284 `(("bash" ,bash-minimal)
2287 ("pkg-config" ,pkg-config)))
2289 `(#:tests? #f ; No tests
2290 #:modules ((guix build gnu-build-system)
2291 ((guix build python-build-system) #:prefix python:)
2293 #:imported-modules (,@%gnu-build-system-modules
2294 (guix build python-build-system))
2296 (modify-phases %standard-phases
2298 (lambda* (#:key inputs outputs #:allow-other-keys)
2299 (let ((shell (search-input-file inputs "/bin/bash")))
2300 (setenv "SHELL" shell)
2301 (setenv "CONFIG_SHELL" shell)
2302 (setenv "LDFLAGS" (string-append "-Wl,-rpath -Wl,"
2303 (assoc-ref outputs "out")
2304 "/" ,grassxx "/lib")))
2305 (invoke "./configure"
2306 (string-append "--prefix="
2307 (assoc-ref outputs "out"))
2310 (string-append "--with-freetype-includes="
2311 (assoc-ref inputs "freetype")
2312 "/include/freetype2")
2313 (string-append "--with-freetype-libs="
2314 (assoc-ref inputs "freetype")
2319 (string-append "--with-mysql-includes="
2320 (assoc-ref inputs "mariadb-dev")
2322 (string-append "--with-mysql-libs="
2323 (assoc-ref inputs "mariadb-lib")
2327 (string-append "--with-proj-share="
2328 (assoc-ref inputs "proj")
2333 "--with-wxwidgets")))
2334 (add-after 'install 'install-links
2335 (lambda* (#:key outputs #:allow-other-keys)
2336 ;; Put links for includes and libraries in the standard places.
2337 (let* ((out (assoc-ref outputs "out"))
2338 (dir (string-append out "/" ,grassxx)))
2339 (symlink (string-append dir "/include")
2340 (string-append out "/include"))
2341 (symlink (string-append dir "/lib")
2342 (string-append out "/lib")))
2344 (add-after 'install-links 'python:wrap
2345 (assoc-ref python:%standard-phases 'wrap))
2346 (add-after 'python:wrap 'wrap-with-python-interpreter
2347 (lambda* (#:key outputs #:allow-other-keys)
2348 (let ((out (assoc-ref outputs "out")))
2349 (wrap-program (string-append out "/bin/" ,grassxx)
2350 `("GRASS_PYTHON" = (,(which "python3"))))
2352 (synopsis "GRASS Geographic Information System")
2354 "GRASS (Geographic Resources Analysis Support System), is a Geographic
2355 Information System (GIS) software suite used for geospatial data management and
2356 analysis, image processing, graphics and maps production, spatial modeling, and
2358 (home-page "https://grass.osgeo.org/")
2359 (license license:gpl2+))))
2368 (uri (string-append "mirror://sourceforge/saga-gis/SAGA%20-%20"
2369 (version-major version) "/SAGA%20-%20" version
2370 "/saga-" version ".tar.gz"))
2372 (base32 "008izjs6gvj09abxf16ssl1xy0ay3ljq4jswbggp6wiiq459minv"))
2373 (modules '((guix build utils)))
2375 '(substitute* "saga-gis/src/tools/docs/docs_pdf/doc_pdf.cpp"
2376 (("^#include <hpdf\\.h>\n" all)
2377 (string-append all "#include <hpdf_version.h>\n"))
2378 (("\\bHPDF_PROJECTING_SCUARE_END\\b")
2379 "HPDF_PROJECTING_SQUARE_END")))))
2380 (build-system cmake-build-system)
2382 (list pkg-config swig))
2402 (modify-phases %standard-phases
2403 (add-before 'configure 'cd-to-source-dir
2405 (chdir "saga-gis"))))))
2406 (synopsis "System for Automated Geoscientific Analyses")
2408 "SAGA (System for Automated Geoscientific Analyses) is a Geographic
2409 Information System (GIS) software. It has been designed for an easy and
2410 effective implementation of spatial algorithms and it offers a comprehensive,
2411 growing set of geoscientific methods.")
2412 (home-page "http://www.saga-gis.org")
2413 (license (list license:gpl2+ license:lgpl2.1+))))
2422 (uri (string-append "https://qgis.org/downloads/qgis-"
2423 version ".tar.bz2"))
2425 (base32 "1hsq3wchsf7db7134fgg9xzzap35q1s4r6649d0krbw80xw5asca"))))
2426 (build-system cmake-build-system)
2428 `(#:modules ((guix build cmake-build-system)
2429 ((guix build python-build-system) #:prefix python:)
2430 (guix build qt-utils)
2432 #:imported-modules (,@%cmake-build-system-modules
2433 (guix build python-build-system)
2434 (guix build qt-utils))
2436 '("-DWITH_QTWEBKIT=NO")
2438 (modify-phases %standard-phases
2439 ;; Configure correct path to PyQt5 SIP directory
2440 (add-after 'unpack 'configure-pyqt5-sip-path
2441 (lambda* (#:key inputs #:allow-other-keys)
2442 (substitute* "cmake/FindPyQt5.py"
2443 (("sip_dir = cfg.default_sip_dir")
2444 (string-append "sip_dir = \""
2445 (assoc-ref inputs "python-pyqt+qscintilla")
2447 ;; Fix building with python-sip@5.
2449 ;; The reason for this is that python-sip@5 introduces some
2450 ;; changes such as a new build system 'sip-build' as well as the
2451 ;; use of the path "/lib/pythonX.X/site-packages/*/bindings/"
2452 ;; instead of "/share/sip/" for .sip files. However, we do not
2453 ;; actually use that those yet. QGIS detects SIP5 and assumes we
2454 ;; are, messing up the build. The long term solution is to fully
2455 ;; upgrade SIP, use sip-build and fix all failing packages, but
2456 ;; for now I just want to get the build working.
2457 (substitute* "cmake/FindPyQt5.cmake"
2458 (("SET\\(PYQT5_SIP_DIR \"\\$\\{Python_SITEARCH\\}/PyQt5/bindings\"\\)")
2459 (string-append "SET(PYQT5_SIP_DIR \""
2460 (assoc-ref inputs "python-pyqt+qscintilla")
2462 (substitute* (list "tests/code_layout/test_qt_imports.sh"
2463 "tests/code_layout/test_qgsscrollarea.sh")
2464 (("\\$\\(git rev-parse --show-toplevel\\)")
2467 (lambda* (#:key inputs tests? #:allow-other-keys)
2469 (setenv "HOME" "/tmp")
2470 (system "Xvfb :1 &")
2471 (setenv "DISPLAY" ":1")
2472 (setenv "TRAVIS" "true")
2473 (setenv "CTEST_OUTPUT_ON_FAILURE" "1")
2476 '(;; Disable tests that require network access
2477 "qgis_filedownloader"
2478 ;; TODO: Find why the following tests fail
2479 "ProcessingQgisAlgorithmsTestPt1"
2480 "ProcessingQgisAlgorithmsTestPt2"
2481 "ProcessingQgisAlgorithmsTestPt3"
2482 "ProcessingQgisAlgorithmsTestPt4"
2483 "ProcessingGdalAlgorithmsVectorTest"
2484 "ProcessingGrass7AlgorithmsImageryTest"
2485 "ProcessingGrass7AlgorithmsRasterTestPt1"
2486 "ProcessingGrass7AlgorithmsRasterTestPt2"
2487 "ProcessingGrass7AlgorithmsVectorTest"
2488 "ProcessingOtbAlgorithmsTest"
2489 "test_core_authmanager"
2490 "test_core_compositionconverter"
2491 "test_core_coordinatereferencesystem"
2492 "test_core_gdalutils"
2493 "test_core_labelingengine"
2495 "test_core_layouthtml"
2496 "test_core_layoutlabel"
2497 "test_core_layoutmultiframe"
2498 "test_core_layoutpicture"
2499 "test_core_legendrenderer"
2500 "test_core_networkaccessmanager"
2501 "test_core_rasterfilewriter"
2502 "test_core_tiledownloadmanager"
2504 "test_gui_htmlwidgetwrapper"
2505 "test_gui_filedownloader"
2506 "test_gui_queryresultwidget"
2507 "test_analysis_processingalgspt2"
2508 "test_analysis_processing"
2509 "test_provider_wcsprovider"
2510 "qgis_grassprovidertest7"
2511 "test_app_gpsinformationwidget"
2513 "PyQgsAttributeTableModel"
2514 "PyQgsAuthenticationSystem"
2515 "PyQgsExternalStorageWebDAV"
2516 "PyQgsFieldFormattersTest"
2519 "PyQgsGoogleMapsGeocoder"
2520 "PyQgsHashLineSymbolLayer"
2521 "PyQgsLayoutExporter"
2523 "PyQgsLineSymbolLayers"
2525 "PyQgsNetworkContentFetcherRegistry"
2526 "PyQgsOGRProviderGpkg"
2527 "PyQgsOGRProviderSqlite"
2528 "PyQgsPalLabelingCanvas"
2529 "PyQgsPalLabelingLayout"
2530 "PyQgsPalLabelingPlacement"
2531 "PyQgsProcessExecutable"
2532 "PyQgsProviderConnectionGpkg"
2533 "PyQgsProviderConnectionSpatialite"
2535 "PyQgsSpatialiteProvider"
2536 "PyQgsVectorFileWriter"
2537 "PyQgsVectorLayerEditBuffer"
2538 "PyQgsVectorLayerEditBufferGroup"
2539 "PyQgsVectorLayerProfileGenerator"
2540 "PyQgsVirtualLayerProvider"
2542 "PyQgsWFSProviderGUI"
2543 "PyQgsOapifProvider"
2544 "PyQgsLayerDependencies"
2545 "PyQgsDBManagerGpkg"
2546 "PyQgsDBManagerSpatialite"
2547 "PyQgsAuxiliaryStorage"
2548 "PyQgsSelectiveMasking"
2552 "qgis_sip_uptodate")
2554 (add-after 'install 'wrap-python
2555 (assoc-ref python:%standard-phases 'wrap))
2556 (add-after 'wrap-python 'wrap-qt
2557 (lambda* (#:key outputs inputs #:allow-other-keys)
2558 (let ((out (assoc-ref outputs "out")))
2559 (wrap-qt-program "qgis" #:output out #:inputs inputs))))
2560 (add-after 'wrap-qt 'wrap-gis
2561 (lambda* (#:key inputs outputs #:allow-other-keys)
2562 ;; TODO: Find if there is a way to get SAGA to work.
2563 ;; Currently QGIS says "version of SAGA not supported".
2564 ;; Disable it for now.
2565 (let* ((out (assoc-ref outputs "out"))
2566 ;;(saga (string-append (assoc-ref inputs "saga") "/bin"))
2567 (grass-version ,(package-version grass))
2568 (grass-majorminor (string-join
2570 (string-split grass-version #\.) 2)
2572 (grass (string-append (assoc-ref inputs "grass")
2573 "/grass" grass-majorminor)))
2574 (wrap-program (string-append out "/bin/qgis")
2575 ;;`("PATH" ":" prefix (,saga))
2576 `("QGIS_PREFIX_PATH" = (,out))
2577 `("GISBASE" = (,grass)))))))))
2606 python-pyqt+qscintilla
2636 xorg-server-for-tests))
2637 (home-page "https://qgis.org")
2638 (synopsis "Geographical information system")
2639 (description "QGIS is an easy to use Geographical Information
2640 System (GIS). It is a GIS data viewer and editor. QGIS supports a number of
2641 raster and vector data formats, with new support easily added using the plugin
2654 (license:fsdg-compatible "https://www.deviantart.com/elvensword")
2655 (license:fsf-free "file://debian/copyright" "Go Squared")
2659 "https://www.deviantart.com/webgoddess/art/Reddish-Inspired-Gradients-42208824")
2661 "file://debian/copyright"
2662 "QT-Commercial or LGPL-2.1 with Digia Qt LGPL Exception 1.1 or GPL-3")
2672 (license:non-copyleft "file://debian/copyright" "BSD-like-gist")
2673 (license:non-copyleft "file://debian/copyright" "Jim Mossman Attribution")
2674 (license:non-copyleft
2675 "https://www.ncl.ucar.edu/Download/NCL_source_license.shtml"
2676 "NCL Source Code License")
2679 license:public-domain
2682 (define-public python-geographiclib
2684 (name "python-geographiclib")
2689 (uri (pypi-uri "geographiclib" version))
2692 "0cn6ap5fkh3mkfa57l5b44z3gvz7j6lpmc9rl4g2jny2gvp4dg8j"))))
2693 (build-system python-build-system)
2694 (home-page "https://geographiclib.sourceforge.io/1.50/python/")
2695 (synopsis "Python geodesic routines from GeographicLib")
2697 "This is a python implementation of the geodesic routines in GeographicLib.")
2698 (license license:expat)))
2700 (define-public python-geopy
2702 (name "python-geopy")
2707 (uri (pypi-uri "geopy" version))
2710 "0fx0cv0kgbvynpmjgsvq2fpsyngd5idiscdn8pd5201f1ngii3mq"))))
2711 (build-system python-build-system)
2713 (list python-geographiclib))
2715 (list python-async-generator
2720 python-pytest-aiohttp
2721 python-readme-renderer
2723 (home-page "https://github.com/geopy/geopy")
2724 (synopsis "Geocoding library for Python")
2725 (description "@code{geopy} is a Python client for several popular geocoding
2726 web services. @code{geopy} makes it easy for Python developers to locate the
2727 coordinates of addresses, cities, countries, and landmarks across the globe
2728 using third-party geocoders and other data sources.")
2729 (license license:expat)))
2731 (define-public gplates
2734 ;; Note: use a pre-release to cope with newer Boost, ref
2735 ;; https://discourse.gplates.org/t/compilation-error-with-boost-1-77/452/3
2736 (version "2.3.01-beta.3")
2739 (uri "https://cloudstor.aarnet.edu.au/plus/s\
2740 /ojsYNOyUYE3evNp/download?path=%2F&files=gplates_2.3.1-beta.3_src.zip")
2741 (file-name (string-append name "-" version ".zip"))
2744 "06i87dfab0cq9gdi5mh6sf9wigawpp0d05zbyslv910443i26gwv"))))
2745 (build-system cmake-build-system)
2747 `(#:configure-flags (list "-DBoost_NO_BOOST_CMAKE=ON")
2748 #:tests? #f)) ;no test target
2750 (list unzip)) ;for the beta
2769 (home-page "https://www.gplates.org")
2770 (synopsis "Plate tectonics simulation program")
2771 (description "GPlates is a plate tectonics program. Manipulate
2772 reconstructions of geological and paleogeographic features through geological
2773 time. Interactively visualize vector, raster and volume data.")
2774 (license license:gpl2+)))