21 #ifndef otbOGRFeatureWrapper_h
22 #define otbOGRFeatureWrapper_h
127 void SetFrom(
Feature const& rhs,
int* map,
bool mustForgive =
true);
131 void SetFrom(
Feature const& rhs,
bool mustForgive =
true);
136 void PrintSelf(std::ostream& os, itk::Indent indent)
const;
146 OGRFeature& ogr()
const;
158 std::shared_ptr<OGRFeature>&
sptr()
164 std::shared_ptr<OGRFeature>
const&
sptr()
const
185 void SetFID(
long fid);
194 OGRFeatureDefn& GetDefn()
const;
219 Field operator[](
int index);
227 Field const operator[](
int index)
const;
234 Field operator[](std::string
const& name);
241 Field const operator[](std::string
const& name)
const;
256 FieldDefn GetFieldDefn(std::string
const& name)
const;
262 int GetFieldIndex(std::string
const& name)
const;
283 void SetGeometry(OGRGeometry
const* geometry);
294 OGRGeometry
const* GetGeometry()
const;
340 return m_Feature.get();
381 void CheckInvariants()
const;
393 #ifndef OTB_MANUAL_INSTANTIATION
Geometric object with descriptive fields.
Feature UncheckedClone() const
std::shared_ptr< OGRFeature > m_Feature
FieldDefn UncheckedGetFieldDefn(int index) const
Field UncheckedGetElement(std::string const &name)
Feature(OGRFeatureDefn &definition)
Field UncheckedGetElement(int index)
FieldDefn UncheckedGetFieldDefn(std::string const &name) const
UniqueGeometryPtr UncheckedStealGeometry()
OGRFeature const * addr() const
long UncheckedGetFID() const
void UncheckedPrintSelf(std::ostream &os, itk::Indent indent) const
void UncheckedSetGeometryDirectly(UniqueGeometryPtr geometry)
OGRGeometry const * UncheckedGetGeometry() const
Feature(OGRFeature *feature)
std::shared_ptr< OGRFeature > const & sptr() const
OGRFeatureDefn & UncheckedGetDefn() const
void UncheckedSetFID(long fid)
std::shared_ptr< OGRFeature > & sptr()
int UncheckedGetFieldIndex(std::string const &name) const
void UncheckedSetFrom(Feature const &rhs, int *map, bool mustForgive=true)
void UncheckedSetFrom(Feature const &rhs, bool mustForgive=true)
void UncheckedSetGeometry(OGRGeometry const *geometry)
Encapsulation of OGRFieldDefn: field definition.
Encapsulation of OGRField Instances of Field are expected to be built from an existing Feature with w...
boost::interprocess::unique_ptr< OGRGeometry, internal::GeometryDeleter > UniqueGeometryPtr
OTBGdalAdapters_EXPORT bool operator==(Feature const &lhs, Feature const &rhs)
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.