Case Study: Providing a query API to vector GIS data.

Assumption: We have a variety of shapefiles, or other such GIS layers. We want people to be able to

  • Provide a location (or address), and get back those attributes of the features that intersect the location
  • Provide a spatial query (eg bounding box) and get back all features and associated geographic boundaries that intersect the bounding box
  • Provide any feature attribute, and get back the entire feature, including the full geographic coordinates

Recommended Software:

  • FeatureServer? (for the data interchange)
  • A Geocoder (geopy) to turn addresses into locations

Plan:

  • to do *

Results:

Query all attributes by address:

  • Currently only returns XML/GeoRSS - this should be integrated into a difference interface soon. But for now it does let you parse out any attributes you may want by address.
  • Base Service URL:
  • Example Queries

Query for full feature by attribute or spatial extent: