ArcGIS Server 定位查詢(AO實現)

2022-02-22 20:23:45 字數 3523 閱讀 6123

using system;

using system.collections.generic;

using system.linq;

using system.runtime.serialization;

using system.servicemodel;

using system.text;

using system.web;

using esri.arcgis.geometry;

using esri.arcgis.carto;

using esri.arcgis.geodatabase;

using esri.arcgis.datasourcesgdb;

using esri.arcgis.datasourcesfile;

using system.io;

using esri.arcgis.server;

//注意: 如果更改此處的類名「service」,也必須更新 web.config 和關聯的 .svc 檔案中對「service」的引用。

public

class addressreverse: iaddressreverse

//獲取縣名稱

pfeatureworkspace = (ifeatureworkspace)factory.openfromfile(cityfilepath, 0);

pfeaturelayer = new featurelayerclass();

pfeaturelayer.featureclass = pfeatureworkspace.openfeatureclass(cunfilename);

pfeaturelayer.name = pfeaturelayer.featureclass.aliasname;

cunfeatureclass = pfeatureworkspace.openfeatureclass(cunfilename);

ifeaturecursor featurecursorcun = cunfeatureclass.search(spatialfilter, false);

ifeature resultfeaturecun = featurecursorcun.nextfeature();

if (resultfeaturecun != null)

//獲取鄉鎮名稱

pfeatureworkspace = (ifeatureworkspace)factory.openfromfile(cityfilepath, 0);

pfeaturelayer = new featurelayerclass();

pfeaturelayer.featureclass = pfeatureworkspace.openfeatureclass(xiangfilename);

pfeaturelayer.name = pfeaturelayer.featureclass.aliasname;

xiangfeatureclass = pfeatureworkspace.openfeatureclass(xiangfilename);

ifeaturecursor featurecursortown = xiangfeatureclass.search(spatialfilter, false);

ifeature resultfeaturetown = featurecursortown.nextfeature();

if (resultfeaturetown != null)

return result;}}

using system;

using system.collections.generic;

using system.linq;

using system.runtime.serialization;

using system.servicemodel;

using system.text;

using system.web;

using esri.arcgis.geometry;

using esri.arcgis.carto;

using esri.arcgis.geodatabase;

using esri.arcgis.datasourcesgdb;

using esri.arcgis.datasourcesfile;

using system.io;

using esri.arcgis.server;

//注意: 如果更改此處的類名「service」,也必須更新 web.config 和關聯的 .svc 檔案中對「service」的引用。

public

class addressreverse: iaddressreverse

//獲取縣名稱

pfeatureworkspace = (ifeatureworkspace)factory.openfromfile(cityfilepath, 0);

pfeaturelayer = new featurelayerclass();

pfeaturelayer.featureclass = pfeatureworkspace.openfeatureclass(cunfilename);

pfeaturelayer.name = pfeaturelayer.featureclass.aliasname;

cunfeatureclass = pfeatureworkspace.openfeatureclass(cunfilename);

ifeaturecursor featurecursorcun = cunfeatureclass.search(spatialfilter, false);

ifeature resultfeaturecun = featurecursorcun.nextfeature();

if (resultfeaturecun != null)

//獲取鄉鎮名稱

pfeatureworkspace = (ifeatureworkspace)factory.openfromfile(cityfilepath, 0);

pfeaturelayer = new featurelayerclass();

pfeaturelayer.featureclass = pfeatureworkspace.openfeatureclass(xiangfilename);

pfeaturelayer.name = pfeaturelayer.featureclass.aliasname;

xiangfeatureclass = pfeatureworkspace.openfeatureclass(xiangfilename);

ifeaturecursor featurecursortown = xiangfeatureclass.search(spatialfilter, false);

ifeature resultfeaturetown = featurecursortown.nextfeature();

if (resultfeaturetown != null)

return result;}}

Python Selenium 元素定位與查詢

find element by id 通過 id 查詢元素 find element by name 通過 name 查詢元素 find element by class name 通過class name 查詢元素 find element by xpath 通過xpath查詢元素 find el...

ArcGIS Server效能調整

arcgis server效能調整 arcgis server產品的強大功能往往給了有些使用者帶來一定的認識誤區。有些使用者會認為可以把c s程式的使用模式和資料照搬到arcgis server的應用系統中.arcgis server的應用是b s的應用,軟體角度來講涉及到資料庫,web serve...

arcgisserver資料遷移

參考位址 將備份檔案夾中的至少如下三個資料夾 config store services directories arcgissystem arcgisinput directories arcgisoutput 拷貝到新的站點,覆蓋新站點對應的資料夾 存放位址 usr local docker d...