欢迎来到天天文库
浏览记录
ID:16467591
大小:463.00 KB
页数:22页
时间:2018-08-10
《arcengine实现空间拓扑空间关联空间距离运算》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、【051】◀▶ArcEngine实现空间分析1.熟悉ITopologicalOperator接口(用于空间拓扑运算)的使用2.熟悉IRelationalOperator接口(用于空间关联运算)的使用3.熟悉IProximityOperator接口(用于空间距离运算)的使用●·●目录:A1…………ITopologicalOperator5接口·公共方法:·Buffer方法:·Boundary方法:·Clip方法:·ConvexHull方法:·Cut方法:·Union方法:·Intersect方法:·Difference方法:A2…………IRelationalOperat
2、or接口·公共方法:·Contains方法:·Overlaps方法:A3…………IPoint接口A4…………ICurve3接口A5…………ISegment接口A6…………ICircularArc接口---------------------------------------------------------------------------------------------------------写在前面:使用空间分析的时候,会提示这样的错误“异常来自HRESULT:0x80040215”,其原因就是:在使用ITopologicalOperator求交集等操作
3、的时候,有时会出现“HRESULT:0x80040215”这个异常,原来是空间参考不一样所致。因此只要SpatialReference属性设为同一空间参考就不会出现“HRESULT:0x80040215”异常。所以在进行空间分析之前,要保证所建立的shapefile文件具有相同的SpatialReference!---------------------------------------------------------------------------------------------------------╔════════╗╠════╣第A1个╠════
4、══════════════════════════════════════════════╣╚════════╝●·●ITopologicalOperator5接口:1.Providesadditionalinformationonnon-simplegeometries.【拓扑操作】 MembersDescriptionBoundary返回值:IGeometryTheboundaryofthisgeometry.Apolygon'sboundaryisapolyline.Apolyline'sboundaryisamultipoint.Apointormulti
5、point'sboundaryisanemptypointormultipoint.Buffer(doubledistance)返回值:IGeometryConstructsapolygonthatisthelocusofpointsatadistancelessthanorequaltoaspecifieddistancefromthisgeometry.通过给定距离,得到操作图形的缓冲区,返回得到缓冲区几何图形!但是这里面的距离很是蹊跷,同时实验发现,我写入0.01的时候,大约表示1km,所以大约是1:100000的关系!Clip(IEnvelopeclipper
6、Envelope)Constructstheintersectionofthisgeometryandthespecifiedenvelope.返回矩形部分的要素,直接作用在要素上面!ClipDenseConstructstheintersectionofthisgeometryandthespecifiedenvelope;densifieslinesinoutputcontributedbytheclippingenvelope.ClipExConstructstheintersectionofthisgeometryandthespecifiedenvelope
7、.ClipToDomainClipsthegeometrytothedomainofthespatialreference.Usefulforensuringthatbufferscanbefitwithinthespatialdomainofthefeatureclasstowhichtheyarebeingadded.ConstructUnionDefinesthisgeometrytobetheunionoftheinputs.MoreefficientforunioningmultiplegeometriesthancallingUnionr
此文档下载收益归作者所有