Select to view content in your preferred language

Click/Populate Script for Modeling

888
2
05-01-2012 08:41 AM
raja
by
Emerging Contributor
GIS Gurus,

I am a baseline GIS user and unfortunately not too knowledgeable/savvy in scripts/advance programming.  I'm looking for a script (or any other advice you can provide) that will automate a rather tedious process that I've encountered...

I have a point feature class with over 1000 unique entries, each representing a node in a water network.  Each node has a Node ID associated with it.  I am creating a polygon feature class which contains areas contributing to each node.  Ideally, I would like a script which allows me to draw the polygon and then prompts me to click on which node the polygon is associated with.  This selection would in turn populate a field in the polygon feature class with the Node ID.

Does anybody have anything they can share that would accomplish this?  Or know where I can start?  Thanks in advance!
Tags (2)
0 Kudos
2 Replies
DarrenWiens2
MVP Alum
Have you looked into the Watershed tool? You'll need the DEM to create your flow direction surface, but I don't know of any other way to generate upstream polygons.
0 Kudos
raja
by
Emerging Contributor
I typically do use procedures similar to Watershed when I'm delineating stormwater subcatchments.  However, in this case, my polygons won't be terrain-dependent.  I have to draw them in based on service connections. 

So in other words, my procedure would ideally be:

1.  Activate the script (the basis or language of which I am requesting in this thread)
2.  Create a polygon feature (assume the feature class name is Shapefile_P)
3.  Script would prompt me to click on a node (which would be in a points feature class, Shapefile_N)
4.  Based on selection, script would read the associated NodeID from Shapefile_N and place this data in a field in Shapefile_P.
5.  repeat forever on end

Hopefully that provides a little more clarification on my end goal.
0 Kudos