亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ogrfeature.cpp

?? mitab,讀取MapInfo的地圖文件
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
/************************************************************************/
/*                       OGR_F_GetFieldAsString()                       */
/************************************************************************/

/**
 * Fetch field value as a string.
 *
 * OFTReal and OFTInteger fields will be translated to string using
 * sprintf(), but not necessarily using the established formatting rules.
 * Other field types, or errors will result in a return value of zero.
 *
 * This function is the same as the C++ method OGRFeature::GetFieldAsString().
 *
 * @param hFeat handle to the feature that owned the field.
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 *
 * @return the field value.  This string is internal, and should not be
 * modified, or freed.  It's lifetime may be very brief. 
 */

const char *OGR_F_GetFieldAsString( OGRFeatureH hFeat, int iField )

{
    return ((OGRFeature *)hFeat)->GetFieldAsString(iField);
}

/************************************************************************/
/*                       GetFieldAsIntegerList()                        */
/************************************************************************/

/**
 * Fetch field value as a list of integers.
 *
 * Currently this method only works for OFTIntegerList fields.
 *
 * This method is the same as the C function OGR_F_GetFieldAsIntegerList().
 *
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 * @param pnCount an integer to put the list count (number of integers) into.
 *
 * @return the field value.  This list is internal, and should not be
 * modified, or freed.  It's lifetime may be very brief.  If *pnCount is zero
 * on return the returned pointer may be NULL or non-NULL.
 */

const int *OGRFeature::GetFieldAsIntegerList( int iField, int *pnCount )

{
    OGRFieldDefn        *poFDefn = poDefn->GetFieldDefn( iField );

    CPLAssert( poFDefn != NULL || iField == -1 );
    if( poFDefn == NULL )
        return NULL;
    
    if( !IsFieldSet(iField) )
        return NULL;
    
    if( poFDefn->GetType() == OFTIntegerList )
    {
        if( pnCount != NULL )
            *pnCount = pauFields[iField].IntegerList.nCount;

        return pauFields[iField].IntegerList.paList;
    }
    else
    {
        if( pnCount != NULL )
            *pnCount = 0;
        
        return NULL;
    }
}

/************************************************************************/
/*                    OGR_F_GetFieldAsIntegerList()                     */
/************************************************************************/

/**
 * Fetch field value as a list of integers.
 *
 * Currently this function only works for OFTIntegerList fields.
 *
 * This function is the same as the C++ method 
 * OGRFeature::GetFieldAsIntegerList().
 *
 * @param hFeat handle to the feature that owned the field.
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 * @param pnCount an integer to put the list count (number of integers) into.
 *
 * @return the field value.  This list is internal, and should not be
 * modified, or freed.  It's lifetime may be very brief.  If *pnCount is zero
 * on return the returned pointer may be NULL or non-NULL.
 */

const int *OGR_F_GetFieldAsIntegerList( OGRFeatureH hFeat, int iField, 
                                  int *pnCount )

{
    return ((OGRFeature *)hFeat)->GetFieldAsIntegerList(iField, pnCount);
}

/************************************************************************/
/*                        GetFieldAsDoubleList()                        */
/************************************************************************/

/**
 * Fetch field value as a list of doubles.
 *
 * Currently this method only works for OFTRealList fields.
 *
 * This method is the same as the C function OGR_F_GetFieldAsDoubleList().
 *
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 * @param pnCount an integer to put the list count (number of doubles) into.
 *
 * @return the field value.  This list is internal, and should not be
 * modified, or freed.  It's lifetime may be very brief.  If *pnCount is zero
 * on return the returned pointer may be NULL or non-NULL.
 */

const double *OGRFeature::GetFieldAsDoubleList( int iField, int *pnCount )

{
    OGRFieldDefn        *poFDefn = poDefn->GetFieldDefn( iField );

    CPLAssert( poFDefn != NULL || iField == -1 );
    if( poFDefn == NULL )
        return NULL;
    
    if( !IsFieldSet(iField) )
        return NULL;
    
    if( poFDefn->GetType() == OFTRealList )
    {
        if( pnCount != NULL )
            *pnCount = pauFields[iField].RealList.nCount;

        return pauFields[iField].RealList.paList;
    }
    else
    {
        if( pnCount != NULL )
            *pnCount = 0;
        
        return NULL;
    }
}

/************************************************************************/
/*                     OGR_F_GetFieldAsDoubleList()                     */
/************************************************************************/

/**
 * Fetch field value as a list of doubles.
 *
 * Currently this function only works for OFTRealList fields.
 *
 * This function is the same as the C++ method 
 * OGRFeature::GetFieldAsDoubleList().
 *
 * @param hFeat handle to the feature that owned the field.
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 * @param pnCount an integer to put the list count (number of doubles) into.
 *
 * @return the field value.  This list is internal, and should not be
 * modified, or freed.  It's lifetime may be very brief.  If *pnCount is zero
 * on return the returned pointer may be NULL or non-NULL.
 */

const double *OGR_F_GetFieldAsDoubleList( OGRFeatureH hFeat, int iField, 
                                          int *pnCount )

{
    return ((OGRFeature *)hFeat)->GetFieldAsDoubleList(iField, pnCount);
}

/************************************************************************/
/*                        GetFieldAsStringList()                        */
/************************************************************************/

/**
 * Fetch field value as a list of strings.
 *
 * Currently this method only works for OFTStringList fields.
 *
 * This method is the same as the C function OGR_F_GetFieldAsStringList().
 *
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 *
 * @return the field value.  This list is internal, and should not be
 * modified, or freed.  It's lifetime may be very brief.
 */

char **OGRFeature::GetFieldAsStringList( int iField ) const

{
    OGRFieldDefn        *poFDefn = poDefn->GetFieldDefn( iField );

    CPLAssert( poFDefn != NULL || iField == -1 );
    if( poFDefn == NULL )
        return NULL;
    
    if( !IsFieldSet(iField) )
        return NULL;
    
    if( poFDefn->GetType() == OFTStringList )
    {
        return pauFields[iField].StringList.paList;
    }
    else
    {
        return NULL;
    }
}

/************************************************************************/
/*                     OGR_F_GetFieldAsStringList()                     */
/************************************************************************/

/**
 * Fetch field value as a list of strings.
 *
 * Currently this method only works for OFTStringList fields.
 *
 * This function is the same as the C++ method 
 * OGRFeature::GetFieldAsStringList().
 *
 * @param hFeat handle to the feature that owned the field.
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 *
 * @return the field value.  This list is internal, and should not be
 * modified, or freed.  It's lifetime may be very brief.
 */

char **OGR_F_GetFieldAsStringList( OGRFeatureH hFeat, int iField )

{
    return ((OGRFeature *)hFeat)->GetFieldAsStringList(iField);
}

/************************************************************************/
/*                          GetFieldAsBinary()                          */
/************************************************************************/

/**
 * Fetch field value as binary data.
 *
 * Currently this method only works for OFTBinary fields.
 *
 * This method is the same as the C function OGR_F_GetFieldAsBinary().
 *
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 * @param pnBytes location to put the number of bytes returned.
 *
 * @return the field value.  This data is internal, and should not be
 * modified, or freed.  It's lifetime may be very brief.
 */

GByte *OGRFeature::GetFieldAsBinary( int iField, int *pnBytes )

{
    OGRFieldDefn        *poFDefn = poDefn->GetFieldDefn( iField );

    *pnBytes = 0;

    CPLAssert( poFDefn != NULL || iField == -1 );
    if( poFDefn == NULL )
        return NULL;
    
    if( !IsFieldSet(iField) )
        return NULL;
    
    if( poFDefn->GetType() == OFTBinary )
    {
        *pnBytes = pauFields[iField].Binary.nCount;
        return pauFields[iField].Binary.paData;
    }
    else
    {
        return NULL;
    }
}

/************************************************************************/
/*                       OGR_F_GetFieldAsBinary()                       */
/************************************************************************/

/**
 * Fetch field value as binary.
 *
 * Currently this method only works for OFTBinary fields.
 *
 * This function is the same as the C++ method 
 * OGRFeature::GetFieldAsBinary().
 *
 * @param hFeat handle to the feature that owned the field.
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 * @param pnBytes location to place count of bytes returned.
 *
 * @return the field value.  This list is internal, and should not be
 * modified, or freed.  It's lifetime may be very brief.
 */

GByte *OGR_F_GetFieldAsBinary( OGRFeatureH hFeat, int iField, int *pnBytes )

{
    return ((OGRFeature *)hFeat)->GetFieldAsBinary(iField,pnBytes);
}

/************************************************************************/
/*                         GetFieldAsDateTime()                         */
/************************************************************************/

/**
 * Fetch field value as date and time.
 *
 * Currently this method only works for OFTDate, OFTTime and OFTDateTime fields.
 *
 * This method is the same as the C function OGR_F_GetFieldAsDateTime().
 *
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 * @param int pnYear (including century)
 * @param int pnMonth (1-12)
 * @param int pnDay (1-31)
 * @param int pnHour (0-23)
 * @param int pnMinute (0-59)
 * @param int pnSecond (0-59)
 * @param int pnTZFlag (0=unknown, 1=localtime, 100=GMT, see data model for details)
 *
 * @return TRUE on success or FALSE on failure.
 */

int OGRFeature::GetFieldAsDateTime( int iField,
                                    int *pnYear, int *pnMonth, int *pnDay,
                                    int *pnHour, int *pnMinute, int *pnSecond,
                                    int *pnTZFlag )

{
    OGRFieldDefn        *poFDefn = poDefn->GetFieldDefn( iField );

    CPLAssert( poFDefn != NULL || iField == -1 );
    if( poFDefn == NULL )
        return FALSE;
    
    if( !IsFieldSet(iField) )
        return FALSE;
    
    if( poFDefn->GetType() == OFTDate
        || poFDefn->GetType() == OFTTime
        || poFDefn->GetType() == OFTDateTime )

    {
        if( pnYear )
            *pnYear = pauFields[iField].Date.Year;
        if( pnMonth )
            *pnMonth = pauFields[iField].Date.Month;
        if( pnDay )
            *pnDay = pauFields[iField].Date.Day;
        if( pnHour )
            *pnHour = pauFields[iField].Date.Hour;
        if( pnMinute )
            *pnMinute = pauFields[iField].Date.Minute;
        if( pnSecond )
            *pnSecond = pauFields[iField].Date.Second;
        if( pnTZFlag )
            *pnTZFlag = pauFields[iField].Date.TZFlag;
        
        return TRUE;
    }
    else
    {
        return FALSE;
    }
}

/************************************************************************/
/*                      OGR_F_GetFieldAsDateTime()                      */
/************************************************************************/

/**
 * Fetch field value as date and time.
 *
 * Currently this method only works for OFTDate, OFTTime and OFTDateTime fields.
 *
 * This function is the same as the C++ method 
 * OGRFeature::GetFieldAsDateTime().
 *
 * @param hFeat handle to the feature that owned the field.
 * @param iField the field to fetch, from 0 to GetFieldCount()-1.
 * @param int pnYear (including century)
 * @param int pnMonth (1-12)
 * @param int pnDay (1-31)
 * @param int pnHour (0-23)
 * @param int pnMinute (0-59)
 * @param int pnSecond (0-59)
 * @param int pnTZFlag (0=unknown, 1=localtime, 100=GMT, see data model for details)
 *
 * @return TRUE on success or FALSE on failure.
 */

int OGR_F_GetFieldAsDateTime( OGRFeatureH hFeat, int iField,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久影院电视剧免费观看| 欧美精品乱码久久久久久| 亚洲四区在线观看| 91精品欧美一区二区三区综合在| 国精产品一区一区三区mba桃花 | 国产69精品久久久久毛片| 伊人开心综合网| 国产亚洲欧美激情| 91 com成人网| 91热门视频在线观看| 国产一区在线观看视频| 亚洲国产视频直播| 中文久久乱码一区二区| 日韩精品一区二区三区在线播放| 91丨九色丨蝌蚪富婆spa| 国产在线国偷精品产拍免费yy| 亚洲一二三四在线观看| 国产欧美日韩久久| 日韩三级在线免费观看| 欧美又粗又大又爽| 97成人超碰视| 成人教育av在线| 国产精品一区二区x88av| 奇米影视在线99精品| 亚洲午夜精品一区二区三区他趣| 综合av第一页| 国产精品麻豆欧美日韩ww| 亚洲精品在线观看网站| 日韩一级视频免费观看在线| 欧美区视频在线观看| 在线观看欧美日本| 色综合咪咪久久| 91视频在线看| 91美女片黄在线观看91美女| 欧美mv日韩mv亚洲| 欧美一区二区三区四区视频| 欧美精品久久一区二区三区| 88在线观看91蜜桃国自产| 欧美在线一区二区| 欧美亚洲图片小说| 欧美三片在线视频观看| 欧美性生活影院| 欧美丝袜自拍制服另类| 欧美年轻男男videosbes| 欧美三级电影在线观看| 欧美体内she精视频| 欧美色老头old∨ideo| 3d动漫精品啪啪一区二区竹菊| 欧美一级一区二区| 日韩限制级电影在线观看| 日韩欧美一级二级三级久久久| 欧美一区二区三区系列电影| 欧美sm美女调教| 国产日韩欧美高清在线| 国产精品国产精品国产专区不片| 国产精品久久99| 亚洲精品va在线观看| 香蕉久久一区二区不卡无毒影院 | 久久亚洲一区二区三区四区| 久久伊99综合婷婷久久伊| 国产亚洲精品7777| 亚洲欧美日本在线| 日韩和欧美的一区| 狠狠狠色丁香婷婷综合激情| 成人国产一区二区三区精品| 色噜噜狠狠成人网p站| 7777精品伊人久久久大香线蕉经典版下载| 7777精品伊人久久久大香线蕉的 | 国产99久久久久| 国产一区二区在线观看免费| 国产福利不卡视频| 国产成人啪免费观看软件| 成人丝袜视频网| 91麻豆免费看| 欧美中文字幕一区| 91精品国产综合久久福利| 欧美一区二区三区四区在线观看 | 国产精品美女久久久久久久| 国产欧美精品一区二区三区四区| 国产三级精品视频| 亚洲综合色成人| 美女视频网站久久| 国产一二精品视频| 91在线观看下载| 日韩视频国产视频| 国产精品美女久久久久久| 亚洲福利电影网| 国产九九视频一区二区三区| 日本韩国欧美一区二区三区| 91精品国产综合久久香蕉麻豆| 国产亚洲一区二区在线观看| 粉嫩蜜臀av国产精品网站| 欧美日韩美女一区二区| 精品国产精品网麻豆系列| 日韩欧美国产麻豆| 亚洲理论在线观看| 加勒比av一区二区| 欧美视频精品在线观看| 亚洲精品在线电影| 亚洲午夜免费视频| 国产精品亚洲а∨天堂免在线| 欧美日韩色一区| 久久久www成人免费毛片麻豆| 午夜久久久久久| 成人精品一区二区三区中文字幕| 99久久99久久久精品齐齐| 91麻豆精品国产91久久久使用方法 | 青娱乐精品视频在线| 色哟哟国产精品免费观看| 欧美大片在线观看| 五月婷婷激情综合| 成人网男人的天堂| 久久九九99视频| 一区二区三区免费网站| 99久久精品国产精品久久| 欧美专区日韩专区| 亚洲另类色综合网站| 蜜臀久久久99精品久久久久久| 色哟哟一区二区| 国产三级三级三级精品8ⅰ区| 午夜电影久久久| 91片在线免费观看| 久久久精品日韩欧美| 美女精品自拍一二三四| 欧美专区日韩专区| 国产精品网站导航| 精彩视频一区二区三区| 欧美videofree性高清杂交| 亚洲主播在线观看| 欧洲另类一二三四区| 欧美激情在线看| 国产**成人网毛片九色| 91精品国产免费| 日产国产高清一区二区三区| av成人老司机| 一区视频在线播放| 成人一级片网址| 国产午夜亚洲精品午夜鲁丝片| 国精品**一区二区三区在线蜜桃| 欧美一区二区三区啪啪| 日韩精品91亚洲二区在线观看| 色诱亚洲精品久久久久久| 亚洲精品中文字幕乱码三区| 不卡电影免费在线播放一区| 国产精品的网站| 欧美va亚洲va香蕉在线| 精品一区二区三区影院在线午夜| 欧美乱熟臀69xxxxxx| 免费三级欧美电影| 日韩三级高清在线| 国产尤物一区二区在线| 日韩欧美一级在线播放| 国产精品一区二区x88av| 久久久精品综合| 99久久国产综合色|国产精品| 欧美韩国日本综合| 91在线观看地址| 一区二区激情小说| 欧美一区二视频| 男男视频亚洲欧美| 久久精品一区二区三区四区| 国产91精品欧美| 亚洲一级电影视频| 91麻豆精品国产| 国产成人免费在线观看不卡| 国产精品丝袜久久久久久app| 在线视频欧美区| 亚洲成人久久影院| 久久综合久久综合亚洲| 成人一区二区视频| 亚洲综合色丁香婷婷六月图片| 欧美一区2区视频在线观看| 麻豆成人综合网| 国产精品久久久久久久久图文区| 91丨porny丨蝌蚪视频| 婷婷开心久久网| 欧美电影精品一区二区| 91热门视频在线观看| 亚洲第一二三四区| 久久久综合激的五月天| 不卡一区在线观看| 日韩av一二三| 国产香蕉久久精品综合网| 欧美性猛交xxxx乱大交退制版| 视频一区中文字幕| 国产欧美一区二区三区在线老狼| 99综合影院在线| 日韩电影在线一区| 亚洲国产精品99久久久久久久久| 免费高清不卡av| 精品成人一区二区三区四区| 东方欧美亚洲色图在线| 亚洲高清在线精品| 欧美高清在线一区二区| 色呦呦日韩精品| 丁香激情综合五月| 麻豆成人久久精品二区三区红| 国产精品青草综合久久久久99| 国产成人高清视频| 最新国产精品久久精品|