isce3 0.25.0
Loading...
Searching...
No Matches
Dataset.icc
1#ifndef ISCE_IO_GDAL_DATASET_ICC
2#error "Dataset.icc is an implementation detail of Dataset.h"
3#endif
4
5#include <isce3/except/Error.h>
6
7#include "detail/MemDataset.h"
8
9namespace isce3 { namespace io { namespace gdal {
10
11template<typename T>
12inline
13Dataset::Dataset(const T * data, int width, int length, int bands)
14:
15 Dataset(const_cast<T *>(data), width, length, bands, GA_ReadOnly)
16{}
17
18template<typename T>
19inline
20Dataset::Dataset(T * data, int width, int length, int bands, GDALAccess access)
21:
22 Dataset(data, width, length, bands, sizeof(T), width * sizeof(T), std::size_t(length) * width * sizeof(T), access)
23{}
24
25template<typename T>
26inline
27Dataset::Dataset(const T * data,
28 int width,
29 int length,
30 int bands,
31 std::size_t colstride,
32 std::size_t rowstride,
33 std::size_t bandstride)
34:
35 Dataset(const_cast<T *>(data), width, length, bands, colstride, rowstride, bandstride, GA_ReadOnly)
36{}
37
38template<typename T>
39inline
41 int width,
42 int length,
43 int bands,
44 std::size_t colstride,
45 std::size_t rowstride,
46 std::size_t bandstride,
47 GDALAccess access)
48:
49 Dataset(detail::getMemDatasetName(data, width, length, bands, colstride, rowstride, bandstride), access)
50{
51 if (!data) {
52 throw isce3::except::InvalidArgument(ISCE_SRCINFO(), "data pointer may not be null");
53 }
54}
55
56}}}
int length() const
Number of rows.
Definition Dataset.h:154
int bands() const
Number of bands.
Definition Dataset.h:157
int width() const
Number of columns.
Definition Dataset.h:151
Dataset(const std::string &path, GDALAccess access=GA_ReadOnly)
Open an existing file as a GDAL dataset.
Definition Dataset.cpp:105
GDALAccess access() const
Access mode.
Definition Dataset.h:148
The isce3::io namespace.
Definition Constants.h:14
base interpolator is an abstract base class
Definition BinarySearchFunc.cpp:5

Generated for ISCE3.0 by doxygen 1.13.2.