Sunday, January 26, 2014

Arc GIS tool Development using Python (.Arcpy) Review, Tips

Arc GIS tool Development using Python (.Arcpy) Review, Tips


If you are new to Arcpy, or new to this ArcGIS tool development using python. This Blog is there for starter tips and contains the help material needed. I am writing this blog as when i was given a task to develop a python toolbox of ArcGIS i badly needed a blog like this. When i searched for the help i found the same results on Google i.e. ESRI help Resources page. They are Good but more detail was needed.

When i Started developing i faced two problems
1. Either i have to make it a .pyt toolbox
2. Or i have to make a .tbx toolbox

Now what are they ??
Well they are the two types of toolbox available in arctoolbox. i.e. i have to make one of these.
I then asked people a review about each and the difference between both of these.
I came to knew about that and i have written it in my previous blog also here.(click here to Open)
So i decided to go for .tbx.
I Read this book for the reference
Pimpler, E. 2013 Programming ArcGIS 10.1 with Python Cookbook.
Packt Publishing.


 
Few Things to Consider:
Python is a language that donot use brackets rather it is based upon indenting. You must be sure about its spacing, as with wrong spacing you would face such errors which will make you angry.

Environment to be used
Selecting Environment of development is based upon individual's ease and proficiency.
However, I used NotePad ++ for writing code and i tested it in ArcGIS through running it. I know some of you will think that if there is a built in utility in ArcGIS for python programming then why i used NotePad++ ?
Well there are certain pros and cons of this utility. I have discussed it in detail here in my previous blog.
you can check that by clicking here.




No comments:

Post a Comment