Extract ROI from VectorData

From OTBWiki
Revision as of 15:57, 27 August 2013 by SebastienDinot (Talk | contribs) (Removed spam)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. Define a ROI (in physical coordiantes)
  2. Iterate through the VectorData structure
    1. Compute the bounding box of each line or polygon
    2. Compute the intersection between the bounding box and the ROI
    3. 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.