% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/raster.R
\name{vec_to_tiff}
\alias{vec_to_tiff}
\title{Export a .vec raster to GeoTIFF}
\usage{
vec_to_tiff(r, path, compression = c("deflate", "lzw", "none"))
}
\arguments{
\item{r}{Either a path to a \code{.vec} raster or a \code{vectra_raster} returned
by \code{vec_open_raster()}. If a handle is passed it is left open.}

\item{path}{Output \code{.tif} path.}

\item{compression}{One of \code{"deflate"} (default), \code{"lzw"}, or \code{"none"}.}
}
\value{
Invisible \code{NULL}.
}
\description{
Writes the level-0 pixels of a \code{.vec} raster to a GeoTIFF file. The
TIFF inherits dtype, geotransform, EPSG, and nodata from the source.
Strip layout; the writer supports \code{"none"}, \code{"deflate"}, and \code{"lzw"}
compression. LZW also applies horizontal differencing (Predictor 2)
for integer pixel types, which dramatically improves compression on
smooth raster data and matches the layout most production GIS tools
produce by default. Tiled and BigTIFF output land in a follow-up.
}
