奶头挺立呻吟高潮av全片,成人试看120秒体验区,性欧美极品v,A片高潮抽搐揉捏奶头视频

JAVA認(rèn)證

Java實(shí)現(xiàn)點(diǎn)在線添加的方法

時(shí)間:2024-10-15 14:09:17 JAVA認(rèn)證 我要投稿
  • 相關(guān)推薦

Java實(shí)現(xiàn)點(diǎn)在線添加的方法

  Java如何實(shí)現(xiàn)點(diǎn)在線添加,下面YJBYS小編為大家整理了相關(guān)資料,希望對(duì)你有所幫助。內(nèi)容如下:

  public void addPoint(MapEvent event){

  AGSLocalMapResource res = (AGSLocalMapResource)this.webContext.getResources()。get(“ags0”);

  try{

  // 建立一個(gè)工作空間工廠對(duì)象,并設(shè)置它的參數(shù)信息。

  SdeWorkspaceFactory sdewf = (SdeWorkspaceFactory)res.getServerContext()。createObject(SdeWorkspaceFactory.getClsid());

  PropertySet pset = (PropertySet)res.getServerContext()。createObject(PropertySet.getClsid());

  pset.setProperty(“SERVER”, “gxk”);// 服務(wù)器名稱

  pset.setProperty(“INSTANCE”, “5151”);// 實(shí)例名

  pset.setProperty(“USER”, “sa”); // SDE數(shù)據(jù)表空間的用戶名

  pset.setProperty(“PASSWORD”, “sa”);// 密碼

  pset.setProperty(“VERSION”, “DBO.gxk”);// SDE數(shù)據(jù)的版本

  Workspace iws =(Workspace) sdewf.open(pset, 0);

  WebPoint screenPoint = (WebPoint)event.getWebGeometry();

  WebMap mapctrl = event.getWebContext()。getWebMap();

  WebPoint mappnt =WebPoint.toMapPoint(screenPoint, mapctrl.getCurrentExtent(), (int)mapctrl.getWidth(), (int)mapctrl.getHeight());

  Geometry soapgeo=AGSUtil.toAGSGeometry(mappnt);

  String soapString = com.esri.adf.web.ags.util.AGSUtil.serializeStub(soapgeo);

  soapString = soapString.replaceAll(“xsi:type=\”soapenc:Array\“”, “”);

  IPoint mypoint = (IPoint)AGSUtil.deserializeArcObject(soapString, res.getServerContext());

  IWorkspaceEdit wse = (IWorkspaceEdit)iws;

  wse.startEditing(false);

  wse.startEditOperation();

  IFeatureClass featureclass = iws.openFeatureClass(“sde.DBO.Respt”);

  IFeature feature = featureclass.createFeature();

  feature.setShapeByRef((IGeometry)mypoint);

  feature.setValue(feature.getFields()。findField(“NAME”), “kkk”);

  feature.store();

  wse.stopEditOperation();

  wse.stopEditing(true);

  this.webContext.refresh();

  }catch(Exception e){

  e.printStackTrace();

  }

  }

  刷新地圖后不能顯示新加入的數(shù)據(jù)的原因是:由于在開始編輯時(shí)新打開了一個(gè)工作空間,該工作空間并不是瀏覽器中看到地圖所在的工作空間。

【Java實(shí)現(xiàn)點(diǎn)在線添加的方法】相關(guān)文章:

Java如何實(shí)現(xiàn)點(diǎn)的在線添加08-31

java實(shí)現(xiàn)web服務(wù)器的方法09-26

關(guān)于JAVA實(shí)現(xiàn)httpClient的實(shí)例11-05

Java多線程的實(shí)現(xiàn)方式11-03

使用JavaScript實(shí)現(xiàn)Java的List功能08-09

PHP關(guān)聯(lián)鏈接添加方法05-12

實(shí)現(xiàn)硬盤raid的方法08-19

堆的javascript實(shí)現(xiàn)方法06-29

Word添加水印方法08-06

給Excel表格數(shù)據(jù)添加符號(hào)的方法09-01

主站蜘蛛池模板: 石狮市| 大洼县| 克拉玛依市| 武冈市| 德江县| 英山县| 汝南县| 云霄县| 盐边县| 开原市| 青州市| 东方市| 黑龙江省| 紫金县| 琼结县| 隆尧县| 龙江县| 桦川县| 武乡县| 宁安市| 阜平县| 西宁市| 柳江县| 芦溪县| 云和县| 呼图壁县| 察雅县| 称多县| 岐山县| 兰西县| 新田县| 获嘉县| 利川市| 衡阳市| 眉山市| 来安县| 无锡市| 三江| 隆化县| 新竹县| 仁怀市|