feature->SetField("id",static_cast<int>(area.id())); feature->SetField("type", building);std::stringtype ="";if(area.from_way()) { type +="w"; }else{ type +="r"; } feature->SetField("type", type.c_str());if(m_layer_polygon->CreateFeature(feature) != OGRERR_NONE) {...