全国高分辨率土地利用数据服务 土地利用数据服务 土地覆盖数据服务 坡度数据服务 土壤侵蚀数据服务 全国各省市DEM数据服务 耕地资源空间分布数据服务 草地资源空间分布数据服务 林地资源空间分布数据服务 水域资源空间分布数据服务 建设用地空间分布数据服务 地形、地貌、土壤数据服务 分坡度耕地数据服务 全国大宗农作物种植范围空间分布数据服务
多种卫星遥感数据反演植被覆盖度数据服务 地表反照率数据服务 比辐射率数据服务 地表温度数据服务 地表蒸腾与蒸散数据服务 归一化植被指数数据服务 叶面积指数数据服务 净初级生产力数据服务 净生态系统生产力数据服务 生态系统总初级生产力数据服务 生态系统类型分布数据服务 土壤类型质地养分数据服务 生态系统空间分布数据服务 增强型植被指数数据服务
多年平均气温空间分布数据服务 多年平均降水量空间分布数据服务 湿润指数数据服务 大于0℃积温空间分布数据服务 光合有效辐射分量数据服务 显热/潜热信息数据服务 波文比信息数据服务 地表净辐射通量数据服务 光合有效辐射数据服务 温度带分区数据服务 山区小气候因子精细数据服务
全国夜间灯光指数数据服务 全国GDP公里格网数据服务 全国建筑物总面积公里格网数据服务 全国人口密度数据服务 全国县级医院分布数据服务 人口调查空间分布数据服务 收入统计空间分布数据服务 矿山面积统计及分布数据服务 载畜量及空间分布数据服务 农作物种植面积统计数据服务 农田分类面积统计数据服务 农作物长势遥感监测数据服务 医疗资源统计数据服务 教育资源统计数据服务 行政辖区信息数据服务
Landsat 8 高分二号 高分一号 SPOT-6卫星影像 法国Pleiades高分卫星 资源三号卫星 风云3号 中巴资源卫星 NOAA/AVHRR MODIS Landsat TM 环境小卫星 Landsat MSS 天绘一号卫星影像
How to Update ArcIMS’s Shapefile Through
Internet
Mark G. Ma
04/13/2004
Generally, the shapefile used by ArcIMS is
locked by ArcIMS’s services – Monitor, I.E., you have to stop this service in
order to update the shapefile(s). According to ESRI’s suggestion, you have to
stop all three ArcIMS Services (Tasker, Monitor and Application) in this order
– Tasker => Monitor => Application. After having stopped all services,
overwrite/update the specific shapefile, and then restart those services in the
verse order. The weaknesses of this approach are: 1. Restarting the services
will affect all other Map Services; E.g. when a end user is accessing a GIS web
which uses “Forest” map service, he will get error during your restarting the
ArcIMS’s services. 2. The ArcIMS will be
corrupted easily if there are many MXD Map services created in the
Administrator.
After my having done some C code testing
and investigating, I found there is one feasible way to update Shapefile
without restarting the ArcIMS’s services even though the Shapefile is still
locked by Monitor. On the other hand, with VML/GML, the user can draw any kind
of shape for adding or editing or delete feature through the ArcIMS application
on the internet/intranet without uploading huge shapefiles to server and
overwriting the old shapefiles (.shp, .dbf and .shx).
How does my way work?
A component will be developed from VC++
/C#, running in an ASP/ASP.NET page, is deployed to open the locked shapefile
(the tricky to opening the locked file is the openflag used by Open API
function). If the user edited a shape, then the component updates the feature
attributes or spatial data; if the user added a new feature, then the component
inserts this new feature attributes and spatial data into shapefile; if the
user deleted a feature, then the component removes the feature record from the
shapefile. After the shapefiles (.shp, .dbf and .shx) have been refreshed, the
component will recreate the Map Services programmatically.
Processing Steps:
1.
Convert the points from pixels to x/y coordinates when user draws a
shape (It is controlled by VML/GML code) on the browser;
2.
Submit the shape updating request, a XML formatted text holding the x/y
coordinates and attribute(s), to an ASP/ASPX page which has a pre-developed
component;
3.
That component uses ADODB to update the locked .dbf file;
4.
The component use C/C++/C# code to update the locked .shx and .shp
files;
5.
If you use MXD as map service, remove all relative Map service(s) and
recreate the Map service(s) in order to refresh the .sbn and .sbx file; If you
use AXL, then just set "shared" to true for SHAPEWORKSPACE, the
server will update the sbn+sbx file automatically;
6.
Refresh browser;
Notes, ONLY ONE user can update shapefile
each time.
Here is the XML formatted request string
that is used to transfer updating request.
Request format:
<REQUEST>
<SERVICES username=xxxx password=xxx>
<SERVICE name=xxx axl=xxx
virtualserver=xxx imagetype=xxx />
</SERVICES >
<SHAPE filename=xxx action=xxx>
<FIELDS>
<FIELD name=xxx value=xxx isid=xxx />
</FIELDS>
<POINTS>x,y;x1,y1;...xn,yn|xx1,yy1,…xxn,yyn</POINTS>
</SHAPE>
</REQUEST>
Tag description:
1.
<SERVICES>
username – ArcIMS’s Administrator login
username;
password - ArcIMS’s Administrator login
password;
2.
<SERVICE>
name – Map Service name;
axl – Map Service full file name (.axl or
.mxd);
virtualserver – ArcIMS virtual server name,
one of the ImageServer1, QueryServer1, ExtractServer1, FeatureServer1,
GeocodeServer1 and ImageServerArcMap1;
imgtype – Output image type, one of GIF, JPG, PNG8 and PNG24;
3.
<SHAPE>
filename – Shapefile full file name;
action – Shapefile access type, one of “Add”, “Edit” and “Delete” feature;
4.
<FIELD>
name – Shape attribute name;
value – Shape attribute value;
isid – Indicates if this field is primary
ID. Value is either “true” or “false”. Default is “false”;
NOTE,
the objectID has been included so that the COM can know which record
will be updated when the “action” is “Edit” or “Delete”.
5.
<POINTS>
A list of the x/y coordinates. For multiple
parts of polyline or polygon, the delimiter of each part is “|”;