I work in ArcGIS. I want create a network with a point feature and a line feature. And I need that my point feature being on the lines feature. So I should do Snap point to line. But do not know how do it in ArcGIS, and then automate it with code for this in VBA. Please help me, thanks.
|
Snapping points to a line using ArcGIS geoprocessing toolsAssumptions:You have a point layer and a line layer. You want a points to be snapped to the line layer. Instructions1. Use the
|
Thanks for this answer. It is a clear method that I can immediately try. I am able to work with the results to get what I need. – cwb Feb 27 '12 at 19:04 |
|
ArcGIS 9.3.x: In the ArcGIS interface, use the snapping environment within the Editing toolbar. Programmatically, you can find a number of snapping-based Visual Basic examples at the ESRI resources page (note: personally, I like to use the old page. I think it's easier to find stuff. VB resources). See for instance, VB code to "bulk snap": "The Bulk Snap command will take selected features and attempt to snap them based on the current settings of the Editor snap environment." ArcGIS 10:
|
||||
|
|
|
Assumption you have the Network Analysis Extension for ArcGIS (9.3) Sp3: Your 'Network' Creating a Network >Arcatalog (you must understand the TYPE of network you are trying to build first!) http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Creating_a_network_dataset You can automate this with ModelBuilder (Python) http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Add_Locations_(Network_Analyst) {linear unit} {source {snap type};source {snap type}...} point and line Allows you to specify which sources in your network dataset will be searched when finding locations, as well as specifying what portions of geometry will be used. |
|||
|
|
|
You can do it with Hawths Analysis Tool. You can download it here. I found it here for ArcGis 9.3 but I warn you that I did not test it. If you have time you can try it. |
|||||
|
|
There are plenty of tools available on Arcscripts. See this search I cannot vouch for it, but this one looks like it fits your requirements? Let me know if you have problems "installing" it or using it. |
|||
|
|
