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

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

?? qgswmsprovider.cpp

?? 一個非常好的GIS開源新版本
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
            // though this was deprecated in WMS 1.1.1            QStringList srsList = e1.text().split(QRegExp("\\s+"));            QStringList::const_iterator i;            for (i = srsList.constBegin(); i != srsList.constEnd(); ++i)            {              layerProperty.crs.push_back(*i);            }          }          else if (e1.tagName() == "LatLonBoundingBox")        // legacy from earlier versions of WMS          {//            QgsDebugMsg("      LLBB is: '"  + e1.attribute("minx")  + "'.");//            QgsDebugMsg("      LLBB is: '"  + e1.attribute("miny")  + "'.");//            QgsDebugMsg("      LLBB is: '"  + e1.attribute("maxx")  + "'.");//            QgsDebugMsg("      LLBB is: '"  + e1.attribute("maxy")  + "'.");            layerProperty.ex_GeographicBoundingBox = QgsRect(                                                 e1.attribute("minx").toDouble(),                                                e1.attribute("miny").toDouble(),                                                e1.attribute("maxx").toDouble(),                                                e1.attribute("maxy").toDouble()                                              );          }	  else if(e1.tagName() == "EX_GeographicBoundingBox") //for WMS 1.3	    {	      QDomElement wBoundLongitudeElem = n1.namedItem("westBoundLongitude").toElement();	      QDomElement eBoundLongitudeElem = n1.namedItem("eastBoundLongitude").toElement();	      QDomElement sBoundLatitudeElem = n1.namedItem("southBoundLatitude").toElement();	      QDomElement nBoundLatitudeElem = n1.namedItem("northBoundLatitude").toElement();	      double wBLong, eBLong, sBLat, nBLat;	      bool wBOk, eBOk, sBOk, nBOk;	      wBLong = wBoundLongitudeElem.text().toDouble(&wBOk);	      eBLong = eBoundLongitudeElem.text().toDouble(&eBOk);	      sBLat = sBoundLatitudeElem.text().toDouble(&sBOk);	      nBLat = nBoundLatitudeElem.text().toDouble(&nBOk);	      if(wBOk && eBOk && sBOk && nBOk)		{		  layerProperty.ex_GeographicBoundingBox = QgsRect(wBLong, sBLat, eBLong, nBLat);		}	    }          else if (e1.tagName() == "BoundingBox")          {              // TODO: overwrite inherited              QgsWmsBoundingBoxProperty bbox;              bbox.box = QgsRect ( e1.attribute("minx").toDouble(),                                   e1.attribute("miny").toDouble(),                                   e1.attribute("maxx").toDouble(),                                   e1.attribute("maxy").toDouble()                                 );              bbox.crs = e1.attribute("SRS");              layerProperty.boundingBox.push_back ( bbox );          }          else if (e1.tagName() == "Dimension")          {            // TODO          }          else if (e1.tagName() == "Attribution")          {            // TODO          }          else if (e1.tagName() == "AuthorityURL")          {            // TODO          }          else if (e1.tagName() == "Identifier")          {            // TODO          }          else if (e1.tagName() == "MetadataURL")          {            // TODO          }          else if (e1.tagName() == "DataURL")          {            // TODO          }          else if (e1.tagName() == "FeatureListURL")          {            // TODO          }          else if (e1.tagName() == "Style")          {            QgsWmsStyleProperty styleProperty;            parseStyle(e1, styleProperty);            layerProperty.style.push_back(styleProperty);          }          else if (e1.tagName() == "MinScaleDenominator")          {            // TODO          }          else if (e1.tagName() == "MaxScaleDenominator")          {            // TODO          }          // If we got here then it's not in the WMS 1.3 standard      }      n1 = n1.nextSibling();  }  if (atleaf)  {    // We have all the information we need to properly evaluate a layer definition    // TODO: Save this somewhere    // Store if the layer is queryable    mQueryableForLayer[ layerProperty.name ] = layerProperty.queryable;    // Store the available Coordinate Reference Systems for the layer so that it    // can be combined with others later in supportedCrsForLayers()    crsForLayer[ layerProperty.name ] = layerProperty.crs;    // Store the WGS84 (CRS:84) extent so that it can be combined with others later    // in calculateExtent()    // Apply the coarse bounding box first    extentForLayer[ layerProperty.name ] = layerProperty.ex_GeographicBoundingBox;    // see if we can refine the bounding box with the CRS-specific bounding boxes    for ( uint i = 0; i < layerProperty.boundingBox.size(); i++ )     {      QgsDebugMsg("testing bounding box CRS which is "              + layerProperty.boundingBox[i].crs + "." );      if ( layerProperty.boundingBox[i].crs == DEFAULT_LATLON_CRS )      {        extentForLayer[ layerProperty.name ] =                 layerProperty.boundingBox[i].box;      }    }    QgsDebugMsg("extent for "              + layerProperty.name  + " is "             + extentForLayer[ layerProperty.name ].stringRep(3)  + "." );    // Insert into the local class' registry    layersSupported.push_back(layerProperty);    //if there are several <Layer> elements without a parent layer, the style list needs to be cleared    if(atleaf)      {	layerProperty.style.clear();      }  }//  QgsDebugMsg("exiting.");}bool QgsWmsProvider::parseServiceExceptionReportDOM(QByteArray const & xml){  QgsDebugMsg("entering.");#ifdef QGISDEBUG  //test the content of the QByteArray  QString responsestring(xml);  QgsDebugMsg("received the following data: "+responsestring);#endif  // Convert completed document into a DOM  QString errorMsg;  int errorLine;  int errorColumn;  bool contentSuccess = serviceExceptionReportDOM.setContent(xml, false, &errorMsg, &errorLine, &errorColumn);  if (!contentSuccess)  {    mErrorCaption = tr("DOM Exception");    mError = QString(tr("Could not get WMS Service Exception at %1: %2 at line %3 column %4")                .arg(baseUrl)                .arg(errorMsg)                .arg(errorLine)                .arg(errorColumn) );  QgsLogger::debug("DOM Exception: "+mError);    return FALSE;  }  QDomElement docElem = serviceExceptionReportDOM.documentElement();  // TODO: Assert the docElem.tagName() is "ServiceExceptionReport"  // serviceExceptionProperty.version = docElem.attribute("version");  // Start walking through XML.  QDomNode n = docElem.firstChild();  while( !n.isNull() ) {      QDomElement e = n.toElement(); // try to convert the node to an element.      if( !e.isNull() ) {          //QgsDebugMsg(e.tagName() ); // the node really is an element.          if (e.tagName() == "ServiceException")          {            QgsDebugMsg("  ServiceException.");            parseServiceException(e);          }      }      n = n.nextSibling();  }  QgsDebugMsg("exiting.");  return TRUE;}void QgsWmsProvider::parseServiceException(QDomElement const & e){  QgsDebugMsg("entering.");  QString seCode = e.attribute("code");  QString seText = e.text();  // set up friendly descriptions for the service exception  if      (seCode == "InvalidFormat")  {    mError = tr("Request contains a Format not offered by the server.");  }  else if (seCode == "InvalidCRS")  {    mError = tr("Request contains a CRS not offered by the server for one or more of the Layers in the request.");  }  else if (seCode == "InvalidSRS")  // legacy WMS < 1.3.0  {    mError = tr("Request contains a SRS not offered by the server for one or more of the Layers in the request.");  }  else if (seCode == "LayerNotDefined")  {    mError = tr("GetMap request is for a Layer not offered by the server, "                "or GetFeatureInfo request is for a Layer not shown on the map.");  }  else if (seCode == "StyleNotDefined")  {    mError = tr("Request is for a Layer in a Style not offered by the server.");  }  else if (seCode == "LayerNotQueryable")  {    mError = tr("GetFeatureInfo request is applied to a Layer which is not declared queryable.");  }  else if (seCode == "InvalidPoint")  {    mError = tr("GetFeatureInfo request contains invalid X or Y value.");  }  else if (seCode == "CurrentUpdateSequence")  {    mError = tr("Value of (optional) UpdateSequence parameter in GetCapabilities request is equal to "                "current value of service metadata update sequence number.");  }  else if (seCode == "InvalidUpdateSequence")  {    mError = tr("Value of (optional) UpdateSequence parameter in GetCapabilities request is greater "                "than current value of service metadata update sequence number.");  }  else if (seCode == "MissingDimensionValue")  {    mError = tr("Request does not include a sample dimension value, and the server did not declare a "                "default value for that dimension.");  }  else if (seCode == "InvalidDimensionValue")  {    mError = tr("Request contains an invalid sample dimension value.");  }  else if (seCode == "OperationNotSupported")  {    mError = tr("Request is for an optional operation that is not supported by the server.");  }  else  {    mError = tr("(Unknown error code from a post-1.3 WMS server)");  }  mError += "\n" + tr("The WMS vendor also reported: ");  mError += seText;  mError += "\n" + tr("This is probably due to a bug in the QGIS program.  Please report this error.");  // TODO = e.attribute("locator");  QgsDebugMsg("composed error message '"  + mError  + "'.");  QgsDebugMsg("exiting.");}QgsRect QgsWmsProvider::extent(){  if (extentDirty)  {    if (calculateExtent())    {      extentDirty = FALSE;    }  }  return layerExtent;}void QgsWmsProvider::reset(){  // TODO} bool QgsWmsProvider::isValid(){  return valid;} QString QgsWmsProvider::wmsVersion(){  // TODO  return NULL;} QStringList QgsWmsProvider::supportedImageEncodings(){  return mCapabilities.capability.request.getMap.format;} QStringList QgsWmsProvider::subLayers() const{  return activeSubLayers;}QStringList QgsWmsProvider::subLayerStyles() const{  return activeSubStyles;}void QgsWmsProvider::showStatusMessage(QString const & theMessage){    // Pass-through    // TODO: See if we can connect signal-to-signal.  This is a kludge according to the Qt doc.    emit setStatus(theMessage);}bool QgsWmsProvider::calculateExtent(){  //! \todo Make this handle non-geographic CRSs (e.g. floor plans) as per WMS spec  QgsDebugMsg("entered.");  // Make sure we know what extents are available  if (!retrieveServerCapabilities())  {    return FALSE;  }  // Set up the coordinate transform from the WMS standard CRS:84 bounding  // box to the user's selected CRS  if (!mCoordinateTransform)  {    QgsSpatialRefSys qgisSrsSource;    QgsSpatialRefSys qgisSrsDest;    qgisSrsSource.createFromOgcWmsCrs(DEFAULT_LATLON_CRS);    qgisSrsDest  .createFromOgcWmsCrs(imageCrs);    mCoordinateTransform = new QgsCoordinateTransform(qgisSrsSource, qgisSrsDest);  }  bool firstLayer = true; //flag to know if a layer is the first to be successfully transformed  for ( QStringList::Iterator it  = activeSubLayers.begin();                               it != activeSubLayers.end();                             ++it )   {    QgsDebugMsg("Sublayer Iterator: "+*it);    // This is the extent for the layer name in *it    QgsRect extent = extentForLayer.find( *it )->second;    // Convert to the user's CRS as required    try      {	extent = mCoordinateTransform->transformBoundingBox(extent, QgsCoordinateTransform::FORWARD);      }    catch(QgsCsException &cse)      {	UNUSED(cse);	continue; //ignore extents of layers which cannot be transformed info the required CRS      }    //make sure extent does not contain 'inf' or 'nan'    if (!extent.isFinite())    {      continue;    }    // add to the combined extent of all the active sublayers    if (firstLayer)    {      layerExtent = extent;    }    else    {      layerExtent.combineExtentWith( &extent );    }    firstLayer = false;    QgsDebugMsg("combined extent is '"  + layerExtent.stringRep()	      + "' after '"  + (*it) + "'." );  }  QgsDebugMsg("exiting with '"  + layerExtent.stringRep() + "'.");  return TRUE;}int QgsWmsProvider::capabilities() const{  int capability = 0;  bool canIdentify = FALSE;  QgsDebugMsg("entering.");  // Test for the ability to use the Identify map tool  for ( QStringList::const_iterator it  = activeSubLayers.begin();                                     it != activeSubLayers.end();                                   ++it )  {    // Is sublayer visible?    if (TRUE == activeSubLayerVisibility.find( *it )->second)    {      // Is sublayer queryable?      if (TRUE == mQueryableForLayer.find( *it )->second)      {        QgsDebugMsg("'"  + (*it)  + "' is queryable.");        canIdentify = TRUE;      }    }  }  // Collect all the test results into one bitmask  if (canIdentify)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久天堂av综合合色蜜桃网| 成人av动漫在线| 亚洲高清免费观看高清完整版在线观看| 一本高清dvd不卡在线观看| 欧美日韩在线直播| 国产农村妇女精品| 日韩中文字幕麻豆| 成人免费观看av| 日韩欧美中文字幕一区| 一区二区理论电影在线观看| 久久99国产精品成人| 91亚洲男人天堂| 久久毛片高清国产| 日韩高清一级片| 日本韩国欧美一区二区三区| 久久精品视频免费观看| 水野朝阳av一区二区三区| 色综合视频在线观看| 欧美大黄免费观看| 亚洲午夜精品一区二区三区他趣| 国产美女主播视频一区| 日韩欧美国产麻豆| 亚洲一卡二卡三卡四卡五卡| 粉嫩av亚洲一区二区图片| 日韩西西人体444www| 亚洲国产一区二区a毛片| 成年人国产精品| 久久久www免费人成精品| 免费在线看成人av| 欧美日韩视频不卡| 亚洲国产精品久久艾草纯爱 | 天堂va蜜桃一区二区三区漫画版| 成人av电影在线| 中文字幕乱码久久午夜不卡 | 国产日韩欧美精品一区| 精品一区二区三区免费毛片爱 | 国产精品1区2区3区在线观看| 91精品中文字幕一区二区三区| 亚洲六月丁香色婷婷综合久久 | 免费观看成人av| 欧美剧情电影在线观看完整版免费励志电影| 中文字幕av不卡| 大桥未久av一区二区三区中文| 日韩一区二区精品| 久久国产精品99精品国产 | 国产一区在线视频| 精品剧情v国产在线观看在线| 久久国产福利国产秒拍| 久久久无码精品亚洲日韩按摩| 国产一区二区导航在线播放| 久久人人爽爽爽人久久久| 国产成人小视频| 欧美国产禁国产网站cc| bt7086福利一区国产| 亚洲欧美一区二区三区孕妇| 在线观看国产精品网站| 亚洲综合久久久久| 在线成人午夜影院| 激情文学综合丁香| 国产精品国产三级国产有无不卡| 99国产欧美另类久久久精品| 亚洲色图在线播放| 欧美人伦禁忌dvd放荡欲情| 免费视频一区二区| 欧美国产精品v| 欧美性做爰猛烈叫床潮| 欧美aa在线视频| 国产亚洲成aⅴ人片在线观看| 99re8在线精品视频免费播放| 一卡二卡欧美日韩| 日韩欧美成人激情| 成人高清视频免费观看| 亚洲国产视频在线| www久久精品| 色偷偷一区二区三区| 日本美女一区二区三区视频| 国产欧美日韩三级| 欧美色老头old∨ideo| 国内成人精品2018免费看| 亚洲欧洲精品成人久久奇米网| 欧美日韩高清一区二区| 国产麻豆精品theporn| 一区二区三区欧美日| 日韩免费一区二区| 91在线观看美女| 精品亚洲成a人| 亚洲靠逼com| 国产女人水真多18毛片18精品视频 | 黄色资源网久久资源365| 亚洲精品一卡二卡| 国产无人区一区二区三区| 欧美色视频在线| 99久久99久久精品免费观看| 精品一区精品二区高清| 一区二区三区在线观看视频| 久久久精品一品道一区| 欧美一区午夜视频在线观看| 99久久综合99久久综合网站| 精品一区二区综合| 舔着乳尖日韩一区| 亚洲一区二区三区激情| 国产精品久久毛片a| 欧美大胆一级视频| 91麻豆精品国产自产在线| 欧洲一区二区av| av在线这里只有精品| 国产电影一区二区三区| 精品一区二区三区免费| 日本不卡中文字幕| 图片区日韩欧美亚洲| 亚洲国产一二三| 亚洲一区二区三区国产| 亚洲色欲色欲www| 综合av第一页| 亚洲欧洲国产日本综合| 中文字幕第一区第二区| 国产欧美一区二区精品仙草咪| 久久综合999| 久久精品夜色噜噜亚洲a∨| 精品1区2区在线观看| 2023国产精品自拍| 久久婷婷久久一区二区三区| 精品国产乱码久久久久久浪潮 | 免费成人你懂的| 欧美a一区二区| 国内久久婷婷综合| 国产精品综合一区二区三区| 国产综合久久久久久久久久久久| 秋霞午夜av一区二区三区| 蜜臀久久久99精品久久久久久| 美腿丝袜一区二区三区| 国产一区二区在线观看视频| 国产乱码精品1区2区3区| 国产盗摄女厕一区二区三区| 成人精品免费网站| 色综合久久久久久久久| 欧美视频一区二区三区四区| 欧美日韩视频第一区| 日韩免费成人网| 国产精品嫩草影院com| 中文字幕人成不卡一区| 亚洲一本大道在线| 麻豆freexxxx性91精品| 国产精品影视网| 94-欧美-setu| 91麻豆精品91久久久久久清纯 | 中文一区一区三区高中清不卡| 中文无字幕一区二区三区| 亚洲黄色免费电影| 蜜桃视频在线观看一区二区| 国产99精品国产| 欧美午夜影院一区| 精品国产精品一区二区夜夜嗨| 中文字幕在线一区免费| 亚洲午夜免费电影| 久久99精品久久久| 99久久精品免费精品国产| 91麻豆精品91久久久久久清纯| 日本一区二区视频在线观看| 亚洲综合在线视频| 国产一区二区三区香蕉| 欧亚洲嫩模精品一区三区| 精品国产伦一区二区三区观看方式| 国产精品美日韩| 青草国产精品久久久久久| 成人高清av在线| 日韩欧美一级特黄在线播放| 国产精品久久久爽爽爽麻豆色哟哟| 午夜欧美2019年伦理| 成人一区在线看| 在线播放一区二区三区| 中文字幕亚洲区| 精品一区二区三区免费视频| 91国偷自产一区二区开放时间| 久久天天做天天爱综合色| 亚洲高清不卡在线观看| 91小视频在线免费看| 26uuu欧美日本| 日本网站在线观看一区二区三区 | 精品第一国产综合精品aⅴ| 一区二区久久久久久| av电影天堂一区二区在线| 欧美大白屁股肥臀xxxxxx| 亚洲一区在线观看免费 | 91精品国产91久久综合桃花| 亚洲图片激情小说| 国产精品性做久久久久久| 欧美一区二区视频在线观看 | 欧美日韩国产一区二区三区地区| 国产视频一区二区在线| 久久精品国产**网站演员| 欧美色图12p| 亚洲国产成人精品视频| 在线免费观看日韩欧美| 亚洲天堂2014| jizzjizzjizz欧美| 欧美国产一区二区| 国产成人无遮挡在线视频| 精品国产凹凸成av人网站| 美女精品自拍一二三四|