Beispiel #1
0
 static inline void apply(MultiPolygon const& mp, Box& mbr)
 {
     assign_inverse(mbr);
     for (typename boost::range_const_iterator<MultiPolygon>::type
                 it = mp.begin();
         it != mp.end();
         ++it)
     {
         envelope_range_additional(exterior_ring(*it), mbr);
     }
 }
Beispiel #2
0
 static inline void apply(MultiLinestring const& mp, Box& mbr)
 {
     assign_inverse(mbr);
     for (typename boost::range_iterator<MultiLinestring const>::type
                 it = mp.begin();
         it != mp.end();
         ++it)
     {
         envelope_range_additional(*it, mbr);
     }
 }
Beispiel #3
0
 /// Calculate envelope of range using a strategy
 static inline void apply(Range const& range, Box& mbr)
 {
     assign_inverse(mbr);
     envelope_range_additional(range, mbr);
 }