% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/featured_space_raster.R
\name{maxent_extract_occurrence_env_terra}
\alias{maxent_extract_occurrence_env_terra}
\title{Extract environmental values for occurrences from a terra SpatRaster}
\usage{
maxent_extract_occurrence_env_terra(
  rast,
  occurrences,
  lon_col = "longitude",
  lat_col = "latitude"
)
}
\arguments{
\item{rast}{A \code{terra::SpatRaster}.}

\item{occurrences}{Either a two-column matrix/data.frame (x,y) or a vector
of 1-based raster cell indices.}

\item{lon_col}{Longitude column name when \code{occurrences} is a data.frame.}

\item{lat_col}{Latitude column name when \code{occurrences} is a data.frame.}
}
\value{
Numeric matrix with one row per retained occurrence and one column
  per raster layer.
}
\description{
Streams finite raster rows through the same callback-backed provider path
used by \code{\link{maxent_featured_space_from_rast}}, then returns values
at occurrence locations.
}
