arcgis10.2下载 10.2 intersect在哪里

OpenLayers调用ArcGIS Server发布的WFS服务
编辑:www.fx114.net
本篇文章主要介绍了"OpenLayers调用ArcGIS Server发布的WFS服务",主要涉及到OpenLayers调用ArcGIS Server发布的WFS服务方面的内容,对于OpenLayers调用ArcGIS Server发布的WFS服务感兴趣的同学可以参考一下。
OpenLayers调用ArcGIS Server发布的WFS服务
原创: 蔡建良
一. 开发环境
1) Openlayers2.13+arcgis server9.3
2) WFS地图空间参考EPSG: 4326也可以是EPSG:102113
3) Openlayers底图空间参考EPSG: 900913
二. 发布地图服务
1) 采用ArcMap制作mxd地图文档。
2) 采用ArcCatalog发布地图服务,将wfs打勾。
部分操作截图如下:
3) 测试WFS服务:
http://lx-server/arcgis/services/Yangdi/MapServer/WFSServer?request=GetCapabilities&service=WFS
三. 采用OpenLayers.Layer.Vector调用。该方法为POST方式。
WFS1.1.0支持服务端重投影:
new OpenLayers.Layer.Vector("一类样地",{
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0",
srsName: "EPSG:102113",
url: "http://lx-server/arcgis/services/Yangdi/MapServer/WFSServer",
featureNS: "",
featureType: "plotpoint_Liaoning_Intersect",
maxFeatures: "10",
geometryName: "Shape"
}),
projection: new OpenLayers.Projection("EPSG:102113"),
visibility: false
})
WFS1.0.0不支持服务端重投影,这边是客户端重投影:
new OpenLayers.Layer.Vector("一类样地",{
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
version: "1.0.0",
srsName: "EPSG:4326",
url: "http://lx-server/arcgis/services/Yangdi/MapServer/WFSServer",
featureNS: "",
featureType: "plotpoint_Liaoning_Intersect",
maxFeatures: "10",
geometryName: "Shape"
}),
projection: new OpenLayers.Projection("EPSG:4326"),
visibility: false
})
四. 采用OpenLayers.Layer.WFS调用。该方法为GET方式。
注意:使用该方法必须引入deprecated.js 文件。
new OpenLayers.Layer.WFS(
"一类样地",
"http://lx-server/arcgis/services/Yangdi/MapServer/WFSServer?",
{
request: 'GetFeature',
typename: "plotpoint_Liaoning_Intersect",
maxfeatures: 10,
extractAttributes: false,
version: "1.1.0",
srsName: "EPSG:102113"
},
{
projection: new OpenLayers.Projection("EPSG:900913"),
isBaseLayer: false,
extractAttributes: false,
visibility: false
}
)
五. OpenLayers调用WFS服务跨域问题解决
1) 在IIS中部署Openlayers开发的网站。
2) 安装python。并让IIS支持python脚本。部分操作截图:
3) 将openlayes自带的proxy.cgi扩展名改为proxy.py,并做如下修改。
(1) 打开proxy.py文件,将开头第一行内容
#!/usr/bin/env python (这是linux的路径)
改为windows路径:
#!C:/Python25/python.exe &u
(2) 在allowedHosts数组中添加要访问的跨域网址lx-server。
allowedHosts = ['www.openlayers.org', 'openlayers.org',
'', 'world.freemap.in',
'prototype.openmnnd.org', 'geo.openplans.org',
'sigma.openplans.org', 'demo.opengeo.org',
'www.openstreetmap.org', '',
'v2.suite.opengeo.org', 'v-swe.uni-muenster.de:8080',
'vmap0.tiles.osgeo.org', 'www.openrouteservice.org',
'maps.wien.gv.at','lx-server&]
4) 在网页脚本中加入如下代码:
OpenLayers.ProxyHost = "proxy.py?url=";
六.测试
在浏览器上运行网页:http://localhost/ yangdi/index.html
效果如下:
Wfs服务返回数据格式为:
&wfs:FeatureCollection xmlns:anhuiplot="http://jane/arcgis/services/anhuiplot/MapServer/WFSServer" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jane/arcgis/services/anhuiplot/MapServer/WFSServer http://localhost/arcgis/services/anhuiplot/MapServer/WFSServer?request=DescribeFeatureType%26version=1.1.0%26typename=anhuiproj http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"&
&gml:boundedBy&...&/gml:boundedBy&
&gml:featureMember&...&/gml:featureMember&
&gml:featureMember&...&/gml:featureMember&
&gml:featureMember&...&/gml:featureMember&
&gml:featureMember&...&/gml:featureMember&
&gml:featureMember&...&/gml:featureMember&
&gml:featureMember&...&/gml:featureMember&
&gml:featureMember&...&/gml:featureMember&
&gml:featureMember&...&/gml:featureMember&
&gml:featureMember&...&/gml:featureMember&
&gml:featureMember&...&/gml:featureMember&
&/wfs:FeatureCollection&
---其中featureMember-----------------
&gml:featureMember&
&anhuiplot:anhuiproj gml:id="F3__10"&
&anhuiplot:OBJECTID&10&/anhuiplot:OBJECTID&
&anhuiplot:Shape&
&gml:Point&
&gml:pos&.1439479&/gml:pos&
&/gml:Point&
&/anhuiplot:Shape&
&anhuiplot:PLOT_NO&6975&/anhuiplot:PLOT_NO&
&/anhuiplot:anhuiproj&
&/gml:featureMember&
经测试返回10个要素,数据大小为45K。这是由于字段太多造成。可将wfs服务的数据源不需要的字段删除,留下关键字段。最后留下3个字段,返回数据的大小变为4K。
本文标题:
本页链接:扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
arcgis中叠加分析工具(intersect、identity……)介绍
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口ARCGIS空间叠加分析_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
ARCGIS空间叠加分析
阅读已结束,如果下载本文需要使用
想免费下载本文?
把文档贴到Blog、BBS或个人站等:
普通尺寸(450*500pix)
较大尺寸(630*500pix)
你可能喜欢}

我要回帖

更多关于 arcgis engine 10.2 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信