Wednesday, March 31, 2010

Progress Report 4/2

-Installed PythonWin (along with python 2.6.5)

-Installed Repast 3/ Agent Analyst. There are still a few problems with it though--the jar executable won't run, and the batch file needed to add a toolbox into arcMap (agent_analyst.bat) generates a 'path not found' error. Not sure if this is due to installation issues, or incompatibility with the our version of ArcGIS (Most current version for Repast/AA is 9.2, we're running version 9.3)


Notes to self:
-So right now I have PythonWin running, and it is able to import arcgisscripting. I tried creating a geoprocessing object, gp = arcgisscripting.create(9.2), which works fine as well. Now I just need to figure out how to link these PythonWin and ArcMap together (shouldn't be hard...), and demo data to practice with.

Helpful Links:

Course-worth's of material:
http://www.gis.usu.edu/~jlowry/python/

http://blogs.esri.com/Support/blogs/esritrainingmatters/archive/2009/09/10/want-to-create-python-scripts-try-the-f-c-p-m-t-method.aspx

-Python ArcObjects
http://www.pierssen.com/arcgis/misc.htm
http://www.pierssen.com/arcgis/upload/misc/python_arcobjects.pdf

-Agent Analyst
http://www.institute.redlands.edu/AgentAnalyst/
Latest version of this supports ArcGIS 9.2, we have 9.3 so there might be compatibility issues.

-Repast
http://www.institute.redlands.edu/AgentAnalyst/repast.aspx

-PythonWin (for scripting in ArcGIS)
Download: http://sourceforge.net/projects/pywin32/
"Getting Started with Writing Geoprocessing Scripts"
"Installing PythonWin"

-Python 2.6.5
Download: http://www.python.org/download/releases/2.6.5/
Needed for PythonWin


3/26 Meeting Recap

-For arcGIS in javascript, fine a file that stores information such as street numbers. They are generally called LTADD, LFADD (can be found on the PASDA website; spatial data info)

-Look into ArcMap Network Analyst
-Look into ArcGIS Repast Agent Analyst

-Pythonwin from sourceforge( for arcGIS)

-Find icon on top of little red hammer ->tool utilities ->create script
look for help menu in arcMap for help with arcpy (Python API for arcGIS)

-ksteif@sp2.upenn.edu (email for help)

Friday, March 26, 2010

Progress Report 3/26

So it seems like it is possible to generate routes in the ArgGIS javascript API as well as locate points on the map based on an address input. The API links are below:

Routing overview
RouteTask
Working with RouteTask
Locator

Some difficulties:
-It's difficult to determine what type of map to import due to the variety of maps available and the fact that they can only be viewed in ArcGlobe.
(http://server.arcgisonline.com/ArcGIS/rest/services)

-Still trying to figure out the syntax for RouteTask. (Will most likely be working on this next week)


Locator for ArcGIS:
http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&scriptID=16821

Thursday, March 25, 2010

3/19 Meeting Recap

-Try to connect the dots to actual geographical information on the map.
-See if additional data can be added to a map (ie. sidewalk)
-Check if ArcGIS has a route planner.

Thursday, March 4, 2010

3/5 Progress Report

Figured out how to animate the dot using a timer. Also, instead using a for-loop, I used setInterval:

function animate(){
var pt = oldLoc, i = 0, timer; // no global variables declared...

timer = setInterval(function () {
pt.y += 20;
pt.x += 20;
graphic.setGeometry(pt);
graphic.show();
//dojo.byId("info").innerHTML += "testingcheck";

if (i >= 1000) { // stop condition
clearInterval(timer);
}

i++;
}, 5);
}

And Happy Spring Break!