Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using ArcGIS Desktop.

I have surveyed points (sections). There will be 200 sections, each section 20-30 points. I want to create polylines (sections) out of the points. In order to do so, they have to be in right sequences (ordered from right to left or so) so program (ie. ETWizzard) would know how to connect the dots. Points in sections do have random IDs.

I want to write script, where logic is: assign points from .shp for each section to specific group (ie. S1, S2...). Then try to give names (sort) to points in section based on x,y.

Preferably, I want to do this in Python. I guess the most important question at this stage is: Is there a tool to select and group points based on the location/proximity or any one would hear about any similar solution? There has to be one, since sections are quite commonly used.

Any thoughts?

share|improve this question

Before getting to the Python part, be sure to review whether the Proximity Toolset and in particular the Point Distance, Near and Generate Near Table tools, may be use to you. The three tools mentioned currently require an ArcInfo license.

share|improve this answer
Thanks for the tip. What I am looking for, is rather something like R partitioning/clustering. Thought, what I belive R tool for Arc do divide points only to 12 groups (at least thats what I could do with R installed on my machine). I do know there is Point Aggregation in Arc 10, which could be of use, thought for the time being I am forced to use 9.3.1. – Tomek Jun 11 '11 at 20:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.