gnu: connman: Update to 1.36.
[jackhill/guix/guix.git] / gnu / packages / geo.scm
CommitLineData
03c1662e
LF
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
ad1ff78d 3;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
f6c507e1 4;;; Copyright © 2017, 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
af63f03f 5;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
8d26f48e 6;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
f2b005f6 7;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
3d60f426 8;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
03c1662e
LF
9;;;
10;;; This file is part of GNU Guix.
11;;;
12;;; GNU Guix is free software; you can redistribute it and/or modify it
13;;; under the terms of the GNU General Public License as published by
14;;; the Free Software Foundation; either version 3 of the License, or (at
15;;; your option) any later version.
16;;;
17;;; GNU Guix is distributed in the hope that it will be useful, but
18;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;;; GNU General Public License for more details.
21;;;
22;;; You should have received a copy of the GNU General Public License
23;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24
25(define-module (gnu packages geo)
26 #:use-module (guix build-system glib-or-gtk)
065d0125 27 #:use-module (guix build-system gnu)
f25e1e24 28 #:use-module (guix build-system python)
f2b005f6 29 #:use-module (guix build-system scons)
3d60f426 30 #:use-module (guix build-system r)
03c1662e 31 #:use-module (guix download)
065d0125 32 #:use-module ((guix licenses) #:prefix license:)
03c1662e
LF
33 #:use-module (guix packages)
34 #:use-module (guix utils)
f2b005f6 35 #:use-module (gnu packages boost)
f25e1e24 36 #:use-module (gnu packages check)
1a39141d 37 #:use-module (gnu packages compression)
f2b005f6
AI
38 #:use-module (gnu packages databases)
39 #:use-module (gnu packages fontutils)
24fb9a55 40 #:use-module (gnu packages cran)
03c1662e
LF
41 #:use-module (gnu packages glib)
42 #:use-module (gnu packages gnome)
43 #:use-module (gnu packages gtk)
1a39141d 44 #:use-module (gnu packages image)
f2b005f6 45 #:use-module (gnu packages icu4c)
03c1662e 46 #:use-module (gnu packages pkg-config)
f2b005f6 47 #:use-module (gnu packages python)
5b19776e
LF
48 #:use-module (gnu packages statistics)
49 #:use-module (gnu packages web)
03c1662e 50 #:use-module (gnu packages webkit)
a2a53274 51 #:use-module (gnu packages wxwidgets)
03c1662e
LF
52 #:use-module (gnu packages xml))
53
a7607572
BH
54(define-public geos
55 (package
56 (name "geos")
af63f03f 57 (version "3.6.2")
a7607572
BH
58 (source (origin
59 (method url-fetch)
60 (uri (string-append "http://download.osgeo.org/geos/geos-"
61 version
62 ".tar.bz2"))
63 (sha256
64 (base32
af63f03f 65 "0ak5szby29l9l0vy43dm5z2g92xzdky20q1gc1kah1fnhkgi6nh4"))))
a7607572
BH
66 (build-system gnu-build-system)
67 (arguments `(#:phases
68 (modify-phases %standard-phases
69 (add-after
70 'unpack 'patch-test-shebangs
71 (lambda _
72 (substitute* '("tests/xmltester/testrunner.sh"
73 "tests/geostest/testrunner.sh")
74 (("/bin/sh") (which "sh")))
75 #t)))))
76 (inputs
77 `(("glib" ,glib)))
78 (home-page "https://geos.osgeo.org/")
79 (synopsis "Geometry Engine for Geographic Information Systems")
80 (description
81 "GEOS provides a spatial object model and fundamental geometric
82functions. It is a C++ port of the Java Topology Suite (JTS). As such,
83it aims to contain the complete functionality of JTS in C++. This
84includes all the OpenGIS Simple Features for SQL spatial predicate
85functions and spatial operators, as well as specific JTS enhanced
86topology functions.")
87 (license (list license:lgpl2.1+ ; Main distribution.
88 license:zlib ; tests/xmltester/tinyxml/*
89 license:public-domain)))) ; include/geos/timeval.h
90
03c1662e
LF
91(define-public gnome-maps
92 (package
93 (name "gnome-maps")
67bd376b 94 (version "3.26.2")
03c1662e
LF
95 (source (origin
96 (method url-fetch)
97 (uri (string-append "mirror://gnome/sources/" name "/"
98 (version-major+minor version) "/"
99 name "-" version ".tar.xz"))
100 (sha256
101 (base32
67bd376b 102 "0l40l7m9dyphvasiq1jxrn6ivavs1xwzn0bzz2x1z7x73955q783"))))
03c1662e
LF
103 (build-system glib-or-gtk-build-system)
104 (arguments
67bd376b 105 `(#:configure-flags ;; Ensure that geoclue is referred to by output.
03c1662e
LF
106 (list (string-append "LDFLAGS=-L"
107 (assoc-ref %build-inputs "geoclue") "/lib")
108 (string-append "CFLAGS=-I"
109 (assoc-ref %build-inputs "geoclue") "/include"))
110 #:phases
111 (modify-phases %standard-phases
67bd376b
KK
112 (add-after 'install 'wrap
113 (lambda* (#:key inputs outputs #:allow-other-keys)
114 (let ((out (assoc-ref outputs "out"))
115 (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
116 (goa-path (string-append
03c1662e 117 (assoc-ref inputs "gnome-online-accounts")
67bd376b
KK
118 "/lib"))
119 (webkitgtk-path (string-append
120 (assoc-ref inputs "webkitgtk")
121 "/lib")))
122 (wrap-program (string-append out "/bin/gnome-maps")
123 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
03c1662e 124
67bd376b
KK
125 ;; There seems to be no way to embed the path of
126 ;; libgoa-1.0.so.0, libwebkit2gtk-4.0.so.37 and
127 ;; libjavascriptcoregtk-4.0.so.18.
128 `("LD_LIBRARY_PATH" ":" prefix (,goa-path ,webkitgtk-path)))
129 #t))))))
03c1662e
LF
130 (native-inputs
131 `(("gobject-introspection" ,gobject-introspection)
132 ("intltool" ,intltool)
133 ("pkg-config" ,pkg-config)))
134 (inputs
135 `(("folks" ,folks)
136 ("libchamplain" ,libchamplain)
137 ("libgee" ,libgee)
8d26f48e
RW
138 ("libsecret" ,libsecret)
139 ("libsoup" ,libsoup)
140 ("libgweather" ,libgweather)
03c1662e 141 ("libxml2" ,libxml2)
8d26f48e
RW
142 ("gdk-pixbuf" ,gdk-pixbuf)
143 ("glib-networking" ,glib-networking)
03c1662e
LF
144 ("geoclue" ,geoclue)
145 ("geocode-glib" ,geocode-glib)
146 ("gfbgraph" ,gfbgraph)
147 ("gjs" ,gjs)
148 ("glib" ,glib)
149 ("gnome-online-accounts" ,gnome-online-accounts)
8d26f48e 150 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
03c1662e
LF
151 ("rest" ,rest)
152 ("webkitgtk" ,webkitgtk)))
153 (propagated-inputs
154 `(("gtk+3" ,gtk+)))
155 (synopsis "Graphical map viewer and wayfinding program")
156 (description "GNOME Maps is a graphical map viewer. It uses map data from
157the OpenStreetMap project. It can provide directions for walking, bicycling,
158and driving.")
159 (home-page "https://wiki.gnome.org/Apps/Maps")
065d0125
BH
160 (license license:gpl2+)))
161
22c7c775
BH
162(define-public libgaiagraphics
163 (package
164 (name "libgaiagraphics")
165 (version "0.5")
166 (source
167 (origin
168 (method url-fetch)
169 (uri (string-append "https://www.gaia-gis.it/gaia-sins/libgaiagraphics-"
170 version ".tar.gz"))
171 (sha256
172 (base32
173 "076afqv417ag3hfvnif0qc7qscmnq1dsf6y431yygwgf34rjkayc"))))
174 (build-system gnu-build-system)
175 (native-inputs
176 `(("pkg-config" ,pkg-config)))
177 (inputs
178 `(("cairo" ,cairo)
179 ("libpng" ,libpng)
180 ("libjepeg-turbo" ,libjpeg-turbo)
181 ("libtiff" ,libtiff)
182 ("libgeotiff" ,libgeotiff)
183 ("proj.4" ,proj.4)
184 ("libxml2" ,libxml2)
185 ("zlib" ,zlib)))
186 (synopsis "Gaia common graphics support")
187 (description "libgaiagraphics is a library supporting
188 common-utility raster handling methods.")
189 (home-page "https://www.gaia-gis.it/fossil/libgaiagraphics/index")
190 (license license:lgpl3+)))
191
1a39141d
BH
192(define-public libgeotiff
193 (package
194 (name "libgeotiff")
195 (version "1.4.2")
196 (source
197 (origin
198 (method url-fetch)
199 (uri (string-append "http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-"
200 version ".tar.gz"))
201 (sha256
202 (base32
203 "0vjy3bwfhljjx66p9w999i4mdhsf7vjshx29yc3pn5livf5091xd"))
204 (modules '((guix build utils)))
205 (snippet
206 '(begin
207 ;; Remove .csv files, distributed from EPSG under a restricted
208 ;; license. See LICENSE for full license text.
209 (for-each delete-file (find-files "." "\\.csv$"))
210 ;; Now that we have removed the csv files, we need to modify the Makefile.
211 (substitute* "Makefile.in"
212 (("^all-am: .*$")
213 "all-am: Makefile $(LTLIBRARIES) $(HEADERS) geo_config.h\n")
214 (("^install-data-am: .*$")
215 "install-data-am: install-includeHEADERS"))))))
216 (build-system gnu-build-system)
217 (inputs
218 `(("libjpeg-turbo" ,libjpeg-turbo)
219 ("libtiff" ,libtiff)
220 ("proj.4" ,proj.4)
221 ("zlib" ,zlib)))
222 (arguments
223 `(#:configure-flags
224 (list (string-append "--with-zlib")
225 (string-append "--with-jpeg")
226 (string-append "--with-libtiff=" (assoc-ref %build-inputs "libtiff")))))
227 (synopsis "Library for handling GeoTIFF (geographic enabled TIFF)")
228 (description "libgeotiff is a library on top of libtiff for reading and
229writing GeoTIFF information tags.")
230 (home-page "https://trac.osgeo.org/geotiff/")
231 ;; This is a mixture of various contributions under different licenses.
232 ;; Note that the EPSG database is NOT "free to use" as the LICENSE file
233 ;; states, as its commercial redistribution is restricted. Hence, we have
234 ;; removed it from the package.
235 (license (list license:public-domain
236 license:x11
237 license:bsd-3
238 (license:non-copyleft "file://LICENSE"
239 "See LICENSE in the distribution.")))))
240
f6c507e1
BH
241(define-public libspatialite
242 (package
243 (name "libspatialite")
244 (version "4.3.0a")
245 (source
246 (origin
247 (method url-fetch)
248 (uri (string-append "https://www.gaia-gis.it/gaia-sins/libspatialite-"
249 version ".tar.gz"))
250 (sha256
251 (base32
252 "16d4lpl7xrm9zy4gphy6nwanpjp8wn9g4wq2i2kh8abnlhq01448"))))
253 (build-system gnu-build-system)
254 (native-inputs
255 `(("pkg-config" ,pkg-config)))
256 (inputs
257 `(("freexl" ,freexl)
258 ("geos" ,geos)
259 ("libxml2" ,libxml2)
260 ("proj.4" ,proj.4)
261 ("sqlite" ,sqlite)
262 ("zlib" ,zlib)))
263 (arguments
264 `(#:phases
265 (modify-phases %standard-phases
266 ;; 3 tests are failing, ignore them:
267 (add-after 'unpack 'ignore-broken-tests
268 (lambda _
269 (substitute* '("test/Makefile.in")
270 (("\tcheck_sql_stm.*" all) "\tcheck_multithread$(EXEEXT) \\\n")
271 (("(\tch.*) check_v.*ble2.*$" all vt1) (string-append vt1 " \\\n"))
272 (("\tch.* (check_v.*ble4.*)$" all vt4) (string-append "\t" vt4)))
273 #t)))))
274 (synopsis "Extend SQLite to support Spatial SQL capabilities")
275 (description
276 "SpatiaLite is a library intended to extend the SQLite core to support
277fully fledged Spatial SQL capabilities.")
278 (home-page "https://www.gaia-gis.it/fossil/libspatialite/index")
279 ;; For the genuine libspatialite-sources holds:
280 ;; Any of the licenses MPL1.1, GPL2+ or LGPL2.1+ may be picked.
281 ;; Files under src/control_points are from GRASS
282 ;; and are licensed under GPL2+ only.
283 ;; src/md5.[ch]: Placed into the public domain by Alexander Peslyak.
284 (license (list license:gpl2+
285 license:lgpl2.1+
286 license:mpl1.1
287 license:public-domain))))
288
065d0125
BH
289(define-public proj.4
290 (package
291 (name "proj.4")
292 (version "4.9.3")
293 (source (origin
294 (method url-fetch)
295 (uri (string-append "http://download.osgeo.org/proj/proj-"
296 version ".tar.gz"))
297 (sha256
298 (base32
299 "1xw5f427xk9p2nbsj04j6m5zyjlyd66sbvl2bkg8hd1kx8pm9139"))))
300 (build-system gnu-build-system)
301 (arguments
302 `(#:phases
303 (modify-phases %standard-phases
304 (add-after 'unpack 'patch-test-paths
305 (lambda _
306 (substitute* '("nad/test27"
307 "nad/test83"
308 "nad/testvarious"
309 "nad/testdatumfile"
310 "nad/testflaky"
311 "nad/testIGNF")
312 (("/bin/rm") (which "rm")))
313 #t))
314 ;; Precision problems on i686 and other platforms. See:
315 ;; https://web.archive.org/web/20151006134301/http://trac.osgeo.org/proj/ticket/255
316 ;; Disable failing test.
317 (add-after 'patch-test-paths 'ignore-failing-tests
318 (lambda _
319 (substitute* '("nad/Makefile.in")
320 (("\tPROJ_LIB.*" all) (string-append "#" all)))
321 #t)))))
322 (inputs
323 `(("glib" ,glib)))
324 (home-page "http://proj4.org/")
325 (synopsis "Cartographic Projections Library")
326 (description
327 "Proj.4 is a library for converting coordinates between cartographic
328projections.")
329 (license (list license:expat
330 ;; src/PJ_patterson.c
331 license:asl2.0
332 ;; src/geodesic.c/h
333 license:x11
334 ;; Embedded EPSG database.
335 (license:non-copyleft "http://www.epsg.org/TermsOfUse")
336 ;; cmake/*
337 license:boost1.0))))
f2b005f6
AI
338
339(define-public mapnik
340 (package
341 (name "mapnik")
342 (version "3.0.18")
343 (source
344 (origin
345 (method url-fetch)
346 (uri (string-append "https://github.com/mapnik/mapnik/releases/download/v"
347 version "/mapnik-v" version ".tar.bz2"))
348 (sha256
349 (base32
350 "06frcikaj2mgz3abfk5h0z4j3hbksi0zikwjngbjv4p5f3pwxf8q"))))
351 (build-system scons-build-system)
352 (inputs
353 `(("boost" ,boost)
354 ("cairo" ,cairo)
355 ("freetype" ,freetype)
356 ("harfbuzz" ,harfbuzz)
357 ("icu4c" ,icu4c)
358 ("libjpeg-turbo" ,libjpeg-turbo)
359 ("libpng" ,libpng)
360 ("libtiff" ,libtiff)
361 ("libwebp" ,libwebp)
362 ("libxml2" ,libxml2)
363 ("proj.4" ,proj.4)
364 ("sqlite" ,sqlite)
365 ("zlib" ,zlib)))
366 (native-inputs
367 `(("pkg-config" ,pkg-config)))
368 (arguments
369 `(#:scons ,scons-python2
370 #:scons-flags
371 (list "CC=gcc"
372 (string-append "PREFIX=" %output)
373 (string-append "CUSTOM_LDFLAGS=-Wl,-rpath=" %output "/lib"))))
374 (home-page "http://mapnik.org/")
375 (synopsis "Toolkit for developing mapping applications")
376 (description "Mapnik is a toolkit for developing mapping applications. It
377is basically a collection of geographic objects like maps, layers,
378datasources, features, and geometries. At its core is a C++ shared library
379providing algorithms and patterns for spatial data access and visualization.
380The library does not rely on any specific windowing system and can be deployed
381to any server environment. It is intended to play fair in a multi-threaded
382environment and is aimed primarily, but not exclusively, at web-based
383development.")
384 (license (list license:lgpl2.1+
385 ;; demo/viewer, demo/python/rundemo.py
386 license:gpl2+
387 ;; deps/boost, deps/mapbox, deps/agg/include/agg_conv_offset.h
388 license:boost1.0
389 ;; deps/mapnik/sparsehash
390 license:bsd-3
391 ;; deps/agg
392 (license:non-copyleft "file://deps/agg/copying")))))
393
f25e1e24
AI
394(define-public python2-mapnik
395 (package
396 (name "python2-mapnik")
397 (version "3.0.16")
398 (source
399 (origin
400 (method url-fetch)
401 (uri (string-append "https://github.com/mapnik/python-mapnik/archive/v"
402 version ".tar.gz"))
403 (file-name (string-append name "-" version ".tar.gz"))
404 (sha256
405 (base32
406 "0w7wg72gnwmbjani9sqk42p2jwqkrl9hsdkawahni5m05xsifcb4"))))
407 (build-system python-build-system)
408 (inputs
409 `(("boost" ,boost)
410 ("harfbuzz" ,harfbuzz)
411 ("icu4c" ,icu4c)
412 ("libjpeg-turbo" ,libjpeg-turbo)
413 ("libpng" ,libpng)
414 ("libtiff" ,libtiff)
415 ("libwebp" ,libwebp)
416 ("mapnik" ,mapnik)
417 ("proj.4" ,proj.4)
418 ("python2-pycairo" ,python2-pycairo)))
419 (native-inputs
420 (let ((test-data-input
421 (lambda (repository version hash)
422 (origin
423 (method url-fetch)
424 (uri (string-append "https://github.com/mapnik/" repository
425 "/archive/v" version ".tar.gz"))
426 (file-name (string-append "python-mapnik-" repository
427 "-" version ".tar.gz"))
428 (sha256 (base32 hash))))))
429 `(("python2-nose" ,python2-nose)
430 ;; Test data is released as separate tarballs
431 ("test-data"
432 ,(test-data-input "test-data" "3.0.18"
433 "10cvgn5gxn8ldrszj24zr1vzm5w76kqk4s7bl2zzp5yvkhh8lj1n"))
434 ("test-data-visual"
435 ,(test-data-input "test-data-visual" "3.0.18"
436 "1cb9ghy8sis0w5fkp0dvwxdqqx44rhs9a9w8g9r9i7md1c40r80i")))))
437 (arguments
438 `(#:python ,python-2 ; Python 3 support is incomplete, and the build fails
439 #:phases
440 (modify-phases %standard-phases
441 ;; Unpack test data into the source tree
442 (add-after 'unpack 'unpack-submodules
443 (lambda* (#:key inputs #:allow-other-keys)
444 (let ((unpack (lambda (source target)
445 (with-directory-excursion target
446 (invoke "tar" "xvf" (assoc-ref inputs source)
447 "--strip-components=1")))))
448 (unpack "test-data" "test/data")
449 (unpack "test-data-visual" "test/data-visual"))))
450 ;; Skip failing tests
451 (add-after 'unpack 'skip-tests
452 (lambda _
453 (let ((skipped-tests (list "test_vrt_referring_to_missing_files"
454 "test_unicode_regex_replace"
455 "test_proj_antimeridian_bbox"
456 "test_render_with_scale_factor")))
457 (substitute* "setup.cfg"
458 (("\\[nosetests\\]" all)
459 (string-append all "\nexclude=^("
460 (string-join skipped-tests "|") ")$")))))))))
461 (home-page "https://github.com/mapnik/python-mapnik")
462 (synopsis "Python bindings for Mapnik")
463 (description "This package provides Python bindings for Mapnik.")
464 (license license:lgpl2.1+)))
a2a53274
BH
465
466(define-public spatialite-gui
467 (package
468 (name "spatialite-gui")
469 (version "1.7.1")
470 (source
471 (origin
472 (method url-fetch)
473 (uri (string-append "https://www.gaia-gis.it/gaia-sins/spatialite_gui-"
474 version ".tar.gz"))
475 (sha256
476 (base32
477 "1r05dz9pyc8vsd2wbqxcsracpfbaamz470rcyp2myfpqwznv376b"))))
478 (build-system gnu-build-system)
479 (native-inputs
480 `(("pkg-config" ,pkg-config)))
481 (inputs
482 `(("freexl" ,freexl)
483 ("geos" ,geos)
484 ("libgaiagraphics" ,libgaiagraphics)
485 ("libspatialite" ,libspatialite)
486 ("libxml2" ,libxml2)
487 ("proj.4" ,proj.4)
488 ("sqlite" ,sqlite)
489 ("wxwidgets" ,wxwidgets-2)
490 ("zlib" ,zlib)))
491 (synopsis "Graphical user interface for SpatiaLite")
492 (description "Spatialite-gui provides a visual interface for viewing and
493 maintaining a spatialite database. You can easily see the structure of the
494 tables and data contents using point and click functions, many of which
495 construct common SQL queries, or craft your own SQL queries.")
496 (home-page "https://www.gaia-gis.it/fossil/spatialite_gui/index")
497 (license license:gpl3+)))
3d60f426
LF
498
499(define-public r-maps
500 (package
501 (name "r-maps")
5895f238 502 (version "3.3.0")
3d60f426
LF
503 (source
504 (origin
505 (method url-fetch)
506 (uri (cran-uri "maps" version))
507 (sha256
508 (base32
5895f238 509 "05i2ppl5z4p8rawgqmy3z4ia05fcblpq1vvrmrkgkkpdlhczx6hr"))))
3d60f426
LF
510 (build-system r-build-system)
511 (home-page "https://cran.r-project.org/web/packages/maps")
512 (synopsis "Draw geographical maps")
513 (description "This package provies an R module for display of maps.
514Projection code and larger maps are in separate packages ('mapproj' and
515'mapdata').")
516 (license license:gpl2)))
ebc4bd5b
LF
517
518(define-public r-mapproj
519 (package
520 (name "r-mapproj")
2ef5ab87 521 (version "1.2.6")
ebc4bd5b
LF
522 (source
523 (origin
524 (method url-fetch)
525 (uri (cran-uri "mapproj" version))
526 (sha256
527 (base32
2ef5ab87 528 "1rggww8cbwv0vzlj5afzhbsbngg4bzj5znbkz7wmxsbshfbsm9b2"))))
ebc4bd5b
LF
529 (build-system r-build-system)
530 (propagated-inputs `(("r-maps" ,r-maps)))
531 (home-page "https://cran.r-project.org/web/packages/mapproj")
532 (synopsis "Map projection in R")
533 (description "This package converts latitude/longitude into projected
534coordinates.")
535 (license (list license:gpl2 ; The R interface
536 (license:non-copyleft ; The C code
537 "https://www.gnu.org/licenses/license-list.en.html#lucent102"
538 "Lucent Public License Version 1.02")))))
9ddf4209
LF
539
540(define-public r-rgooglemaps
541 (package
542 (name "r-rgooglemaps")
543 (version "1.4.1")
544 (source
545 (origin
546 (method url-fetch)
547 (uri (cran-uri "RgoogleMaps" version))
548 (sha256
549 (base32
550 "0fsmlnhl4kw2j4972kfanzw9njhnzk695gsyw8g6yppsmz2clcaq"))))
551 (properties `((upstream-name . "RgoogleMaps")))
552 (build-system r-build-system)
553 (propagated-inputs `(("r-png" ,r-png)))
554 (home-page "https://cran.r-project.org/web/packages/RgoogleMaps")
555 (synopsis "Use Google Maps in R")
556 (description "This package serves two purposes: (i) Provide a comfortable R
557interface to query the Google server for static maps, and (ii) Use the map as a
558background image to overlay plots within R. This requires proper coordinate
559scaling.")
560 (license license:gpl2+)))
24fb9a55
LF
561
562(define-public r-geosphere
563 (package
564 (name "r-geosphere")
565 (version "1.5-7")
566 (source
567 (origin
568 (method url-fetch)
569 (uri (cran-uri "geosphere" version))
570 (sha256
571 (base32
572 "186qdm5niq7v3d4w4rngx71znsgi44hnam7698bsx9ar5mg5b6wx"))))
573 (build-system r-build-system)
574 (propagated-inputs `(("r-sp" ,r-sp)))
575 (home-page "https://cran.r-project.org/web/packages/geosphere")
576 (synopsis "Spherical trigonometry")
577 (description "This package computes spherical trigonometry for geographic
578applications. That is, compute distances and related measures for angular
579(longitude/latitude) locations.")
580 (license license:gpl3+)))
5b19776e
LF
581
582(define-public r-ggmap
583 (package
584 (name "r-ggmap")
585 (version "2.6.1")
586 (source
587 (origin
588 (method url-fetch)
589 (uri (cran-uri "ggmap" version))
590 (sha256
591 (base32
592 "0mssb09w818jv58h7mly9y181pzv22sgcd4a079cfpq04bs0wigw"))))
593 (build-system r-build-system)
594 (propagated-inputs
595 `(("r-digest" ,r-digest)
596 ("r-geosphere" ,r-geosphere)
597 ("r-ggplot2" ,r-ggplot2)
598 ("r-jpeg" ,r-jpeg)
599 ("r-mapproj" ,r-mapproj)
600 ("r-plyr" ,r-plyr)
601 ("r-png" ,r-png)
602 ("r-proto" ,r-proto)
603 ("r-reshape2" ,r-reshape2)
604 ("r-rgooglemaps" ,r-rgooglemaps)
605 ("r-rjson" ,r-rjson)
606 ("r-scales" ,r-scales)))
607 (home-page "https://github.com/dkahle/ggmap")
608 (synopsis "Spatial visualization with ggplot2")
609 (description "This package provides a collection of functions to visualize
610spatial data and models on top of static maps from various online sources (e.g
611Google Maps and Stamen Maps). It includes tools common to those tasks,
612including functions for geolocation and routing.")
613 (license license:gpl2)))