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

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

?? featureclass.java~98~

?? CreateMyFirstMap
?? JAVA~98~
?? 第 1 頁 / 共 2 頁
字號:
package myfirstmap;
import com.mapinfo.mapj.MapJ;
import com.mapinfo.unit.LinearUnit;
import com.mapinfo.util.DoublePoint;
import com.mapinfo.util.DoubleRect;
import com.mapinfo.dp.tab.TABDataProviderHelper;
import com.mapinfo.dp.tab.TABTableDescHelper;
import com.mapinfo.mapxtreme.client.MapXtremeDataProviderRef;
import com.mapinfo.mapj.AbstractLayer;
import com.mapinfo.mapj.Layers;
//import com.mapinfo.mapj.Layer;
import com.mapinfo.mapj.FeatureLayer;
import com.mapinfo.dp.TableInfo;
import java.util.List;
import java.util.ArrayList;
import com.mapinfo.dp.util.RewindableFeatureSet;
import com.mapinfo.dp.FeatureSet;
import com.mapinfo.dp.Feature;
import com.mapinfo.dp.Attribute;
import com.mapinfo.dp.Geometry;
import com.mapinfo.dp.PointGeometry;
import com.mapinfo.dp.VectorGeometry;
import com.mapinfo.dp.PointList;
import com.mapinfo.mapj.FeatureFactory;
import com.mapinfo.graphics.Rendition;
import  com.mapinfo.graphics.RenditionImpl;
import java.awt.Color;
import com.mapinfo.dp.annotation.AnnotationDataProvider;
import com.mapinfo.dp.annotation.AnnotationDataProviderHelper;
import com.mapinfo.dp.annotation.AnnotationTableDescHelper;
import com.mapinfo.dp.util.LocalDataProviderRef;
import com.mapinfo.dp.PrimaryKey;
import com.mapinfo.mapxtreme.client.MapXtremeImageRenderer;
import com.mapinfo.xmlprot.mxtj.ImageRequestComposer;
import com.mapinfo.dp.AttOperator;
import com.mapinfo.dp.AttTuple;
import com.mapinfo.dp.QueryParams;
public class FeatureClass
{
  private   String mapxtremeURL="http://901-32:8083/mapxtreme47/mapxtreme";
  private   String mdfFilePath="E:\\MapInfo\\study\\mapmdf\\pla2.mdf";
  public FeatureClass()
  {
  }
  public  void getInfoFromFeature()
  {
   MapJ mapj=new MapJ();
   DoublePoint point=new DoublePoint(018.9608,34.2729);
   DoubleRect bound=new DoubleRect(point,0.31,0.21);
   mapj.setBounds(bound) ;
   LinearUnit unit=LinearUnit.kilometer ;
   mapj.setDistanceUnits(unit) ;
   mapj.setDeviceBounds(new DoubleRect(0,0,800,600)) ;
   //
  try
  {
    mapj.loadMapDefinition(mdfFilePath);
    Layers layers=mapj.getLayers() ;
    AbstractLayer abstractLayer=null;
    FeatureLayer featureLayer=null;
    String layerName;
    TableInfo tableInfo=null;
    List columns=new ArrayList();
    Attribute attribute=null;
    Geometry geom=null;
    PointGeometry pointGeom=null;
    int attributeCount=0;
    DoubleRect rect=null;
    DoublePoint dbPoint=null;
    PointList pointList=null;
    VectorGeometry vectorGeometry=null;
    int count=0;
    for(int i=0;i<layers.size() ;i++)
    {
      featureLayer=(FeatureLayer)layers.get(i) ;
      layerName=featureLayer.getName() ;
      tableInfo=featureLayer.getTableInfo() ;
      //必須清空,因為下次執行下一個表時,如果它們的字段不一樣,那么在“FeatureSet fSet=featureLayer.searchAll(columns,null);”就會出現錯誤
      count=0;
      columns.clear() ;
      for(int j=0;j<tableInfo.getColumnCount() ;j++)
      {
        String columnName=tableInfo.getColumnName(j) ;
        columns.add(columnName) ;
      }
      //perform a search to get the features(records) from the layer
      FeatureSet fSet=featureLayer.searchAll(columns,null);
      RewindableFeatureSet rfSet=new RewindableFeatureSet(fSet);
      //get the first attribute
      Feature feature=rfSet.getNextFeature() ;
      //the loop throuth all feature in the layer
      while(feature!=null)
      {
        /* get the first attribute (columnData) from the feature Note: If
        we want to re-use the Attribute object later on (after the
        getNextFeature loop), we would need to make a copy of the
        Attribute object, using the copy constructor.
        */
        attribute=feature.getAttribute(0) ;//it's error here
        //get a count of all attributes in the layer
        attributeCount=feature.getAttributeCount() ;
        //get a reference to the grographic information from the feature
        geom=feature.getGeometry() ;
        //if the geometry is a point
        if(geom.getType() ==Geometry.TYPE_POINT )
        {
          pointGeom=(PointGeometry)geom;
          // get the minimum bounding rectangle for the feature
          rect=pointGeom.getBounds() ;
          // get the x,y location where the feature’s label will be
          // anchored
          dbPoint=pointGeom.getLabelPoint(null);
        }else
        {
          vectorGeometry = (VectorGeometry) geom;

          rect = vectorGeometry.getBounds();
          dbPoint = vectorGeometry.getLabelPoint(null);
          double[] points;
          int offset=0;
          int numPoints;
           int pointListCount=vectorGeometry.getPointListCount() ;
          for (int ii=0;ii<vectorGeometry.getPointListCount();++ii)
          {
            // Get the next Point List
            pointList = vectorGeometry.getNextPointList();
            // determine the number of Points in the point group
             numPoints = pointList.getPointCount();
            // Create the point array large enough to hold all the
            // points
            points = new double[numPoints];
            // Call getNextPoints which will put the points into the
            // array
            pointList.getNextPoints(points, offset, numPoints/2);
           }//end this for above
        }//end else
       count++;
        if((count>332)&&(layerName.equals("Line") ))
       {
         System.out.println(">99") ;
       }
       feature=rfSet.getNextFeature() ;
      }//end while
      //rewind the featureSet for the future use
      rfSet.rewind() ;
    }//end the most outer for
  }catch(java.io.IOException  ioe)
  {
    System.out.println("get a "+ioe.getClass() +"\nwith message "+ioe.getMessage() ) ;
    ioe.printStackTrace() ;
  }catch(Exception e)
  {
    System.out.println("get a "+e.getClass() +"\nwith message "+e.getMessage() ) ;
    e.printStackTrace() ;
  }
}//end this function

public void createVariousFeature()
{
  MapJ mapj=new MapJ();
  DoublePoint point=new DoublePoint(108.9608,34.2729);
  DoubleRect bound=new DoubleRect(point ,0.31,0.21);
  mapj.setBounds(bound) ;
  LinearUnit unit=LinearUnit.kilometer ;
  mapj.setDistanceUnits(unit) ;
  mapj.setDeviceBounds(new DoubleRect(0,0,800,600)) ;
  try
  {
  //  mapj.loadMapDefinition(mdfFilePath);
    FeatureFactory feaFac=mapj.getFeatureFactory() ;
    //set attribute object
    Attribute[] attributes=new Attribute[4];
    attributes[0]=new Attribute("feature1");
    attributes[1]=new Attribute("ellpise");
    attributes[2]=new Attribute("point");
    attributes[3]=new Attribute("polyline");
    //set up the rendition object
    //this will not work for a tab files. for tab files we must use
    //com.mapinfo.tab.TABStyleFactory to create an appropirate rendition object
    Rendition rend=RenditionImpl.getDefaultRendition() ;
    //for circle ,specify the edge color and fill color

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕精品三区| 欧洲一区在线电影| 欧美系列亚洲系列| 尤物视频一区二区| 99视频精品免费视频| 久久久久久久久久久久久女国产乱 | 亚洲6080在线| 亚洲免费观看高清完整版在线观看熊 | 色婷婷综合久色| 成人va在线观看| 美女精品自拍一二三四| 亚洲美女屁股眼交| 久久精品国产一区二区三| 国产成人a级片| 精品国产伦理网| 自拍偷拍国产精品| 国产在线精品一区二区三区不卡 | 一区二区三区久久| 99久久伊人网影院| 精品黑人一区二区三区久久 | 亚洲男人天堂av网| 久久蜜臀精品av| 欧美日韩午夜在线| 成人小视频在线| 无吗不卡中文字幕| 视频一区二区中文字幕| 欧美精品一二三| 在线观看网站黄不卡| 国产精品一区免费视频| 麻豆国产精品官网| 日韩福利电影在线观看| 色综合网站在线| 色狠狠一区二区三区香蕉| 欧美日韩mp4| 精品国产91洋老外米糕| 国产精品久久久久影院老司| 亚洲日本丝袜连裤袜办公室| 亚洲国产视频一区二区| 精品亚洲免费视频| 国产福利精品导航| 在线观看日韩国产| 日韩女优电影在线观看| 国产精品麻豆视频| 亚洲va欧美va天堂v国产综合| 韩国成人精品a∨在线观看| 波多野结衣亚洲| 91精品欧美综合在线观看最新| 日韩免费福利电影在线观看| 国产精品久久久久三级| 性久久久久久久久| 成人综合日日夜夜| 欧美久久久久免费| 国产精品你懂的在线欣赏| 香蕉乱码成人久久天堂爱免费| 韩国精品主播一区二区在线观看| 91在线国产观看| 精品91自产拍在线观看一区| 伊人色综合久久天天人手人婷| 极品美女销魂一区二区三区免费 | 日本韩国欧美三级| 2023国产精华国产精品| 亚洲午夜久久久久久久久久久| 国内成人精品2018免费看| 色老汉av一区二区三区| 久久九九久精品国产免费直播| 亚洲一区二区视频在线观看| 蜜乳av一区二区| 欧美综合在线视频| 久久精品人人爽人人爽| 开心九九激情九九欧美日韩精美视频电影 | 色天天综合色天天久久| 欧美成人综合网站| 亚洲一区二区三区视频在线 | 欧美亚洲图片小说| 久久精品一区二区三区不卡| 一区二区三区四区国产精品| 成人精品电影在线观看| 精品国产91九色蝌蚪| 亚洲成人av免费| 91在线观看地址| 日本一区二区电影| 国产在线播放一区三区四| 欧美一区二视频| 亚洲国产日韩一级| 天使萌一区二区三区免费观看| proumb性欧美在线观看| 久久久久久影视| 捆绑紧缚一区二区三区视频| 欧美高清你懂得| 亚洲国产日韩综合久久精品| 在线亚洲高清视频| 亚洲欧美视频在线观看视频| 成人激情小说网站| 欧美激情在线一区二区三区| 国产一区二区免费在线| 精品三级在线看| 日本美女视频一区二区| 欧美浪妇xxxx高跟鞋交| 一区二区三区四区五区视频在线观看| 欧美精品电影在线播放| 欧美一区二区三区视频免费| 调教+趴+乳夹+国产+精品| 欧美乱妇23p| 丝袜脚交一区二区| 欧美一区二区在线播放| 日本亚洲三级在线| 日韩一区二区三区高清免费看看| 日韩av一二三| 日韩视频一区二区| 美日韩一区二区| 精品国产一二三| 国产精品自拍毛片| 国产精品久久久久影院亚瑟| 91视频观看免费| 自拍视频在线观看一区二区| 欧美亚洲自拍偷拍| 视频一区二区国产| 欧美成人一区二区三区片免费| 国产真实乱对白精彩久久| 91麻豆swag| 亚洲国产精品一区二区尤物区| 欧美日韩一区在线观看| 轻轻草成人在线| 久久一区二区三区国产精品| 国产精品一区免费在线观看| 综合久久给合久久狠狠狠97色| 日本乱码高清不卡字幕| 日韩精品一级中文字幕精品视频免费观看| 91精品国产高清一区二区三区 | av亚洲精华国产精华精| 亚洲欧美另类久久久精品2019| 欧美中文字幕一区二区三区亚洲| 欧美不卡一二三| 成人午夜精品一区二区三区| 自拍偷拍亚洲综合| 在线播放/欧美激情| 亚洲国产你懂的| 日韩视频123| 成人av在线播放网站| 亚洲一区二区偷拍精品| 亚洲精品在线网站| 色综合久久综合| 久久精品国产久精国产| 国产精品电影一区二区三区| 欧美精品乱码久久久久久按摩| 国产精一品亚洲二区在线视频| 综合激情成人伊人| 精品国产一区久久| proumb性欧美在线观看| 青娱乐精品视频在线| 亚洲欧洲精品天堂一级| 日韩一级免费一区| av在线不卡免费看| 久久精品国产久精国产爱| 亚洲激情自拍偷拍| 精品成人一区二区三区四区| 在线观看三级视频欧美| 国产精品亚洲一区二区三区在线| 亚洲香蕉伊在人在线观| 久久精品夜色噜噜亚洲a∨| 欧美优质美女网站| 国产成人综合在线播放| 精品国产a毛片| 欧美国产在线观看| 在线成人高清不卡| www.av亚洲| 久久er精品视频| 亚洲a一区二区| 亚洲美女偷拍久久| 日本一区二区三区视频视频| 欧美精品三级在线观看| 91在线观看视频| 国产aⅴ综合色| 久久精品国产精品青草| 亚洲第一在线综合网站| 亚洲欧洲日韩女同| 国产色产综合产在线视频| 日韩欧美国产成人一区二区| 一本久久a久久精品亚洲| 国产精品1024久久| 蜜桃视频在线观看一区| 亚洲www啪成人一区二区麻豆| 国产精品久久久久久久久动漫| 精品国产1区二区| 日韩欧美一卡二卡| 这里只有精品电影| 欧美日韩在线播放一区| 99re在线视频这里只有精品| 国产超碰在线一区| 国产精品自拍毛片| 韩日av一区二区| 久久激五月天综合精品| 日韩va亚洲va欧美va久久| 天堂va蜜桃一区二区三区| 亚洲成人免费av| 天涯成人国产亚洲精品一区av| 一区二区三区不卡在线观看| 亚洲视频一区二区在线观看| 国产精品区一区二区三| 国产精品色哟哟|