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

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

?? featureclass.java~98~

?? CreateMyFirstMap
?? JAVA~98~
?? 第 1 頁 / 共 2 頁
字號:
    rend.setValue(Rendition.STROKE ,Color.cyan );
    rend.setValue(Rendition.FILL ,Color.green );
    // For points, specify the symbol size, font, and color
    rend.setValue(Rendition.SYMBOL_STRING, "@");
    rend.setValue(Rendition.FONT_SIZE, 16);
    rend.setValue(Rendition.FONT_FAMILY, "MapInfo Shields");
    rend.setValue(Rendition.SYMBOL_FOREGROUND, Color.blue);
// For lines, specify the line color and width
    rend.setValue(Rendition.STROKE, Color.green);
    rend.setValue(Rendition.STROKE_WIDTH, 4);
// For ellipses, specify the fill color and opacity
    rend.setValue(Rendition.FILL, Color.blue);
    rend.setValue(Rendition.FILL_OPACITY, new Float(0.40));

    //create circular region
    int circleType=1;
     double circleRadius=2;
    int circleResolution=12;
    //for elliptical region
    //create a integer variable to set the coordsys system of the region.o set for map coordsys,1 set for screen coordsys
    int ellipseType=1;
    //create a variable to set the rotation angle of the ellipse in radiant
    double xRadius=1.0;
    double yRadius=0.25;
    //create a integer variable to specify the number of point to describe the ellipse. if 0,the default 12 will be used
    int ellipseResolution=12;
    //create an annotation layer for storing the feature we are creating
    AnnotationTableDescHelper annotationTDHelper=new AnnotationTableDescHelper("Annotations");
    AnnotationDataProviderHelper annotationDPHelper=new AnnotationDataProviderHelper();
    LocalDataProviderRef localDPRef=new LocalDataProviderRef(annotationDPHelper);
    FeatureLayer annotationLayer=(FeatureLayer)mapj.getLayers() .insertLayer(localDPRef,annotationTDHelper,0,"Annotations");
    //PrimaryKey is taken as an argument by all the create methods and
//cannot be null
    Feature retFeature;
    PrimaryKey pkey = new PrimaryKey(attributes[0]);
    //set the center point for the circle
    DoublePoint centerPoint=new DoublePoint(108.9608,34.2729);
    // Create a Circular Region
    retFeature = feaFac.createCircularRegion(circleType,//type
                                             /*
if the Type is 0, MapJ creates a region whose points are all the same geographic distance from the
 center. Due to the curvature of the earth, and due to the way that coordinate systems and
 map projections work, such a circle might appear lop-sided, rather than circular.
If the type parameter is 1, MapJ creates a region that appears circular on the screen.
However, different points on the circle might not be the same geographic distance from the center
of the circle.
type - An integer representing the type of coordinate system to use in creation of the circle.
Use 0 for map coords and 1 for screen coords.
*/
centerPoint,// The center of the circle given as a DoublePoint.
circleRadius,//the radius of the circle
LinearUnit.mile,//the linear unit of the distance
circleResolution,// The number of points describing the circle. If 0 it will use default of 12.
rend,//The rendition associated with this feature, may be null.
null, //The rendition associated with the label for this feature, may be null.
null,//attributes,//Attributes that are associated with this feature, may be null.
pkey//the PrimaryKey of the new Feature, may be null.
);
    //add the new feature to the annotation layer
    PrimaryKey pkey2=annotationLayer.addFeature(retFeature) ;
//create the ellipse region
DoublePoint    ellipseCenter=new DoublePoint(108.9608,34.3729);
retFeature=feaFac.createEllipticalRegion(ellipseType,ellipseCenter,0,xRadius,yRadius,
   LinearUnit.mile  , ellipseResolution,rend,null,null,new PrimaryKey(attributes[1]));
  annotationLayer.addFeature(retFeature) ;
//creae point
retFeature=feaFac.createPoint(new DoublePoint(108.8,34.2729),rend,null,new PrimaryKey(attributes[2]));
  annotationLayer.addFeature(retFeature) ;
//create ployline
  // Create PolyLine using a 2 x 6 double matrix
// Row 1 contains 3 points(x,y,x,y,x,y) and 2 line segments.
// Row 2 contains 3 points(x,y,x,y,x,y) and 2 line segments.
double pts[][] = { {108.8608,34.2720, 108.8908,34.2720,108.9208,34.270},
      {108.8908,34.2680, 108.8608,34.2680,108.8408,34.2720} };
retFeature = feaFac.createPolyLine(pts, rend, null, null, new PrimaryKey(attributes[3]));
  annotationLayer.addFeature(retFeature) ;
     //
     MapXtremeImageRenderer render=new MapXtremeImageRenderer(mapxtremeURL);
     ImageRequestComposer imageRC=ImageRequestComposer.create(mapj,256,Color.white ,"image/png");
     render.render(imageRC) ;
     render.toFile("E:\\MapInfo\\study\\png\\created.png") ;
  }catch(Exception e)
  {
    System.out.println("get a "+e.getClass() +"\nwith message "+e.getMessage() ) ;
    e.printStackTrace() ;
  }
}
public void searchFeature()
{
  MapJ mapj=new MapJ();
  DoublePoint centerPoint=new DoublePoint(108.9608,34.2729);
  DoubleRect bound=new DoubleRect(centerPoint,0.31,0.21);
  mapj.setBounds(bound) ;
  mapj.setDeviceBounds(new DoubleRect(0,0,800,600)) ;
  Layers layers=null;
  FeatureLayer featureLayer;
  FeatureSet featureSet=null;
  double searchRadius=2;
  List resList=new ArrayList();
  RewindableFeatureSet rfSet=null;
  Feature feature=null;
  try
  {
    mapj.loadMapDefinition(mdfFilePath);
    layers=mapj.getLayers() ;
    int count=0;
    String layerName;
    for(int i=0;i<layers.size() ;i++)
    {
      featureLayer=(FeatureLayer)layers.get(i) ;
      layerName=featureLayer.getName() ;
      feature=null;
      count=0;
//      featureSet=featureLayer.searchWithinRadius(resList,centerPoint,searchRadius,LinearUnit.kilometer ,null);
  //  DoubleRect rect=new DoubleRect(108.9608,34.2729,108.9908,34.3729);
  //    featureSet=featureLayer.searchWithinRectangle(resList,rect,null);
   //   featureSet=featureLayer.searchAtPoint(resList,centerPoint,null) ;
    /*  Attribute attLength=new Attribute(1022);
      String searchCol="length";

      if(layerName.equals("line") )
      {
      featureSet=featureLayer.searchByAttribute(resList,searchCol,attLength,null);
      rfSet=new RewindableFeatureSet(featureSet);
      feature=rfSet.getNextFeature() ;
      }*/
      int searchLen=1022;
      String searchColumn="length";
      //create name list
      List nameList=new ArrayList();
      nameList.add(searchColumn) ;
      //create value list
      List valueList=new ArrayList();
      Attribute searchAttr=new Attribute(searchLen);
      AttTuple searchTuple=new AttTuple(searchAttr);
      valueList.add(searchTuple);
      //create operator list
      List operatorList=new ArrayList();
      operatorList.add(AttOperator.eq ) ;
      //do the search
      if(layerName.equals("line") )
      {
      featureSet=featureLayer.searchByAttributes(resList,nameList,operatorList,valueList,QueryParams.m_defaultQP );
      rfSet=new RewindableFeatureSet(featureSet);
      feature=rfSet.getNextFeature() ;
      //下面這個是練習,練習如何得到feature對應的列值,因為一個層實際上對應的就是一個表,所以一個feature
         //對應的應該就是一列
         for(int ii=0;ii<feature.getAttributeCount() ;ii++)
         {
           Attribute att=feature.getAttribute(ii) ;
           String str=att.getString() ;
           str="wait";
         }

      }
 featureSet=featureLayer.searchByAttributes(resList,nameList,operatorList,valueList,QueryParams.m_defaultQP );
feature=rfSet.getNextFeature() ;
      while(feature!=null)
      {
        //下面這個是練習,練習如何得到feature對應的列值,因為一個層實際上對應的就是一個表,所以一個feature
//對應的應該就是一列
        for(int ii=0;ii<feature.getAttributeCount() ;ii++)
        {
          Attribute att=feature.getAttribute(ii) ;
          String str=att.getString() ;
          str="wait";
        }
        count++;
        feature=rfSet.getNextFeature() ;
      }
      System.out.println("there are "+count+" in "+layerName+" layer ") ;
    }
  }catch(java.io.IOException  ioe)
  {
    System.out.println("get a  "+ioe.getClass() +"\nwith message "+ioe.getMessage() ) ;
  }catch(Exception e)
  {
    System.out.println("get a "+e.getClass() +"\nwith message "+e.getMessage() ) ;
  }
}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品乱码一区二三区小蝌蚪| 成人免费看视频| 欧美日韩三级一区二区| 亚洲综合久久久久| 欧美狂野另类xxxxoooo| 日韩电影免费在线看| 日韩欧美一级在线播放| 国产一区在线观看麻豆| 欧美国产精品一区二区三区| 国产寡妇亲子伦一区二区| 国产欧美一二三区| 一本一道综合狠狠老| 亚洲成人av在线电影| 欧美一区二区三区免费大片| 国产美女一区二区三区| 中文字幕亚洲不卡| 91精品在线观看入口| 国产不卡一区视频| 偷拍一区二区三区| **欧美大码日韩| 在线综合视频播放| 国产成人欧美日韩在线电影| 亚洲午夜电影在线| 中文成人av在线| 欧美福利电影网| av福利精品导航| 久久国产精品区| 日韩在线一二三区| 成人欧美一区二区三区白人| 精品国产免费人成电影在线观看四季| 在线视频一区二区三| 国产成人精品三级麻豆| 日产国产欧美视频一区精品| 国产精品久久久久三级| 欧美不卡123| 欧美电影免费观看高清完整版在线观看| 福利一区二区在线| 国产黄色精品视频| 久久99久久99| 日韩av网站免费在线| 激情综合网激情| 亚洲一区二区偷拍精品| 亚洲精品第1页| 亚洲日本在线a| 亚洲视频中文字幕| 曰韩精品一区二区| 亚洲精品一二三四区| 亚洲二区视频在线| 亚洲成a人片在线观看中文| 亚洲精品中文在线| 偷偷要91色婷婷| 久久av资源站| 成人一区在线看| 在线影院国内精品| 日韩午夜电影av| 久久五月婷婷丁香社区| 国产精品网曝门| 亚洲福利国产精品| 黑人精品欧美一区二区蜜桃| 成人午夜视频在线| 日本高清视频一区二区| 欧美一区二区视频观看视频| 亚洲精品日韩一| 亚洲一区av在线| 麻豆免费精品视频| 成人av影视在线观看| 91精品婷婷国产综合久久竹菊| 久久久亚洲精品石原莉奈| 国产精品理论片在线观看| 亚洲成人精品在线观看| 国产激情视频一区二区在线观看| 色哟哟国产精品免费观看| 欧美电视剧在线看免费| 亚洲精品高清在线| 国产精品1区二区.| 91精品国产福利在线观看| 国产精品久久久99| 国产伦精品一区二区三区视频青涩| 色综合久久久网| 国产日产精品一区| 蜜臀精品一区二区三区在线观看 | 亚洲靠逼com| 国产另类ts人妖一区二区| 91精品国产综合久久香蕉麻豆 | 日本不卡一区二区三区| 91啦中文在线观看| 久久精品欧美日韩精品| 免费国产亚洲视频| 日韩一区二区视频在线观看| 午夜精品一区二区三区三上悠亚| 91蝌蚪porny九色| 国产精品视频线看| av爱爱亚洲一区| 亚洲欧美激情小说另类| 99精品久久只有精品| 国产精品久久777777| 成人免费观看av| 欧美国产欧美亚州国产日韩mv天天看完整| 麻豆视频观看网址久久| 久久一日本道色综合| 国产麻豆欧美日韩一区| 国产精品久久久一本精品 | aaa欧美大片| 一区二区三区成人| 欧美日韩国产一级二级| 性欧美大战久久久久久久久| 91精品国产综合久久精品性色 | 一本一道久久a久久精品| 亚洲第一久久影院| 精品精品国产高清a毛片牛牛 | 免费观看在线色综合| 国产清纯美女被跳蛋高潮一区二区久久w | 91免费视频观看| 亚洲精品乱码久久久久久| 国产精品乱人伦| 久久久久久久综合狠狠综合| 不卡的电视剧免费网站有什么| 亚洲精品你懂的| 久久久久久久久久久久久夜| 色偷偷成人一区二区三区91| 天天影视涩香欲综合网| 国产午夜精品一区二区三区嫩草| 91亚洲男人天堂| 狠狠色伊人亚洲综合成人| 1区2区3区欧美| 国产精品毛片久久久久久久| 国产欧美日韩亚州综合| 日韩亚洲国产中文字幕欧美| 制服丝袜在线91| 色呦呦网站一区| 91精品国产综合久久久久久久久久| 91亚洲精品乱码久久久久久蜜桃 | 26uuu成人网一区二区三区| 欧美一级淫片007| 91精品国产综合久久香蕉的特点| 91国产免费看| av午夜精品一区二区三区| 色婷婷综合久久久久中文 | 欧美日韩一级视频| 精品久久久久久久一区二区蜜臀| 欧美日韩夫妻久久| 欧美色视频在线观看| 欧美三级一区二区| 欧美精品在线观看播放| 欧美网站大全在线观看| 欧美日韩国产a| 日韩一级免费观看| 久久久久久久久免费| 中国av一区二区三区| 一区二区三区影院| 五月天激情综合网| 国产精品一区二区男女羞羞无遮挡| 国产一区二区三区av电影| 成人app在线观看| 精品视频资源站| 久久久精品国产免大香伊| 亚洲欧洲成人av每日更新| 亚洲一二三四在线| 秋霞午夜av一区二区三区| 国产一区二区三区观看| 色综合久久久久| 欧美刺激脚交jootjob| 亚洲欧美日韩系列| 精品一区二区三区在线视频| 日本韩国精品在线| 国产欧美一区二区三区鸳鸯浴| 亚洲在线成人精品| 丁香桃色午夜亚洲一区二区三区| 欧美日韩一区二区三区不卡| 精品国产不卡一区二区三区| 一区二区三区蜜桃| 国产成人av影院| 精品黑人一区二区三区久久| 亚洲在线视频免费观看| 99国产一区二区三精品乱码| 日韩欧美的一区| 天天做天天摸天天爽国产一区 | 色噜噜狠狠成人中文综合| 精品国产三级a在线观看| 一区二区激情小说| 91蝌蚪porny| 亚洲私人影院在线观看| 成人美女在线视频| 欧美韩日一区二区三区四区| 国产一区二区三区四区五区美女| 91精品婷婷国产综合久久性色| 亚洲精品videosex极品| 色视频欧美一区二区三区| 亚洲欧洲日韩女同| 99精品国产99久久久久久白柏| 亚洲国产精品ⅴa在线观看| 国产一区二区三区日韩| 国产喂奶挤奶一区二区三区| 国产一区二区三区精品视频| 久久综合九色欧美综合狠狠| 成人免费电影视频| 亚洲男人的天堂在线aⅴ视频| 在线观看日韩电影| 蜜臀91精品一区二区三区| 久久久亚洲高清|