[gdal-dev] problem in creating a ogrlinestring.

Ahmet Temiz ahmettemiz88 at gmail.com
Fri Nov 8 00:01:36 PST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20191108/a77a0e9f/attachment.html>


More information about the gdal-dev mailing list