« Second Pass at Analytics X Prize | Main | Evaluating Spatial Predictions »
Monday
Jan112010

Philadelphia Data Resources

The following online sources have proved useful in retrieving spatial data for the Philadelphia area:

I used the following curl command to pull geocoded incident data from the last link above:

curl -H 'Content-type:application/json' -H 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -c cookie 
-d '{"crimeclass":"10","from":'$s',"to":'$e',"maxBounds":"2568448,138838,2850283,362526","curExtentArea":19468800000}' 
http://citymaps.phila.gov/CrimeMap/MappingServices.asmx/GetCrimePtsByCriteria

I had to store a cookie in the file 'cookie' which I captured using Firebug.  Also, $s and $e are date variables specifying the start and end date for the query.

In a followup post, I will discuss how I am using PostgreSQL/PostGIS and Quantum GIS to view and transform the data found on the aforementioned sites into a format useful for analysis.

 

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>