21 #ifndef otbOGRFeatureWrapper_h
22 #define otbOGRFeatureWrapper_h
39 OTBGdalAdapters_EXPORT
bool operator==(Feature
const& lhs, Feature
const& rhs);
82 Feature(OGRFeatureDefn& definition);
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();
353 Feature UncheckedClone()
const;
354 void UncheckedSetFrom(
Feature const& rhs,
int* map,
bool mustForgive =
true);
355 void UncheckedSetFrom(
Feature const& rhs,
bool mustForgive =
true);
356 void UncheckedPrintSelf(std::ostream& os, itk::Indent indent)
const;
357 Field UncheckedGetElement(
int index);
358 Field UncheckedGetElement(std::string
const& name);
359 FieldDefn UncheckedGetFieldDefn(
int index)
const;
360 FieldDefn UncheckedGetFieldDefn(std::string
const& name)
const;
361 int UncheckedGetFieldIndex(std::string
const& name)
const;
362 long UncheckedGetFID()
const;
363 void UncheckedSetFID(
long fid);
364 OGRFeatureDefn& UncheckedGetDefn()
const;
367 OGRGeometry
const* UncheckedGetGeometry()
const;
368 void UncheckedSetGeometry(OGRGeometry
const* geometry);
381 void CheckInvariants()
const;
393 #ifndef OTB_MANUAL_INSTANTIATION
397 #endif // otbOGRFeatureWrapper_h