Difference between revisions of "Extract ROI from VectorData"

From OTBWiki
Jump to: navigation, search
m (Reverted edits by Caritabrown (Talk) to last revision by SarahGrape)
(Removed spam)
 
Line 4: Line 4:
 
## Compute the intersection between the bounding box and the ROI
 
## Compute the intersection between the bounding box and the ROI
 
## Keep only the objects for which there is a non null intersection
 
## Keep only the objects for which there is a non null intersection
## [http://www.online-casino-gaming.org best online casinos]
 
  
  

Latest revision as of 15:57, 27 August 2013

  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.