Skip to content
Snippets Groups Projects
Commit 0ff9b289 authored by Julien Malik's avatar Julien Malik
Browse files

COMP: use new enum definition

parent 369bb8a9
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ int otbGeometriesProjectionFilterFromGeoToMap(int argc, char * argv[])
typedef otb::GeometriesSet InputGeometriesType;
typedef otb::GeometriesSet OutputGeometriesType;
otb::ogr::DataSource::Pointer input = otb::ogr::DataSource::New(
argv[1], otb::ogr::DataSource::Modes::read);
argv[1], otb::ogr::DataSource::Modes::Read);
InputGeometriesType::Pointer in_set = InputGeometriesType::New(input);
// Input Keywordlist (from image)
......@@ -52,7 +52,7 @@ int otbGeometriesProjectionFilterFromGeoToMap(int argc, char * argv[])
// Output Geometries Set
otb::ogr::DataSource::Pointer output = otb::ogr::DataSource::New(
argv[3], otb::ogr::DataSource::Modes::write);
argv[3], otb::ogr::DataSource::Modes::Overwrite);
OutputGeometriesType::Pointer out_set = OutputGeometriesType::New(output);
// Filter
......
......@@ -39,12 +39,12 @@ int otbGeometriesProjectionFilterFromMapToGeo(int argc, char **argv)
typedef otb::GeometriesSet InputGeometriesType;
typedef otb::GeometriesSet OutputGeometriesType;
otb::ogr::DataSource::Pointer input = otb::ogr::DataSource::New(
argv[1], otb::ogr::DataSource::Modes::read);
argv[1], otb::ogr::DataSource::Modes::Read);
InputGeometriesType::Pointer in_set = InputGeometriesType::New(input);
// Output Geometries Set
otb::ogr::DataSource::Pointer output = otb::ogr::DataSource::New(
argv[2], otb::ogr::DataSource::Modes::write);
argv[2], otb::ogr::DataSource::Modes::Overwrite);
OutputGeometriesType::Pointer out_set = OutputGeometriesType::New(output);
// Filter
......
......@@ -40,7 +40,7 @@ int otbGeometriesProjectionFilterFromMapToImage(int argc, char * argv[])
typedef otb::GeometriesSet InputGeometriesType;
typedef otb::GeometriesSet OutputGeometriesType;
otb::ogr::DataSource::Pointer input = otb::ogr::DataSource::New(
argv[1], otb::ogr::DataSource::Modes::read);
argv[1], otb::ogr::DataSource::Modes::Read);
InputGeometriesType::Pointer in_set = InputGeometriesType::New(input);
// Input Keywordlist (from image)
......@@ -52,7 +52,7 @@ int otbGeometriesProjectionFilterFromMapToImage(int argc, char * argv[])
// Output Geometries Set
otb::ogr::DataSource::Pointer output = otb::ogr::DataSource::New(
argv[3], otb::ogr::DataSource::Modes::write);
argv[3], otb::ogr::DataSource::Modes::Overwrite);
OutputGeometriesType::Pointer out_set = OutputGeometriesType::New(output);
// Filter
......
......@@ -40,7 +40,7 @@ int otbGeometriesProjectionFilterFromMapToSensor(int argc, char * argv[])
typedef otb::GeometriesSet InputGeometriesType;
typedef otb::GeometriesSet OutputGeometriesType;
otb::ogr::DataSource::Pointer input = otb::ogr::DataSource::New(
argv[1], otb::ogr::DataSource::Modes::read);
argv[1], otb::ogr::DataSource::Modes::Read);
InputGeometriesType::Pointer in_set = InputGeometriesType::New(input);
// Input Keywordlist (from image)
......@@ -52,7 +52,7 @@ int otbGeometriesProjectionFilterFromMapToSensor(int argc, char * argv[])
// Output Geometries Set
otb::ogr::DataSource::Pointer output = otb::ogr::DataSource::New(
argv[3], otb::ogr::DataSource::Modes::write);
argv[3], otb::ogr::DataSource::Modes::Overwrite);
OutputGeometriesType::Pointer out_set = OutputGeometriesType::New(output);
// Filter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment