0

I am learning to write Python code for ArcGIS 10.2.

  1. I have some shp poly lines file, need to learn how to write multiple selection of those lines, even if a cursor of mouse pressed not exactly on line but near of it.
  2. By selecting one vertex, on the cross place of lines should be selected all the vertices.

Any ideas of algorithms and methods, or reading materials?

I am not familiar with programming algorithms, but I know Python.

4
  • (+1 so you can post a picture soon.) Since you are Python proficient, could you please post some pseudo code outlining what you are trying to do? I'm not really sure what you want for 2).
    – Paul
    Commented Aug 14, 2013 at 15:02
  • I am not a good python proficient, studied it by my self on codeacademy.com. For this task I didn't wrote anything yet, just trying to read arcgis 10.2 tutorial about how to write scripts there. A teacher gave me task to write a code for geometric data, by choosing the line (even if cursor wasn't exactly on the line but near of it) the line should be selected anyway. That was first task, it would be good if I could understood how to write it first.
    – DiGiS
    Commented Aug 14, 2013 at 15:26
  • Are you looking to emulate Select Features?
    – Paul
    Commented Aug 14, 2013 at 15:30
  • yes, but I need to learn write an algorithm for to do that kind of task. where I can see some examples maybe?
    – DiGiS
    Commented Aug 14, 2013 at 17:37

1 Answer 1

1

Since you expressed that you knew some Python, I think you'll want to design a Python add-in.

You can create a tool that gives you access to lots of functions that would be useful for selections such as

onRectangle()--Occurs when the mouse button is released after the rectangle is drawn on the map

2
  • thanks for all answeres!!! will check and try soon all the coments. In matlab i did learn how to write a function "if the pont in polygon or not", is that possible to do that kind of function for ArcGis, with the python help? That will be close to my task.
    – DiGiS
    Commented Aug 16, 2013 at 23:39
  • @DiGiS, yes you can; I've actually implemented a point in polygon function that I used in a workflow. I used this code.
    – Paul
    Commented Aug 17, 2013 at 0:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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