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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? tigerfilebase.cpp

?? 支持各種柵格圖像和矢量圖像讀取的庫(kù)
?? CPP
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/****************************************************************************** * $Id: tigerfilebase.cpp 10646 2007-01-18 02:38:10Z warmerdam $ * * Project:  TIGER/Line Translator * Purpose:  Implements TigerBaseFile class, providing common services to all *           the tiger file readers. * Author:   Frank Warmerdam, warmerdam@pobox.com * ****************************************************************************** * Copyright (c) 1999, Frank Warmerdam * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. ****************************************************************************/#include "ogr_tiger.h"#include "cpl_conv.h"#include "cpl_error.h"#include "cpl_string.h"CPL_CVSID("$Id: tigerfilebase.cpp 10646 2007-01-18 02:38:10Z warmerdam $");/************************************************************************//*                           TigerFileBase()                            *//************************************************************************/TigerFileBase::TigerFileBase(){    pszShortModule = NULL;    pszModule = NULL;    fpPrimary = NULL;    poFeatureDefn = NULL;    nFeatures = 0;    nVersionCode = 0;    nVersion = TIGER_Unknown;}/************************************************************************//*                           ~TigerFileBase()                           *//************************************************************************/TigerFileBase::~TigerFileBase(){    CPLFree( pszModule );    CPLFree( pszShortModule );    if( poFeatureDefn != NULL )    {        poFeatureDefn->Release();        poFeatureDefn = NULL;    }    if( fpPrimary != NULL )    {        VSIFClose( fpPrimary );        fpPrimary = NULL;    }}/************************************************************************//*                              OpenFile()                              *//************************************************************************/int TigerFileBase::OpenFile( const char * pszModuleToOpen,                             const char *pszExtension ){    char        *pszFilename;    CPLFree( pszModule );    pszModule = NULL;    CPLFree( pszShortModule );    pszShortModule = NULL;        if( fpPrimary != NULL )    {        VSIFClose( fpPrimary );        fpPrimary = NULL;    }    if( pszModuleToOpen == NULL )        return TRUE;    pszFilename = poDS->BuildFilename( pszModuleToOpen, pszExtension );    fpPrimary = VSIFOpen( pszFilename, "rb" );    CPLFree( pszFilename );    if( fpPrimary != NULL )    {        pszModule = CPLStrdup(pszModuleToOpen);        pszShortModule = CPLStrdup(pszModuleToOpen);        for( int i = 0; pszShortModule[i] != '\0'; i++ )        {            if( pszShortModule[i] == '.' )                pszShortModule[i] = '\0';        }        SetupVersion();        return TRUE;    }    else        return FALSE;}/************************************************************************//*                            SetupVersion()                            *//************************************************************************/void TigerFileBase::SetupVersion(){    char        aszRecordHead[6];    VSIFSeek( fpPrimary, 0, SEEK_SET );    VSIFRead( aszRecordHead, 1, 5, fpPrimary );    aszRecordHead[5] = '\0';    nVersionCode = atoi(aszRecordHead+1);    VSIFSeek( fpPrimary, 0, SEEK_SET );    nVersion = TigerClassifyVersion( nVersionCode );}/************************************************************************//*                       EstablishRecordLength()                        *//************************************************************************/int TigerFileBase::EstablishRecordLength( FILE * fp ){    char        chCurrent;    int         nRecLen = 0;        if( fp == NULL || VSIFSeek( fp, 0, SEEK_SET ) != 0 )        return -1;/* -------------------------------------------------------------------- *//*      Read through to the end of line.                                *//* -------------------------------------------------------------------- */    chCurrent = '\0';    while( VSIFRead( &chCurrent, 1, 1, fp ) == 1           && chCurrent != 10           && chCurrent != 13 )    {        nRecLen++;    }/* -------------------------------------------------------------------- *//*      Is the file zero length?                                        *//* -------------------------------------------------------------------- */    if( nRecLen == 0 )    {        return -1;    }        nRecLen++; /* for the 10 or 13 we encountered *//* -------------------------------------------------------------------- *//*      Read through line terminator characters.  We are trying to      *//*      handle cases of CR, CR/LF and LF/CR gracefully.                 *//* -------------------------------------------------------------------- */    while( VSIFRead( &chCurrent, 1, 1, fp ) == 1           && (chCurrent == 10 || chCurrent == 13 ) )    {        nRecLen++;    }    VSIFSeek( fp, 0, SEEK_SET );    return nRecLen;}/************************************************************************//*                       EstablishFeatureCount()                        *//************************************************************************/void TigerFileBase::EstablishFeatureCount(){    if( fpPrimary == NULL )        return;    nRecordLength = EstablishRecordLength( fpPrimary );    if( nRecordLength == -1 )    {        nRecordLength = 1;        nFeatures = 0;        return;    }/* -------------------------------------------------------------------- *//*      Now we think we know the fixed record length for the file       *//*      (including line terminators).  Get the total file size, and     *//*      divide by this length to get the presumed number of records.    *//* -------------------------------------------------------------------- */    long        nFileSize;        VSIFSeek( fpPrimary, 0, SEEK_END );    nFileSize = VSIFTell( fpPrimary );    if( (nFileSize % nRecordLength) != 0 )    {        CPLError( CE_Warning, CPLE_FileIO,                  "TigerFileBase::EstablishFeatureCount(): "                  "File length %d doesn't divide by record length %d.\n",                  nFileSize, nRecordLength );    }    nFeatures = nFileSize / nRecordLength;}/************************************************************************//*                              GetField()                              *//************************************************************************/const char *TigerFileBase::GetField( const char * pachRawDataRecord,                                     int nStartChar, int nEndChar ){    static char         aszField[128];    int                 nLength = nEndChar - nStartChar + 1;        CPLAssert( nEndChar - nStartChar + 2 < (int) sizeof(aszField) );    strncpy( aszField, pachRawDataRecord + nStartChar - 1, nLength );    aszField[nLength] = '\0';    while( nLength > 0 && aszField[nLength-1] == ' ' )        aszField[--nLength] = '\0';    return aszField;}/************************************************************************//*                              SetField()                              *//*                                                                      *//*      Set a field on an OGRFeature from a tiger record, or leave      *//*      NULL if the value isn't found.                                  *//************************************************************************/void TigerFileBase::SetField( OGRFeature *poFeature, const char *pszField,                              const char *pachRecord, int nStart, int nEnd )

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区不卡视频| 欧美一区二区三区精品| 免费人成黄页网站在线一区二区| 国产午夜亚洲精品午夜鲁丝片| 精品久久国产老人久久综合| 成人免费毛片嘿嘿连载视频| 午夜精品爽啪视频| 中文字幕中文在线不卡住| 欧美一卡2卡3卡4卡| 91麻豆福利精品推荐| 精品一区二区国语对白| 天堂在线亚洲视频| 亚洲欧洲综合另类| 国产精品色一区二区三区| 日韩女优制服丝袜电影| 欧美三级电影一区| 色综合久久66| 成人免费观看男女羞羞视频| 狠狠色狠狠色合久久伊人| 日韩电影在线免费看| 亚洲一区二区三区视频在线播放 | 亚洲天堂福利av| 精品国产一区二区亚洲人成毛片| 欧美日韩一卡二卡三卡| 欧亚洲嫩模精品一区三区| 91丨porny丨户外露出| 国产成人av福利| 国产综合成人久久大片91| 久久国产尿小便嘘嘘| 亚洲福中文字幕伊人影院| ...中文天堂在线一区| 中文字幕中文字幕一区| 亚洲欧洲日本在线| 亚洲视频免费观看| 中文字幕佐山爱一区二区免费| 国产色婷婷亚洲99精品小说| 久久久久久久综合狠狠综合| 久久久久久久久久久久久夜| 偷偷要91色婷婷| 一区二区三区四区乱视频| 中文字幕一区二区日韩精品绯色| 国产精品五月天| 国产精品电影一区二区三区| 国产精品欧美一级免费| 欧美精彩视频一区二区三区| 欧美经典一区二区三区| 国产农村妇女精品| 国产精品无码永久免费888| 国产精品久久久久久久久免费丝袜 | 国产成人啪免费观看软件| 国产乱人伦偷精品视频免下载| 久久超碰97中文字幕| 国产原创一区二区三区| 成人国产一区二区三区精品| 色哟哟在线观看一区二区三区| 在线观看日韩国产| 欧美日韩国产综合草草| 日韩一区二区三区在线观看| 久久人人爽人人爽| 亚洲欧洲成人精品av97| 亚洲综合丁香婷婷六月香| 日韩福利电影在线| 国产精品夜夜嗨| 99久久久精品| 欧美日韩国产美女| 精品国产乱码久久久久久闺蜜| 久久一区二区三区国产精品| 日韩毛片视频在线看| 三级在线观看一区二区| 黑人精品欧美一区二区蜜桃| 成人av网在线| 欧美日韩mp4| 久久亚洲捆绑美女| 亚洲精品第1页| 美女网站一区二区| 91在线视频免费91| 在线不卡a资源高清| 久久蜜桃香蕉精品一区二区三区| 自拍偷拍国产精品| 久久国产精品露脸对白| 91同城在线观看| 日韩女同互慰一区二区| 中文在线免费一区三区高中清不卡| 亚洲一区二区三区在线看| 狠狠色丁香久久婷婷综合_中| 99re在线视频这里只有精品| 91精品在线一区二区| 中文字幕一区二区视频| 久久国产精品99精品国产| 色噜噜狠狠色综合欧洲selulu| 91精品福利在线一区二区三区| 欧美激情一区二区三区全黄| 青青草国产精品亚洲专区无| 91色婷婷久久久久合中文| 26uuu久久天堂性欧美| 亚洲国产一区视频| 成人污污视频在线观看| 日韩欧美色电影| 亚洲国产成人av网| 成人av在线资源| 久久久久高清精品| 青青草97国产精品免费观看无弹窗版| 99久久精品国产麻豆演员表| 日韩一级高清毛片| 亚洲成av人片| 一本一本大道香蕉久在线精品| 久久精品日韩一区二区三区| 日本成人在线网站| 欧美亚洲另类激情小说| 中文字幕亚洲在| 国产69精品久久777的优势| 日韩精品一区二区三区中文精品| 亚洲一卡二卡三卡四卡无卡久久| 成人免费视频一区| 久久久噜噜噜久久人人看 | 欧美成人精精品一区二区频| 午夜久久福利影院| 日本高清无吗v一区| 亚洲欧洲www| 不卡的av电影| 国产精品少妇自拍| 国产乱人伦精品一区二区在线观看| 日韩一区二区三区免费看 | 亚洲午夜在线电影| 91久久精品一区二区三| 亚洲欧美日韩在线不卡| 99精品视频在线免费观看| 国产精品美女久久久久aⅴ国产馆| 韩国成人精品a∨在线观看| 精品福利一二区| 国产一区二区三区四区五区入口| 日韩免费观看2025年上映的电影 | 丝袜亚洲另类欧美| 欧美性xxxxxxxx| 亚洲一区二区三区中文字幕| 欧日韩精品视频| 亚洲超丰满肉感bbw| 欧美精品少妇一区二区三区| 婷婷六月综合网| 777久久久精品| 日本中文字幕一区二区有限公司| 91精品午夜视频| 青青草国产精品97视觉盛宴| 精品久久久久99| 国产电影一区二区三区| 国产精品污www在线观看| 91视频在线观看| 亚洲综合偷拍欧美一区色| 欧美三级电影网| 美女视频黄 久久| 2023国产精品| 99在线热播精品免费| 亚洲精品写真福利| 欧美日韩成人综合天天影院| 久久精品国产999大香线蕉| 26uuu另类欧美| av一区二区三区黑人| 一区二区成人在线视频| 56国语精品自产拍在线观看| 精品一区二区三区香蕉蜜桃 | 国产精品免费视频观看| 一本久久精品一区二区| 午夜免费久久看| 久久夜色精品一区| 99国产精品久久久久| 亚洲国产wwwccc36天堂| 精品人伦一区二区色婷婷| 国产91精品入口| 一区二区三区鲁丝不卡| 精品日韩一区二区三区免费视频| 国产福利精品一区| 伊人性伊人情综合网| 日韩亚洲欧美综合| 粉嫩在线一区二区三区视频| 亚洲国产一区二区视频| 久久久久久久久久久久电影| 色综合一区二区| 久久精工是国产品牌吗| 亚洲天堂av老司机| 欧美一区二区三区啪啪| 99视频在线精品| 免费欧美日韩国产三级电影| 国产精品女同一区二区三区| 欧美日韩另类一区| 大桥未久av一区二区三区中文| 亚洲一二三区不卡| 国产欧美日韩另类一区| 欧美日韩国产精选| av网站免费线看精品| 麻豆视频一区二区| 一区二区三区四区在线| 欧美国产激情二区三区 | 欧美日本一区二区在线观看| 成人av在线网站| 久久超级碰视频| 亚洲一区二区三区中文字幕| 欧美经典一区二区三区| 日韩精品中文字幕在线一区| 在线看国产日韩| 99久久婷婷国产综合精品电影 |