Jump to content

generating id sequentially


Recommended Posts

if I understand you correctly, I think you should change your coordinate systems somehow, put your origin in the top left, 

and make a new field YX (Y & X) of the centroid.

Normal coordinate systems are like the numbers below

Y

^

3

2

1

  1    2  3 > X

calculate X , Y for each centroid and then replace Y with ( Y - Max (Y))

0

-1

-2

  1    2  3

use ABS function to make Y values positive

0

1

2

    1  2  3

then in a new field calculate ( new Y & X)

  1    2  3

0 01 02 03

1 11 12 13

2 21 22 23

then sort this new field and make sequentially numbering with python codes in the arcgis 10. 

Link to comment
Share on other sites

@yousef2233

Exactly what you explained. bcoz of coordinates in arcgis parcels number which I m generating are in sequence but they starts from left bottom corner and goes to right. I just want to do it from upper left corner.

right now i m using script in field calculator. Got this script from ESRI forum.

Static rec As Long

Dim pStart As Long

Dim pInterval As Long

pStart = 1

pInterval = 1

If  (rec = 0)  Then

rec = pStart

Else

rec = rec + pInterval

End If

if you have any script please share.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist