28 namespace otb {
namespace ogr {
namespace internal {
38 template <
typename DataType>
inline
41 assert(ds &&
"unexpected nil datasource");
77 : m_GeometriesSet(otb::ogr::DataSource::New())
78 , m_ImageReference(*this)
83 : m_GeometriesSet(datasource)
84 , m_ImageReference(*this)
86 assert(datasource &&
"unexpected nil datasource");
90 : m_GeometriesSet(layer)
91 , m_ImageReference(*this)
118 assert(layer &&
"unexpected nil layer");
119 m_GeometriesSet = layer;
124 assert(datasource &&
"unexpected nil datasource");
125 m_GeometriesSet = datasource;
131 namespace otb {
namespace ogr {
namespace internal {
140 template <
typename T>
141 bool operator()(T
const& gs)
const
156 namespace otb {
namespace ogr {
namespace internal {
166 : m_os(os), m_indent(indent) {}
169 assert(layer &&
"unexpected nil layer...");
174 assert(datasource &&
"unexpected nil datasource...");
175 datasource->
Print(m_os, m_indent);