Community and City and Tract Boundaries in San Diego County

Combines geographic boundary files for communities, cities and tracts in San Diego County.

sandiegodata.org-geography-2018-13

Resources | Packages | Documentation| Contacts| References| Data Dictionary

Resources

Documentation

This package combines three SANGIS datasets for communities and cities in San Diego county into a single file, in the communities resource, with Census tract definitions for San Diego count. The source files are:

  • Municipal boundaries, of incorporated cities and the rest of the county
  • Communities in unincorporated county areas
  • Communities in San Diego.
  • Census tract boundaries for 2016
  • Census places and counties

In addition to simply combining these four boundary files, the dataset also links tracts into the other three regions, in the tracts_links and tracts_all_regions datasets. Using these datasets, you can get all of the tracts in Escondido, or all of the tracts in the San Diego community of Clairemont. The join is performed by containment of the Internal Point, which is defined by the census for each tract. Because tract boundaries are not always coincident with municipal boundaries, there are many cases where the collection of tracts for a city or community will have a different boundary than the actual region. Smaller, less densely populated regions, like San Marcos, or particuarly afected.

The tracts_links dataset is probably the most useful. It joins tracts to regions, and has two sets of columns, for city and community. This dataset includes every tract in the county, and each appears only once. If a tract is included in both a city and community, then there is a name and code for both the city columns and the community columns. Regions not in a city have a city value of “County” and a city code of “CN”.

The communities dataset, has a type field to distinguish the types of area, which is one of:

  • city
  • county_community
  • sd_community
  • community

The tracts_all_regions dataset may have more than one row for each tract; the tract will appear once for each of the four region types that it is in, but no tract is in more than 2 regions. For instance, a tract in a community of San Diego will appear twice, once for the community, and once for the City.

Versions

  1. Added county outline
  2. Broke out seperate files for non-tract geographies.

Contacts

Packages

Accessing Packages in Metapack

import metapack as mp
# ZIP Package
pkg = mp.open_package('http://library.metatab.org/sandiegodata.org-geography-2018-13.zip')
# CSV Package
pkg = mp.open_package('http://library.metatab.org/sandiegodata.org-geography-2018-13.csv') 

resource = pkg.resource('resource_name') # Get a resource
df = resource.dataframe() # Create a pandas Dataframe
gdf = resource.geoframe() # Create a GeoPandas GeoDataFrame

Data Dictionary

tracts | tract_boundaries | tract_communities | community_boundaries | places | places_boundaries | combined_boundaries | sd_county_boundary

tracts

Column NameData TypeDescription
statefpintegerState FIPS code
countyfpintegerCounty FIPS code
tractceintegerCensus tract code
geoidstringTract geoid, ACS format
namenumberCensus tract name, this is the census tract code converted to an integer or integer plus two-digit decimal if the last two characters of the code are not both zeros.
namelsadstringTranslated legal/statistical area description and the census tract name
mtfccstringMAF/TIGER feature class code (G5020)
funcstatstringFunctional status
alandintegerLand area
awaterintegerWater area
intptlatnumberLatitude of the internal point
intptlonnumberLongitude of the internal point

tract_boundaries

Column NameData TypeDescription
geoidstringTract geoid, ACS format
geometrystringTract boundary geometry

tract_communities

Column NameData TypeDescription
geoidstringTract Geoid
city_namestringName of the city the tract is in.
city_codestringCode for the city the tract is in.
community_namestringCommunity name
community_cpcodeintegerCommunity planning code
community_codestringShort community Mnemonic code.

community_boundaries

Column NameData TypeDescription
typestringRecord type: city, sd_community, county_community, county
namestringCommunity name
name_codestringShort name code
citystringCity the community is in, or the county.
link_codestringUnique code for linking records
geoidstringPlace geoid for cities
geometrystringBoundary geometry, in WKT format.

places

Column NameData TypeDescription
statefpinteger
placefpinteger
placensinteger
geoidstring
namestring
namelsadstring
lsadinteger
classfpstring
pcicbsastring
pcinectastring
mtfccstring
funcstatstring
alandinteger
awaterinteger
intptlatnumber
intptlonnumber

places_boundaries

Column NameData TypeDescription
geoidstring
geometrystring

combined_boundaries

Column NameData TypeDescription
typestring
namestring
name_codestring
citystring
link_codestring
geoidstring
geometrystring

sd_county_boundary

Column NameData TypeDescription
idinteger
statefpinteger
countyfpinteger
countynsinteger
affgeoidstring
geoidinteger
namestring
lsadinteger
alandinteger
awaterinteger
geometrystring

References

Urls used in the creation of this data package.

  • censusgeo://2016/5/CA/140. Tract boundary shapes
  • file:data/community-acronyms.csv. Acronyms for communities
  • shape+file:data/Promise_Zone_SD.zip. Promise zone boundary
  • shape+file:data/Municipal_Boundaries.zip. Converted source of boundaries for cities in San Diego county
  • shape+file:data/Community_Plan_CN.ZIP. Converted source of boundaries for communities in unincorporated San Diego county
  • shape+file:data/Community_Plan_SD.zip. Converted source of boundaries for communities in the city of San Diego.
  • metapack+http://library.metatab.org/census.gov-counties-2017-2.csv#counties. County boundaries shapes
  • censusgeo://CA/place. Census Defined Places

Last Modified 2019-03-02T19:18:39