Skip to content
Snippets Groups Projects

ENH: add GeoJSON driver and simplify driver selection

Merged Jordi Inglada requested to merge jinglada/otb:GeoJSON_driver into develop
All threads resolved!
2 files
+ 15
8
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -22,6 +22,7 @@
#define otbOGRVectorDataIO_h
#include <string>
#include <map>
#include <cassert>
#include "otbVectorDataIOBase.h"
@@ -124,6 +125,19 @@ private:
GDALDataset * m_DataSource;
const std::map<std::string, std::string>
m_OGRExtensionsToDrivers = {
{ ".SHP", "ESRI Shapefile"},
{ ".TAB", "MapInfo File"},
{ ".GML", "GML"},
{ ".GPX", "GPX"},
{ ".SQLITE", "SQLite"},
{".KML", "KML"},
{ ".GMT", "OGR_GMT"},
{ ".GPKG", "GPKG"},
{ ".JSON", "GeoJSON"},
{ ".GEOJSON", "GeoJSON"}
};
};
} // end namespace otb
Loading