Extract ROI from VectorData
From OTBWiki
- Define a ROI (in physical coordiantes)
- Iterate through the VectorData structure
- Compute the bounding box of each line or polygon
- Compute the intersection between the bounding box and the ROI
- Keep only the objects for which there is a non null intersection
Final Solution
Add a class otb::CartoRegion<TType> wich have :
- A Size (a vector in TType precions) - An Origin - ProjectionRef : The projection where are defined those parameters (std::string)
The VectorData Extract ROI :
- SetRegion(otb::CartoRegion)
The region is projected if the vectorData coordinate system is different than ProjectionRef . The output VectorData is not projected for the moment.