关于如何将FeatureClass中线相互打断的讨论 - split / break polylines at point intersections

http://forums.esri.com/Thread.asp?c=93&f=1384&t=94285

ArcGIS Desktop - Geodatabase Topology forum

split / break polylines at point intersecti...   stephen eckhardt May 23, 2003
Re: split / break polylines at point inters...   Bradley Chopp Sep 30, 2003
Re: split / break polylines at point inters...   stephen eckhardt Sep 30, 2003
Re: split / break polylines at point inters...   Bradley Chopp Sep 30, 2003
Re: split / break polylines at point inters...   stephen eckhardt Sep 30, 2003
Re: split / break polylines at point inters...   Gourkishore Tripathy Oct 06, 2003
Re: split / break polylines at point inters...   tracy trople Jan 15, 2004
Re: split / break polylines at point inters...   Valentina Boycheva Dec 20, 2004
Re: split / break polylines at point inters...   Valentina Boycheva Dec 20, 2004
Re: split / break polylines at point inters...   Christie Johnson Oct 04, 2004
Re: split / break polylines at point inters...   Adriano Gomes Dec 20, 2004
• Top Print Reply Alert Moderator   
Subject split / break polylines at point intersections 
Author stephen eckhardt 
Date May 23, 2003 
Message I thought this would be an easy task to accomplish automatically but I have yet to find a way to break lines where they intersect points. I'm using 8.3 and new features such as the planarize button are extremly helpful. But if they have that I'm not sure why they don't have a feature to do the same with lines and point. Does anyone know an easy way to accomplish this task.

I have about 4000 points that intersect lines where the lines now need to be broken. I know I can set up a topology rule to find all these areas but is there a way to break all the line at once without going through each one individually.

Any thoughts or suggestions?

  Stephen Eckhardt
GIS Analyst
Civil Solutions 
   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author Bradley Chopp 
Date Sep 30, 2003 
Message Stephen,
Did you ever figure out this problem? I am coming across the exact same situation. I need to break my watermain polyline Feature Class where water valves(point FC) intersect. Any suggestions? I sure hope you didnt have to do that by hand!

Thanks,
Brad

   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author stephen eckhardt 
Date Sep 30, 2003 
Message the answer i got from tech support was unless you write some specific code, yes you have to do it (split the lines at points)individually. 
  Stephen Eckhardt
GIS Analyst
Civil Solutions 
   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author Bradley Chopp 
Date Sep 30, 2003 
Message A gentleman in the Data Editing forum gave me this code to split all lines in one layer by all points in another. Note: It works funny while in an edit session. So, it is better to NOT Start Editing when using this code.

Brad

 
Sub SplitAll()Dim pMxDoc As IMxDocumentSet pMxDoc = ThisDocument

Dim pMap As IMapSet pMap = pMxDoc.FocusMap

Dim pPointL As IFeatureLayerSet pPointL = pMap.Layer(0) 'point layer to split lines with

Dim pLineL As IFeatureLayerSet pLineL = pMap.Layer(1) 'line layer to be split

Dim pLineFC As IFeatureClassSet pLineFC = pLineL.FeatureClass

Dim pPointFC As IFeatureClassSet pPointFC = pPointL.FeatureClass

Dim pPointCursor As IFeatureCursorSet pPointCursor = pPointFC.Search(Nothing, False)

Dim pPointF As IFeatureSet pPointF = pPointCursor.NextFeature

Do Until pPointF Is NothingDim pPoint As IPointSet pPoint = pPointF.Shape

Dim pSF As ISpatialFilterSet pSF = New SpatialFilter

With pSFSet .Geometry = pPoint.GeometryField = "Shape".SpatialRel = esriSpatialRelIntersectsEnd With

Dim pLineCursor As IFeatureCursorSet pLineCursor = pLineFC.Search(pSF, True)

Dim pLineF As IFeatureSet pLineF = pLineCursor.NextFeature

Do Until pLineF Is NothingDim pPolyCurve As IPolycurveSet pPolyCurve = pLineF.Shape

Dim pToPoint As IPointSet pToPoint = pPolyCurve.ToPoint

Dim pFromPoint As IPointSet pFromPoint = pPolyCurve.FromPoint

If (pFromPoint.x = pPoint.x And pFromPoint.y = pPoint.y) Then'do nothingElseIf (pToPoint.x = pPoint.x And pToPoint.y = pPoint.y) Then'do nothingElseDim pFeatureEdit As IFeatureEditSet pFeatureEdit = pLineFpFeatureEdit.Split pPointF.ShapeEnd IfSet pLineF = pLineCursor.NextFeatureLoop

Set pPointF = pPointCursor.NextFeature

Loop

End Sub
   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author stephen eckhardt 
Date Sep 30, 2003 
Message Thanks, I'll try it out. 
  Stephen Eckhardt
GIS Analyst
Civil Solutions 
   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author Gourkishore Tripathy 
Date Oct 06, 2003 
Message I am using the above code given by Prem, which I changed like this, keeping all other lines of code intact.

Set pLineCursor = pLineFC.Search(pSF, False)

One pre-condition is all your points (in point layer) must fall exactly on the polyines (in polyine layer). Otherwise, it will not split.

   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author tracy trople 
Date Jan 15, 2004 
Message Do you know if it is possible to preform the above task with an point event theme and a geographic network line layer? I've tried this code with my data and it doesn't recognize the point event layer. I have saved the point layer as feature layer and it bails out when it tries to select a line. The error message says something like "no current recor". 
   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author Valentina Boycheva 
Date Dec 20, 2004 
Message Tracy,

Did you check whether your point layer and geographic network layer are in the same projection? The spatial operators and interfaces will usually fail if this is not true - with or without generating an error message.

  Valentina Boycheva
Senior GIS Programmer/Analyst
http://www.jonesedmunds.com
 
   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author Valentina Boycheva 
Date Dec 20, 2004 
Message Deleted duplicate post. 
  Valentina Boycheva
Senior GIS Programmer/Analyst
http://www.jonesedmunds.com
 
   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author Christie Johnson 
Date Oct 04, 2004 
Message I ran the code, it says I have to be in an edit session. Istart an edit session, run the code, and it says there is no edit session in progress. Also, this line of code keep highlighting when I click debug:
pFeatureEdit.Split pPointF.Shape
I am doing something wrong, but what? 
   
• Top Print Reply Alert Moderator   
Subject Re: split / break polylines at point intersections 
Author Adriano Gomes 
Date Dec 20, 2004 
Message Can not execute this script too.

My (.mxd) have first shape point and second shape lines.
When execuute the scrist my Status Bar of ArcView "say" Create, Edit or Execute a VBA code...

What is this?

Thank.
Adriano

  Adriano Hantequeste Gomes
SESP-GEAC 

转载于:https://www.cnblogs.com/flyingfish/archive/2008/02/23/1078906.html

【转载】split / break polylines at point intersections相关推荐

  1. JS获取URL中GET的参数

    对于 URL,我们需要了解更多,因为我们的开发中可能会需要提取URL的部分信息来做不同的事情,事实上这也是与后端交互的一种独特的方式,当然这肯定是安全的,当请求被返回,关于 url 的信息就被记录在了 ...

  2. 【转贴】利用 Javascript 获取 URL 参数(适合IE、FF)

    . ... .../test.html?str=123456 如何用Javascript接收类似上面的url参数呢?这个问题网上有很多答案,看了看,主要有两种,一个是利用字符串的截取,另一种是利用正则 ...

  3. python os path isfile_Python path.isfile方法代码示例

    本文整理汇总了Python中os.path.isfile方法的典型用法代码示例.如果您正苦于以下问题:Python path.isfile方法的具体用法?Python path.isfile怎么用?P ...

  4. datetime的文本时间处理

    需求: 数据源: UserA,LocaltionA,2018-01-01 08:00:00,60 UserA,LocaltionA,2018-01-01 09:00:00,60 UserA,Local ...

  5. 淘宝评论数据抓取简记

    刚才趴在床上搞清楚了淘宝评论数据的抓取方法,在此记录,以备后用. 淘宝商品详情页面下方有如下script: <script>window.App = (window.App || {}); ...

  6. Javascript学习7 - 脚本化浏览器窗口

    原文:Javascript学习7 - 脚本化浏览器窗口 本节讨论了文档对象模型.客户端Javascript下Window中的各项属性,包括计时器.Location对象.Histroy对象.窗口.浏览器 ...

  7. CheckCode.js 前端验证码插件

    CheckCode.js 前端验证码插件 效果截图 插件使用方法 CheckCode.js 本插件的参考示例 效果截图 插件使用方法 // 在html页面引入CheckCode.js <scri ...

  8. Jquery Ajax调用aspx页面方法

    原文:Jquery Ajax调用aspx页面方法 在asp.net webform开发中,用jQuery ajax传值一般有几种玩法 1)普通玩法:通过一般处理程序ashx进行处理: 2)高级玩法:通 ...

  9. aspx后台调用前台jquery_Jquery Ajax调用aspx页面方法

    在asp.net webform开发中,用jQuery ajax传值一般有几种玩法 1)普通玩法:通过一般处理程序ashx进行处理: 2)高级玩法:通过aspx.cs中的静态方法+WebMethod进 ...

最新文章

  1. linux netlink 编程示例(二)应用层
  2. 成功解决Fatal error in launcher: Unable to create process using ‘“f:\program files\python\python36\pytho
  3. 教你如何使用redis分布式锁
  4. redis核心与实战(一)数据结构篇
  5. 露天影院网站_为什么要在露天工作?
  6. 实验四android开发基础
  7. KVM 介绍(6):Nova 通过 libvirt 管理 QEMU/KVM 虚机 [Nova Libvirt QEMU/KVM Domain]
  8. Failed to start component [StandardEngine[Catalina].StandardHost[localhost].错误解决方案
  9. 大型网站限流算法的实现和改造
  10. keras实战项目——CIFAR-10 图像分类
  11. clipse和IDEA快捷键对照表
  12. QuickFlowDesigner教程(4)如何用代码控制活动操作人
  13. hello程序代码python_翻译:《实用的Python编程》01_02_Hello_world
  14. 安卓源码下载的环境搭建
  15. 神舟刷蓝天w650dbios_神舟z6kp5D1记录一次艰难的刷蓝天bios,总算成功了
  16. 二元二次方程例题_二元二次方程的解法 二元二次方程例题
  17. 精选目标检测3——yolo1、yolo2、yolo3和SSD的网络结构汇总对比
  18. 中国象棋人工智能实现
  19. Java习题练习:杨辉三角
  20. vlog用什么来剪辑?分享1个剪辑生活vlog的技巧

热门文章

  1. 模板资源管理器的使用
  2. arcgis开发常用源码
  3. How to install OpenCV 3.x in Linux
  4. linux minicom usb串口
  5. 使用IDEA搭建第一个SpringBoot程序
  6. 《Create Your Successful Agile Project》书评与作者访谈
  7. 运维调试记录:Opendaylight铍版本开发环境搭建流程
  8. SQL基础--完整性约束
  9. 浏览器兼容编码与解码的问题
  10. NOIp #2010