I encountered a problem in creating a ogrlinestring.
What am I doing wrong here?


for ( std::vector < std::pair < OGRPolygon *,OGRPolygon *  > >::iterator
it_box_pol=this->get_vbox().begin();
it_box_pol != std::prev(this->get_vbox().end()) ;it_box_pol++){

               for (std::map <  OGRLineString * , std::string >::iterator
it_yol_oto=this->getMapYol_oto().begin();
    it_yol_oto!= this->getMapYol_oto().end()  ;++it_yol_oto ){

    if ( it_yol_oto->first->Intersects(it_box_pol->first) ){
                                //OGRLineString * poLine= (OGRLineString *
)it_yol_oto->first->Intersection(it_box_pol->second);
    OGRLineString * poLine= (OGRLineString *
)it_yol_oto->first->Intersection(it_box_pol->second);
std::cout << "\n NumberOfPoints 0 **  " << poLine->getNumPoints <<
std::endl ;   // *** this says :  ***   error: invalid use of non-static
member function ‘virtual int OGRSimpleCurve::getNumPoints() const’
         std::cout << "\n NumberOfPoints 0 **  " << poLine->getNumPoints <<
std::endl ;
***

    vyol_oto_in_buffer.push_back( poLine );
                            }
    }
  }

regards

-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu


________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to