Skip to content
Browse files

add county subdivisions

  • Loading branch information...
1 parent 18997a4 commit a56e7939aa0c53b5a0c8470926048837002bad72 @JoeGermuska JoeGermuska committed Jun 23, 2011
Showing with 32 additions and 2 deletions.
  1. +32 −2 censusweb/data/shapefiles/definitions.py
View
34 censusweb/data/shapefiles/definitions.py
@@ -105,7 +105,7 @@ def __call__(self, feature):
# Geographic extents which the boundary set encompasses
'domain': 'United States',
# Last time the source was checked for new data
- 'last_updated': date(2011, 05, 31),
+ 'last_updated': date(2011, 06, 23),
# A url to the source of the data
'href': 'http://www.census.gov/cgi-bin/geo/shapefiles2010/main',
# Notes identifying any pecularities about the data, such as columns that were deleted or files which were merged
@@ -135,7 +135,37 @@ def __call__(self, feature):
# Geographic extents which the boundary set encompasses
'domain': 'United States',
# Last time the source was checked for new data
- 'last_updated': date(2011, 05, 31),
+ 'last_updated': date(2011, 06, 23),
+ # A url to the source of the data
+ 'href': 'http://www.census.gov/cgi-bin/geo/shapefiles2010/main',
+ # Notes identifying any pecularities about the data, such as columns that were deleted or files which were merged
+ 'notes': '',
+ # Encoding of the text fields in the shapefile, i.e. 'utf-8'. If this is left empty 'ascii' is assumed
+ 'encoding': 'latin-1'
+ # SRID of the geometry data in the shapefile if it can not be inferred from an accompanying .prj file
+ # This is normally not necessary and can be left undefined or set to an empty string to maintain the default behavior
+ #'srid': ''
+ },
+ # This key should be the plural name of the boundaries in this set
+ 'County Subdivisions': {
+ # Path to a shapefile, relative to /data
+ 'file': 'COUSUB/',
+ # Generic singular name for an boundary of from this set
+ 'singular': 'County Subdivision',
+ # Should the singular name come first when creating canonical identifiers for this set?
+ # (e.g. True in this case would result in "Neighborhood South Austin" rather than "South Austin Neighborhood")
+ 'kind_first': False,
+ # Function which each feature wall be passed to in order to extract its "external_id" property
+ # The utils module contains several generic functions for doing this
+ 'ider': simple_namer(['GEOID10']),
+ # Function which each feature will be passed to in order to extract its "name" property
+ 'namer': simple_namer(['NAME10']),
+ # Authority that is responsible for the accuracy of this data
+ 'authority': 'U.S. Census Bureau, Geography Division',
+ # Geographic extents which the boundary set encompasses
+ 'domain': 'United States',
+ # Last time the source was checked for new data
+ 'last_updated': date(2011, 06, 23),
# A url to the source of the data
'href': 'http://www.census.gov/cgi-bin/geo/shapefiles2010/main',
# Notes identifying any pecularities about the data, such as columns that were deleted or files which were merged

0 comments on commit a56e793

Please sign in to comment.
Something went wrong with that request. Please try again.