ArcGIS Python Window or PyScripter ?
Developing a custom Geo-Processing tool / toolbox, Question arises that what software / environment to use??
Well Coding in Arcgis utility gives the advantage of telling the error at the runtime as you write code, it is good for those who are experts and write complete code in one go, but for starters i recommend using wither Pyscripter, IDLE, NotePad or NotePad++. You can write whole code in this and then check it in ArcGIS. How ?
You can create the toolbox by right clicking in folder where you want your toolbox to be created in Arc Catalog and then choose your required toolbox (pyt or tbx)
(for Difference in pyt and tbx click here)
After Creating the tool right click that and click on add script and Add the Script file which you previously created (Note Pad file containing code and saved as .py)
Now if the script file contains an error it will appear a red mark on tool icon in arc catalog.
Also you can check it by right clicking the tool and clicking Check Syntax It will tell the error and its line number.
This blog is to help the beginners who are facing the problems in any kind of GIS related development Desktop Development, Web Applications, Tool development etc
Showing posts with label GIS python development. Show all posts
Showing posts with label GIS python development. Show all posts
Sunday, January 26, 2014
Monday, January 20, 2014
Difference between pyt and tbx
Difference between pyt and tbx
.Pyt and .Tbx are the two types of ArcGIS tool box developed in python.
Difference of Both is written below.
.tbx
- It is the old version of toolbox.
- There is a graphical interface for defining parameters
- Have to Manually Generate text file, i.e. manually have to write code in a text file and save it as .py format. Well I used NotePadd++ for this.
- Have to write stand alone script.
.pyt
- It is the new version of toolbox.
- Even Parameters are defined by coding. there is a positive and negative side of this, positive side is that for the programmers Control is in your hand Define parameters the way you want. where as for newbies this might be difficult, as this is new version of toolbox so not much resources are there on web.
- Less limitations are there.
- Interface coding is done in the same file as part of the whole program.
Note: The upper description is not mentioned by any official website, I have learned this by working with both.
Subscribe to:
Posts (Atom)

