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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? linksde.java

?? 使用ArcEngine java api 開(kāi)發(fā)的通過(guò)arcsde讀取空間數(shù)據(jù)
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):

//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());
		}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91丝袜在线18| 激情综合色综合久久| 日本不卡123| 在线电影国产精品| fc2成人免费人成在线观看播放 | 久久精品一区二区三区av| 在线免费亚洲电影| 亚洲成人免费在线观看| 国产清纯白嫩初高生在线观看91 | 99国产精品久久久久久久久久久| 国产精品福利在线播放| 日韩一区二区影院| 在线视频欧美区| 99久久婷婷国产综合精品电影 | 久久精品国产77777蜜臀| 久久综合999| 99国产精品国产精品毛片| 亚洲精品高清在线| 国产午夜精品一区二区三区四区| av午夜精品一区二区三区| 久久99精品国产麻豆不卡| 午夜不卡av免费| 亚洲国产欧美一区二区三区丁香婷| 884aa四虎影成人精品一区| 色94色欧美sute亚洲线路一ni| 日本成人在线看| 中文字幕第一区第二区| 欧美大肚乱孕交hd孕妇| 9久草视频在线视频精品| 国产99久久久国产精品潘金 | 51精品秘密在线观看| 在线亚洲一区观看| 国内精品写真在线观看| 亚洲美女视频一区| 亚洲少妇最新在线视频| 国产精品久久久久久久久果冻传媒 | 一区二区三区视频在线看| 精品美女被调教视频大全网站| av中文字幕不卡| 不卡视频在线看| 成人av在线一区二区| av高清不卡在线| 97久久精品人人爽人人爽蜜臀| 久久精品国产99国产精品| 九九精品视频在线看| 国产一区二区三区电影在线观看| 亚洲永久免费视频| 偷窥国产亚洲免费视频| 日韩国产精品大片| 蜜桃传媒麻豆第一区在线观看| 国产精品灌醉下药二区| 亚洲精品视频免费观看| 一级做a爱片久久| 偷拍与自拍一区| 国产在线视频精品一区| 国产成人免费av在线| 欧美aa在线视频| 国模套图日韩精品一区二区| 亚洲精品免费在线| 天天综合天天做天天综合| 美国十次综合导航| 亚洲一区二区三区三| 免费精品视频最新在线| 国产乱子伦视频一区二区三区| 国产亚洲欧美中文| 日本一区二区三区久久久久久久久不| 在线播放91灌醉迷j高跟美女| 成人的网站免费观看| 在线观看视频一区二区| 日韩免费看的电影| 中文字幕欧美激情一区| 亚洲国产中文字幕| 久久精品国产在热久久| 国产suv一区二区三区88区| 欧美亚洲另类激情小说| 日韩视频免费观看高清完整版在线观看 | 欧美日韩dvd在线观看| 欧美一级理论片| 国产欧美日本一区视频| 亚洲精品美腿丝袜| 久久99精品久久久久久| 在线免费观看不卡av| 欧美videos中文字幕| 亚洲女人的天堂| 精品在线你懂的| 欧美性生活大片视频| 久久精品在线观看| 午夜成人免费视频| aaa国产一区| 久久综合精品国产一区二区三区| 26uuu亚洲综合色欧美| 亚洲欧美乱综合| 国产一区二区不卡| 欧美视频一区二区三区| 国产精品电影院| 精品一区二区影视| 欧美日韩专区在线| 日韩美女精品在线| 国产sm精品调教视频网站| 日韩一区二区中文字幕| 亚洲自拍另类综合| 成人av网站免费| 久久久99久久| 麻豆一区二区三区| 欧美日产国产精品| 亚洲一线二线三线久久久| 国产成人综合亚洲网站| 日韩久久久精品| 午夜精品影院在线观看| 91玉足脚交白嫩脚丫在线播放| 在线精品视频免费观看| 久久久精品中文字幕麻豆发布| 国产精品久久免费看| 热久久一区二区| 欧美日韩三级一区| 一区二区三区视频在线看| av亚洲精华国产精华精| 亚洲国产成人私人影院tom| 国产精品一线二线三线精华| 日韩亚洲欧美在线观看| 午夜视频久久久久久| 欧美在线一二三四区| 亚洲精品国产一区二区三区四区在线| 亚洲国产成人av| 欧美主播一区二区三区美女| 最近中文字幕一区二区三区| jizzjizzjizz欧美| 久久人人超碰精品| 国产一区二区三区四区在线观看 | 欧美理论在线播放| 亚洲国产精品久久人人爱蜜臀| 精品制服美女丁香| 26uuu精品一区二区三区四区在线| 国产精品卡一卡二卡三| 99久久免费视频.com| 欧美国产97人人爽人人喊| 国产成人福利片| 国产精品嫩草久久久久| 不卡的av在线| 亚洲六月丁香色婷婷综合久久 | 国产一区二区三区香蕉| 精品国产一区二区三区忘忧草| 日韩毛片视频在线看| 99re这里都是精品| 亚洲免费av观看| 欧美日韩国产欧美日美国产精品| 中文字幕乱码久久午夜不卡| 成人丝袜高跟foot| 亚洲视频 欧洲视频| 欧美性一二三区| 天天综合色天天| 日韩精品资源二区在线| 国产麻豆精品theporn| 国产精品久久久久永久免费观看| 狠狠色狠狠色综合系列| 国产性天天综合网| 色婷婷精品大视频在线蜜桃视频| 久久奇米777| 成人a区在线观看| 亚洲一区二区视频在线| 欧美一二三四在线| 成人精品国产一区二区4080| 国产精品久久久久久亚洲毛片 | xf在线a精品一区二区视频网站| 一区二区三区蜜桃网| 欧美一区二区三区视频| 国产精品综合视频| 伊人婷婷欧美激情| 日韩一区二区三区电影| 成人avav影音| 日韩成人dvd| 中国色在线观看另类| 欧美日韩国产天堂| 国产成人免费av在线| 亚洲自拍偷拍九九九| 精品国产区一区| 一本色道久久综合亚洲91| 蜜桃av一区二区在线观看| 国产精品国产三级国产aⅴ原创 | 欧美精品777| 国产不卡视频一区| 石原莉奈一区二区三区在线观看 | 91麻豆免费看| 美女免费视频一区二区| 国产精品久久久久永久免费观看 | 国产成人午夜视频| 亚洲黄色录像片| 国产亚洲精品bt天堂精选| 91福利在线导航| 国产v综合v亚洲欧| 日本麻豆一区二区三区视频| 国产精品久久久久9999吃药| 91精品国产高清一区二区三区蜜臀| 亚洲成人激情综合网| 欧美激情在线一区二区| 欧美高清dvd| 色偷偷88欧美精品久久久| 久久不见久久见中文字幕免费| 欧美大片在线观看| 欧美日韩亚洲综合一区|