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!

Friday, February 26, 2010

2/25 Update and Meeting Recap

Progress Report:
*Since ThinkMap is deeply integrated into GCAT, it would be extremely difficult to replace it with FreeMind. Currently we're waiting on a 30-day trial version of ThinkMap.

*ArcMap can only render animations over the entire map. ArcScene can animate object layers along a set path (seen here) but it requires environmental data which can be difficult to generate.

*Using the ArcGIS Javascript API seems to be the best solution now. The user is able to generate markers on a map and move it. Animation still needs some work.

*The PowerPoint presentation can be downloaded here.
*The dragPoint file can be downloaded here.



To Do:
*Figure out how to animate the markers using a timer in javascript.





Monday, February 22, 2010

2/19/2010 Meeting Recap

Notes:
*Since we're still in the process of getting a license of ThinkMap, Norm suggested looking into FreeMind, which is an entity-relation map and happens to be free.

*My idea of using coordinates on the ArcMap map display to display data didn't go through--Zooming in would cause the image to pixelate/degenerate, which is why we need an actual object/objects on the map.

*Random tidbits: Lockheed Martin has developed a software called CultureSim that we might use in place of GCAT should it prove to be insufficient.

To-Do:
*Figure out if ThinkMap can be replaced by FreeMind
*Which databases have we been given to pull all the components of GCAT together.
*Find out if it is possible to animate marker objects in ArcMap.

Edit/Update: Joe heard back from ThinkMap. Seems like they're not willing to give us a free license so that's most likely a no-go.