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

My script uses a search cursor to evaluate polyline coordinates and build polygons based on those coordinates. The script works well, but I am curious as to whether anyone knows the order (if there is any) that polygons are built. I know that the output polygon feature class reads the rows (and their coordinates) in order, but I do not know if they build them in order. I could see the polygons being built according to which order they were read, or based on size, etc. Any input would be appreciated.

Thanks in advance.

share|improve this question
Isn't your question "does a search cursor read rows in any order"? Since that is how you are building the polygons. And the answer to that would be "it depends". – blah238 Apr 24 '13 at 17:07
My question isn't necessarily that. I would assume that a search cursor reads the rows in order based on and FID or ObjectID field for reasons of operational simplicity. However, because the polygons created are only derived from information gathered by the search cursor (not related to them by any attribute or ID field) I am wondering if they take that same course of action when being built and exported or if they are built/exported at random. – Zach Apr 24 '13 at 17:50
I think you'll need to post your code because I'm not getting the full picture. How exactly are you creating the polygons? – blah238 Apr 24 '13 at 20:56
Also what prompted you to ask this question? I.e. is there some other problem you are trying to solve that this ties into? – blah238 Apr 24 '13 at 20:58

Your Answer


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

Browse other questions tagged or ask your own question.