亚洲欧美第一页_禁久久精品乱码_粉嫩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精品黄色片免费大全| 亚洲精品在线免费播放| 91精品国产黑色紧身裤美女| 国产欧美久久久精品影院| 亚洲成人你懂的| 国产99久久久国产精品潘金网站| 欧美图区在线视频| 国产精品久久久久久亚洲伦| 美国毛片一区二区三区| 日本久久电影网| 国产午夜精品久久久久久久| 三级久久三级久久| aaa国产一区| 久久色成人在线| 三级久久三级久久久| 色系网站成人免费| 中文成人综合网| 蜜臀91精品一区二区三区| 色综合久久综合中文综合网| 国产日产精品一区| 国产在线看一区| 日韩一区二区精品葵司在线| 亚洲18影院在线观看| 91啪亚洲精品| 亚洲欧洲精品天堂一级| 国产超碰在线一区| 久久久久久9999| 精品一二三四在线| 欧美一区二区啪啪| 日本成人中文字幕在线视频 | 高清国产一区二区| 精品成人一区二区| 激情综合五月婷婷| 精品国产乱码久久久久久老虎| 天天av天天翘天天综合网色鬼国产| 日本黄色一区二区| 一区二区三区视频在线看| 97se亚洲国产综合在线| 亚洲美女免费在线| 在线免费av一区| 亚洲午夜免费视频| 欧美体内she精视频| 香蕉成人伊视频在线观看| 欧美日韩亚洲丝袜制服| 五月天久久比比资源色| 日韩欧美色综合网站| 黄色日韩网站视频| 国产日本欧美一区二区| 成人高清视频免费观看| 亚洲视频一区二区在线| 日本韩国欧美一区二区三区| 亚洲一线二线三线视频| 欧美精品1区2区3区| 捆绑调教美女网站视频一区| 精品国产伦一区二区三区观看体验| 国产一区二区三区免费观看| 欧美激情一区二区三区不卡 | 丁香天五香天堂综合| 国产欧美精品国产国产专区| 暴力调教一区二区三区| 一个色综合网站| 欧美一级二级在线观看| 国产一区二区三区在线观看精品| 欧美激情一区二区在线| 欧美中文一区二区三区| 蜜乳av一区二区三区| 国产欧美日韩综合| 在线看不卡av| 国产在线国偷精品产拍免费yy| 国产欧美日本一区二区三区| 在线观看亚洲一区| 久久国产精品色| 亚洲狼人国产精品| 欧美一区二区三区四区视频| 国产精品91一区二区| 亚洲高清免费观看| 久久久久久99精品| 欧美久久久久久蜜桃| 成人白浆超碰人人人人| 日韩综合小视频| 日韩一区在线看| 久久综合狠狠综合久久综合88| 色综合网站在线| 国产剧情一区二区| 亚洲成人免费在线观看| 国产精品久久久久影视| 日韩欧美国产综合一区 | 精品人伦一区二区色婷婷| 91老司机福利 在线| 国产在线视视频有精品| 亚洲第一激情av| 亚洲色图在线视频| 久久新电视剧免费观看| 欧美裸体bbwbbwbbw| 91网页版在线| 国产成人av在线影院| 蜜桃av一区二区在线观看| 亚洲成人精品在线观看| 国产精品少妇自拍| 欧美精品一区二区在线播放| 在线播放中文字幕一区| 91极品美女在线| 99视频在线观看一区三区| 国产乱妇无码大片在线观看| 精品一区二区日韩| 蜜桃视频在线观看一区| 日韩精品亚洲专区| 性做久久久久久久免费看| 亚洲视频图片小说| ...av二区三区久久精品| 国产亚洲欧美日韩在线一区| 精品免费视频.| 日韩精品一区二区三区视频播放 | 欧美另类videos死尸| www.色精品| 麻豆一区二区三| 日韩高清中文字幕一区| 亚洲精品第1页| 亚洲欧洲精品一区二区三区 | 国产精品1区2区3区| 黄色小说综合网站| 日本一区中文字幕| 亚洲综合成人在线视频| 中文字幕制服丝袜成人av| 国产欧美日韩在线看| 精品国产123| 欧美一个色资源| 精品视频免费看| 欧美丝袜第三区| 久久国产视频网| 岛国精品在线观看| 国产乱码精品一品二品| 韩国av一区二区| 精品亚洲成a人在线观看| 日韩av一二三| 午夜免费欧美电影| 午夜伦理一区二区| 日韩av电影天堂| 日本不卡免费在线视频| 免费一区二区视频| 视频一区国产视频| 免费在线观看成人| 精品亚洲porn| 国产精品一二三| 大胆亚洲人体视频| 成人丝袜18视频在线观看| 成人一区在线看| 91蜜桃婷婷狠狠久久综合9色| 99久久久国产精品| 日本精品一级二级| 高清av一区二区| 欧美丝袜自拍制服另类| 日韩欧美专区在线| 国产人成一区二区三区影院| 国产精品美日韩| 国产精品水嫩水嫩| 五月天久久比比资源色| 久久99久久99小草精品免视看| 韩国成人福利片在线播放| 国产91色综合久久免费分享| 国产一区在线不卡| 在线免费精品视频| 欧美v国产在线一区二区三区| wwwwww.欧美系列| 亚洲欧洲日产国码二区| 日韩国产精品久久| 国产精品一区不卡| 日本道在线观看一区二区| 欧美二区在线观看| 久久精品视频免费观看| 亚洲欧美二区三区| 国产乱人伦偷精品视频免下载| 91亚洲男人天堂| 欧美videos中文字幕| 中文字幕一区不卡| 视频在线在亚洲| 99精品一区二区| 日韩三级免费观看| 亚洲免费观看高清| 亚洲二区在线观看| www.性欧美| 欧美不卡123| 亚洲3atv精品一区二区三区| 国产一区二区调教| 欧美电影免费观看高清完整版在 | 国产精品久久久久久久久晋中 | 91九色02白丝porn| 精品免费日韩av| 一区二区高清免费观看影视大全| 老司机精品视频线观看86| 91成人在线精品| 中文字幕制服丝袜一区二区三区| 蜜臀av性久久久久蜜臀aⅴ | 亚洲免费观看高清完整版在线观看 | 丰满白嫩尤物一区二区| 日韩美女视频在线| 免费高清视频精品| 日韩美女视频在线| 欧洲一区二区三区在线| 99国产精品99久久久久久|