<div dir="ltr"><div class="gmail_default" style="font-size:small"><br clear="all"></div><div><div class="gmail_default" style="font-size:small">I encountered a problem in creating a ogrlinestring.</div><div class="gmail_default" style="font-size:small">What am I doing wrong here?</div><br></div><div><br></div><div><div class="gmail_default" style="font-size:small">for ( std::vector < std::pair < OGRPolygon *,OGRPolygon *  > >::iterator it_box_pol=this->get_vbox().begin(); </div>                                  it_box_pol != std::prev(this->get_vbox().end()) ;it_box_pol++){<br><br>                  for (std::map <  OGRLineString * , std::string >::iterator it_yol_oto=this->getMapYol_oto().begin();<br>                                                              it_yol_oto!= this->getMapYol_oto().end()  ;++it_yol_oto ){<br><br>                                            if ( it_yol_oto->first->Intersects(it_box_pol->first) ){<br>                                //OGRLineString * poLine= (OGRLineString * )it_yol_oto->first->Intersection(it_box_pol->second);<br>                                                OGRLineString * poLine= (OGRLineString * )it_yol_oto->first->Intersection(it_box_pol->second);<br>                                                               std::cout << "\n NumberOfPoints 0 **  " << poLine->getNumPoints << std::endl ;  <span class="gmail_default" style="font-size:small"> // *** this says :  ***   </span>error: invalid use of non-static member function ‘virtual int OGRSimpleCurve::getNumPoints() const’</div>         std::cout << "\n NumberOfPoints 0 **  " << poLine->getNumPoints << std::endl ;<br><div><span class="gmail_default" style="font-size:small">***</span><br><br>                                                     vyol_oto_in_buffer.push_back( poLine );<br>                            }<br>                        }                                        <br>    }       <br><div class="gmail_default" style="font-size:small"></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">regards</div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Ahmet Temiz<br>Jeoloji Müh.<br>Afet ve Acil Durum Yönetimi Başkanlığı<br>Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu<br><br><br>________________________<br><br>Ahmet Temiz<br>Geological Eng.<br>Information Systems - GIS Group<br>Disaster and Emergency Management<br>of Presidency</div></div></div></div></div></div>