本文整理汇总了C++中OpenUnderlyingLayer函数的典型用法代码示例。如果您正苦于以下问题:C++ OpenUnderlyingLayer函数的具体用法?C++ OpenUnderlyingLayer怎么用?C++ OpenUnderlyingLayer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OpenUnderlyingLayer函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
OGRSpatialReference *OGRProxiedLayer::GetSpatialRef()
{
if( poSRS != NULL )
return poSRS;
if( poUnderlyingLayer == NULL && !OpenUnderlyingLayer() ) return NULL;
OGRSpatialReference* poRet = poUnderlyingLayer->GetSpatialRef();
if( poRet != NULL )
{
poSRS = poRet;
poSRS->Reference();
}
return poRet;
}
示例2: OGRFeatureDefn
OGRFeatureDefn *OGRProxiedLayer::GetLayerDefn()
{
if( poFeatureDefn != NULL )
return poFeatureDefn;
if( poUnderlyingLayer == NULL && !OpenUnderlyingLayer() )
{
poFeatureDefn = new OGRFeatureDefn("");
}
else
{
poFeatureDefn = poUnderlyingLayer->GetLayerDefn();
}
poFeatureDefn->Reference();
return poFeatureDefn;
}
示例3: GetGeomType
OGRwkbGeometryType OGRProxiedLayer::GetGeomType()
{
if( poUnderlyingLayer == NULL && !OpenUnderlyingLayer() ) return wkbUnknown;
return poUnderlyingLayer->GetGeomType();
}
示例4: OpenUnderlyingLayer
OGRLayer* OGRProxiedLayer::GetUnderlyingLayer()
{
if( poUnderlyingLayer == NULL )
OpenUnderlyingLayer();
return poUnderlyingLayer;
}