21 #ifndef otbOGRVectorDataIO_h
22 #define otbOGRVectorDataIO_h
31 #include "OTBIOGDALExport.h"
92 void Read(itk::DataObject* data)
override;
101 void Write(
const itk::DataObject* data,
char** papszOptions =
nullptr)
override;
112 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
124 const std::map<std::string, std::string> m_OGRExtensionsToDrivers = {
125 {
".SHP",
"ESRI Shapefile"}, {
".TAB",
"MapInfo File"}, {
".GML",
"GML"}, {
".GPX",
"GPX"}, {
".SQLITE",
"SQLite"}, {
".KML",
"KML"},
126 {
".GMT",
"OGR_GMT"}, {
".GPKG",
"GPKG"}, {
".JSON",
"GeoJSON"}, {
".GEOJSON",
"GeoJSON"}};
This class represents a node of data in a vector data hierarchy.
itk::SmartPointer< Self > Pointer
itk::Point< PrecisionType, VDimension > PointType
ImageIO object for reading and writing OGR format vector data.
PolygonType::Pointer PolygonPointerType
VectorDataType::DataTreeType DataTreeType
itk::SmartPointer< const Self > ConstPointer
void operator=(const Self &)=delete
PolygonListType::Pointer PolygonListPointerType
Superclass::PointType OriginType
bool CanWriteFile(const char *) const override
~OGRVectorDataIO() override
VectorDataType::Pointer VectorDataPointerType
std::string GetOGRDriverName(std::string name) const
VertexListType::ConstPointer VertexListConstPointerType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void Write(const itk::DataObject *data, char **papszOptions=nullptr) override
bool CanReadFile(const char *) const override
GDALDataset * m_DataSource
void Read(itk::DataObject *data) override
void CloseInternalDataSource()
OGRVectorDataIO(const Self &)=delete
LineType::Pointer LinePointerType
VectorDataType::ChildrenListType ChildrenListType
DataNodeType::Pointer DataNodePointerType
VectorDataType::ConstPointer VectorDataConstPointerType
LineType::VertexListType VertexListType
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
itk::SmartPointer< Self > Pointer
This class implement a PolyLineParametricPath for which a value can be set. The value is stored in th...
Superclass::VertexListType VertexListType
itk::SmartPointer< Self > Pointer
This class represent a 2D polygon.
itk::SmartPointer< Self > Pointer
Abstract superclass defines VectorData IO interface.
itk::Point< double, VDimension > PointType
itk::SmartPointer< Self > Pointer
itk::Vector< double, VDimension > SpacingType
itk::LightProcessObject Superclass
This class represents a hierarchy of vector data.
itk::SmartPointer< Self > Pointer
boost::adjacency_list< boost::vecS, boost::vecS, boost::directedS, DataNodePointerType > DataTreeType
std::vector< DataNodePointerType > ChildrenListType
itk::SmartPointer< const Self > ConstPointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.