1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RGdalutilities(RPackage):
"""Wrappers for 'GDAL' Utilities Executables.
R's 'sf' package ships with self-contained 'GDAL' executables, including a
bare bones interface to several 'GDAL'-related utility programs
collectively known as the 'GDAL utilities'. For each of those utilities,
this package provides an R wrapper whose formal arguments closely mirror
those of the 'GDAL' command line interface. The utilities operate on data
stored in files and typically write their output to other files. Therefore,
to process data stored in any of R's more common spatial formats (i.e.
those supported by the 'sp', 'sf', and 'raster' packages), first write them
to disk, then process them with the package's wrapper functions before
reading the outputted results back into R. GDAL function arguments
introduced in GDAL version 3.2.1 or earlier are supported."""
cran = "gdalUtilities"
version("1.2.4", sha256="56d2582324977f2ae0a8bc42f740cd93b22c71eb8ee6a68b5b07083e409db8c7")
version("1.2.1", sha256="8f5dcc0c077bf972da9d574c62c992935311afb76a97f03ace719bc6da214a9c")
version("1.2.0", sha256="ead446f7f77f952b72b9ed80c5e415cb9d8d30cfb2439c8d1a8156fa55e2b65b")
depends_on("r-sf", type=("build", "run"))
depends_on("r-sf@1.0-11:", type=("build", "run"), when="@1.2.4:")
|