OGRPoint POINT;
POINT.setX(10);
POINT.setY(10);
OGRStyleTable oStyleTable;
OGRStyleMgr *poStyleMgr = new OGRStyleMgr(&oStyleTable);
poStyleMgr->SetFeatureStyleString(poFeature,"nihao",TRUE);
//OGRStyleLabel text;
//text.SetTextString("text.dxf");
poFeature->SetStyleString("LABEL");
//poFeature->SetGeometry( &Ring);
poFeature->SetGeometry( &POINT);
if( dxfLayer->CreateFeature( poFeature ) != OGRERR_NONE )
{
printf( "Failed to create feature in dxf.\n" );
exit( 1 );
}
想绘制text,但是现在显示不出来,不知道怎么把点和label关联起来