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

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

?? linksde.java

?? 使用ArcEngine java api 開發的通過arcsde讀取空間數據
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:

//LinkSde.java
/*
 * ArcGIS Engine Developer Sample
 * Application Name: LinkSde.java
 */

package com.esri.arcgis.samples.geodatabase.accessingdata;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;

import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.filechooser.FileFilter;

import com.esri.arcgis.beans.map.IMapControlEvents2Adapter;
import com.esri.arcgis.beans.map.IMapControlEvents2OnAfterScreenDrawEvent;
import com.esri.arcgis.beans.map.IMapControlEvents2OnBeforeScreenDrawEvent;
import com.esri.arcgis.beans.map.IMapControlEvents2OnMouseDownEvent;
import com.esri.arcgis.beans.map.IMapControlEvents2OnMouseMoveEvent;
import com.esri.arcgis.beans.map.IMapControlEvents2OnMouseUpEvent;
import com.esri.arcgis.beans.map.MapControl;
import com.esri.arcgis.carto.esriViewDrawPhase;
import com.esri.arcgis.geometry.IEnvelope;
import com.esri.arcgis.geometry.Point;
import com.esri.arcgis.system.AoInitialize;
import com.esri.arcgis.system.EngineInitializer;
import com.esri.arcgis.system.esriLicenseProductCode;
import com.esri.arcgis.systemUI.esriControlsMousePointer;

import com.esri.arcgis.datasourcesGDB.SdeWorkspaceFactory;
import com.esri.arcgis.geodatabase.esriDatasetType;
import com.esri.arcgis.geodatabase.IFeatureWorkspace;
import com.esri.arcgis.geodatabase.IFeatureClass;
import com.esri.arcgis.geodatabase.IWorkspaceProxy;
import com.esri.arcgis.geodatabase.IFeatureWorkspaceProxy;
import com.esri.arcgis.geodatabase.IEnumDatasetName;
import com.esri.arcgis.geodatabase.IWorkspace;
import com.esri.arcgis.geodatabase.IWorkspaceFactory;
import com.esri.arcgis.geodatabase.esriVersionAccess;
import com.esri.arcgis.system.IPropertySet;
import com.esri.arcgis.system.PropertySet;
import com.esri.arcgis.carto.IFeatureLayer;
import com.esri.arcgis.carto.FeatureLayer;
import com.esri.arcgis.carto.ILayer;
import com.esri.arcgis.beans.map.MapControl;
import java.io.IOException;
import com.linar.jintegra.AutomationException;


/**
 * Description:This sample primarily demonstrates setting the MapControl's Rotation property, and
 *    secondly demonstrates setting the MapControl MouseIcon and MousePointer properties.<p/>
 *
 *    The file chooser dialog allows users to search and
 *    select map documents, which are validated and loaded into the MapControl using
 *    the CheckMxFile and LoadMxFile methods. The OnBeforeScreenDraw and OnAfterScreenDraw
 *    events are used to set the MousePointer while the display is refreshing due to Extent
 *    changes.
 *
 *    The OnMouseDown event uses either the TrackRectangle method to zoom in or the
 *    IScreenDisplay RotateStart method to start rotating around the centre of the
 *    display based upon the current mouse location. The OnMouseMove event uses the
 *    IScreenDisplay RotateMoveTo and RotateTimer methods to move and re-draw the
 *    display to the screen. The OnMouseUp event uses the IScreenDisplay RotateStop
 *    method to determine the angle of rotation. The MapControl's Rotation property
 *    is set to this angle, and the display is refreshed is reflect the change.
 *    Note: Creating custom cursor for rotation is not implemented.
 */



public class LinkSde extends JFrame implements ActionListener {

   JPanel topPanel = null;
   JPanel mainPanel = null;
   JPanel bottomPanel = null;

   JButton loadMapDocumentButton = null;
   JButton zoomToFullButton = null;
   JTextField pathField;

   String helpLabelString = "<HTML><BR> Left mouse button to zoomin <BR>" +
       "Right mouse button to rotate the display. <BR>" +
       "</HTML>";

   JLabel helpLabel = null;

   MapControl mapControl = null;
   Point mPoint = null;
   boolean rotating;


   public LinkSde() {
      super("Sde_shapefile Display");
      buildFrame();
      setSize(500, 400);
      setVisible(true);
      initControl();

   }

   /**This method builds 'this' frame as per the following diagram:
   *
   *   /----------------------------------------------------------\
   *   | JButton    BorderLayout.NORTH                            |
   *   | JTextField                                               |
   *   |----------------------------------------------------------|
   *   |                                                          |
   *   |                                                          |
   *   |                    MapControl                            |
   *   |                   BorderLayout.CENTER                    |
   *   |                                                          |
   *   |                                                          |
   *   |                                                          |
   *   |                                                          |
   *   |----------------------------------------------------------|
   *   |                  BorderLayout.SOUTH                      |
   *   |                                                          |
   *   | JButton          JLabel                                  |
   *   |                                                          |
   *   \----------------------------------------------------------/
   */


  public void buildFrame() {
     topPanel = new JPanel();
     mainPanel = new JPanel();
     bottomPanel = new JPanel();

     topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.Y_AXIS));
     mainPanel.setLayout(new BorderLayout());
     bottomPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 0));

     loadMapDocumentButton = new JButton("Load Shapefile from Sde");
     loadMapDocumentButton.addActionListener(this);

     pathField = new JTextField();
     pathField.setEditable(false);
     pathField.setAlignmentX(0);
     pathField.setAlignmentY(0);
     topPanel.add(loadMapDocumentButton);
     topPanel.add(Box.createVerticalStrut(5));
     topPanel.add(pathField);
     topPanel.add(Box.createVerticalStrut(5));

     zoomToFullButton = new JButton("ZoomToFullButton");
     zoomToFullButton.addActionListener(this);

     helpLabel = new JLabel(helpLabelString);
     //bottomPanel.add(zoomToFullButton);
     //bottomPanel.add(helpLabel);

     mapControl = new MapControl();
     mainPanel.add(topPanel, BorderLayout.NORTH);
     mainPanel.add(mapControl, BorderLayout.CENTER);
     mainPanel.add(bottomPanel, BorderLayout.SOUTH);
     mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));

     getContentPane().add(mainPanel, BorderLayout.CENTER);


  }

  /** Initilizes control
   *  creates and intializes member variables
   * */


  public void initControl() {
   try {
      //Disbale the MapControl
      mapControl.setEnabled(false);
      mPoint = new Point();
      rotating = false;
      //Add map control listener
      mapControl.addIMapControlEvents2Listener(new MapControlListener());
   }
   catch (IOException ex) {
      System.out.println("Exception in initControl : " + ex);
      ex.printStackTrace();
   }

  }

 /**@see java.awt.event.ActionListener#actionPerformed(ActionEvent event)
   * @param event
   */

  public void actionPerformed(ActionEvent event) {
     /*if(event.getSource() == loadMapDocumentButton) {
        try {
            loadFile();
         }
         catch (IOException ex) {
            System.out.println("Exception in loadMapDocumentButton#actionPerformed" + ex);
            ex.printStackTrace();
         }
     }

     if(event.getSource() == zoomToFullButton) {
        try {
           mapControl.setExtent(mapControl.getFullExtent());
        }
        catch (IOException ex) {
           System.out.println("Exception in zoomToFullButton#actionPerformed" +
                              ex);
           ex.printStackTrace();
        }
     }*/
     try{
			IWorkspaceFactory sdeWsf = new SdeWorkspaceFactory();
			
			//IWorkspaceProxy wsp;
			//ESRI.ArcGIS.Geodatabase.IFeatureWorkspace fwsp;

			IPropertySet ps = new PropertySet();
			ps.setProperty("Server","zfy");
			ps.setProperty("Instance","esri_sde");
			ps.setProperty("Database","sde");
			ps.setProperty("user","sde");
			ps.setProperty("password","sde");
			ps.setProperty("version", "sde.DEFAULT");

			//wsp = (IWorkspaceProxy)sdeWsf.open (ps,0); 
			IFeatureWorkspace fwsp = new IFeatureWorkspaceProxy(sdeWsf.open (ps,0));
			
			//--------------------------------------------------
			//this.AddFromWorkSpace (wsp);
			
			//IEnumDatasetName enumDSN = wsp.getDatasetNames (esriDatasetType.esriDTFeatureClass);
	        
			//String name=enumDSN.next().name;

			//IWorkspace fwsp = wsp;
			//IFeatureWorkspace fwsp = new IFeatureWorkspaceProxy(sdeWsf.open (ps,0));
				
			IFeatureLayer flayer = new FeatureLayer();
			IFeatureClass  fc = fwsp.openFeatureClass ("sde.SDE.USHIGH");

			flayer.setFeatureClassByRef(fc);

			ILayer layer= (ILayer) flayer;
			//layer.name = name;
			mapControl.addLayer (layer,0);

			//this.AddExtentToArray (this.axMapControl1.Extent );
		}
		catch(Exception ex){
			System.out.println("Exception22:"+ex.getMessage());
		}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久精品国产免费观看同学| 精品国产免费人成在线观看| 久久福利视频一区二区| 中文字幕一区二区5566日韩| 欧美一区在线视频| av在线这里只有精品| 麻豆国产一区二区| 亚洲一区二区三区四区五区黄| 欧美电影免费观看高清完整版在线观看| 92精品国产成人观看免费| 裸体歌舞表演一区二区| 亚洲高清一区二区三区| 中文字幕中文在线不卡住| 精品国产凹凸成av人导航| 欧美视频三区在线播放| 99综合电影在线视频| 国产毛片精品一区| 免费观看在线色综合| 日一区二区三区| 亚洲精品一二三| 国产精品你懂的| 久久久www成人免费毛片麻豆 | 国产剧情在线观看一区二区| 午夜影院在线观看欧美| 亚洲自拍偷拍av| 亚洲精品国产一区二区精华液| 国产欧美va欧美不卡在线| 日韩欧美高清dvd碟片| 337p亚洲精品色噜噜| 在线这里只有精品| 91色视频在线| 色综合天天综合网天天狠天天 | 91香蕉国产在线观看软件| 国产精品一二三在| 韩国一区二区视频| 国产在线精品国自产拍免费| 韩国欧美一区二区| 国产精品综合在线视频| 国产精品白丝jk白祙喷水网站| 精品一区二区在线看| 久久激情五月婷婷| 国产精品影视在线| 成人精品gif动图一区| 不卡一区在线观看| 91久久免费观看| 精品视频999| 69久久99精品久久久久婷婷| 91精品国产综合久久香蕉麻豆| 欧美男女性生活在线直播观看| 欧美日韩一本到| 91精品国产91久久久久久最新毛片 | 亚洲成人自拍偷拍| 亚洲成人777| 美女网站色91| 国产精品一区专区| 成人动漫中文字幕| 欧美色区777第一页| 91精品婷婷国产综合久久 | 日韩伦理电影网| 一区二区三区蜜桃网| 五月激情综合网| 韩国三级中文字幕hd久久精品| 国产精品一区在线| 91久久人澡人人添人人爽欧美| 欧美精品aⅴ在线视频| 日韩精品在线看片z| 国产精品视频一二三区| 一区二区高清视频在线观看| 美国十次综合导航| 成人小视频免费在线观看| 在线观看日韩国产| 日韩午夜在线观看视频| 中文字幕av一区 二区| 亚洲福利视频三区| 国产乱子轮精品视频| 一本色道久久综合亚洲aⅴ蜜桃| 欧美网站大全在线观看| 精品播放一区二区| 一区二区三区小说| 国内外成人在线| 色噜噜狠狠一区二区三区果冻| 69av一区二区三区| 欧美国产日本视频| 午夜精品在线视频一区| 国产乱一区二区| 欧美日本一区二区在线观看| 久久久99精品久久| 亚洲国产一区在线观看| 成人网页在线观看| 91精品国产免费| 亚洲欧美一区二区三区国产精品| 日本不卡一区二区三区| 成人av免费在线| 日韩女同互慰一区二区| 亚洲黄色在线视频| 国产成人精品午夜视频免费| 欧美色精品天天在线观看视频| 欧美激情中文不卡| 美女视频一区二区| 欧美视频一区二区三区四区 | 精品免费99久久| 亚洲精品国产精华液| 国产一区二区三区观看| 欧美日韩成人一区| 亚洲日本va在线观看| 国产寡妇亲子伦一区二区| 7777女厕盗摄久久久| 亚洲日本在线观看| 风间由美一区二区三区在线观看| 91精品国产91久久综合桃花| 亚洲午夜在线观看视频在线| 99久久精品免费看国产| 国产亚洲1区2区3区| 麻豆国产91在线播放| 9191久久久久久久久久久| 夜夜嗨av一区二区三区中文字幕 | 亚洲精品成a人| 不卡av电影在线播放| 国产亚洲欧美日韩在线一区| 久久精品国内一区二区三区| 91麻豆精品国产91久久久资源速度| 一区二区三区日韩精品视频| av一二三不卡影片| 中文字幕在线一区| www.亚洲在线| 国产精品电影一区二区三区| 成人手机在线视频| 国产精品家庭影院| av一区二区久久| 亚洲人成网站在线| 一本大道久久精品懂色aⅴ| 国产精品免费av| 成人h精品动漫一区二区三区| 久久久蜜臀国产一区二区| 国产在线不卡视频| 国产视频在线观看一区二区三区| 九色综合国产一区二区三区| 精品三级在线看| 国产一区二区剧情av在线| www欧美成人18+| 国产成人精品一区二区三区四区| 久久久久久久久伊人| 国产大陆亚洲精品国产| 国产日韩欧美麻豆| 波多野结衣在线aⅴ中文字幕不卡| 中文字幕在线观看不卡| 色婷婷精品久久二区二区蜜臂av| 亚洲男人天堂一区| 欧美日韩精品一区二区三区| 污片在线观看一区二区| 欧美大肚乱孕交hd孕妇| 国产成人亚洲精品狼色在线| 中文字幕av一区二区三区免费看| 91一区二区三区在线播放| 亚洲一区二区三区爽爽爽爽爽| 欧美精品久久99久久在免费线 | 久久成人羞羞网站| 久久色在线观看| 成人a级免费电影| 亚洲乱码国产乱码精品精的特点 | 欧美一区二区大片| 国产麻豆精品在线| 最新高清无码专区| 欧美日韩和欧美的一区二区| 美女网站在线免费欧美精品| 欧美国产综合色视频| 日本大香伊一区二区三区| 欧美aa在线视频| 国产欧美日韩综合| 欧美精品久久天天躁| 国产成人精品影院| 午夜欧美在线一二页| 久久影院电视剧免费观看| 91亚洲国产成人精品一区二区三| 日韩精品午夜视频| 国产丝袜在线精品| 69久久99精品久久久久婷婷 | 成人天堂资源www在线| 亚洲mv在线观看| 日本一区二区免费在线| 欧美日韩视频第一区| 国产精品自在欧美一区| 亚洲一区二区视频在线观看| 久久九九久久九九| 欧美精品一卡二卡| 处破女av一区二区| 日本最新不卡在线| 亚洲品质自拍视频网站| 久久色.com| 欧美丰满美乳xxx高潮www| 99精品在线免费| 国产一区二区h| 天天综合日日夜夜精品| 中文字幕 久热精品 视频在线| 91精品免费观看| 91成人免费在线视频| 国产v综合v亚洲欧| 日韩电影免费在线| 一区二区三区国产精品| 国产精品三级av|