Browse files

Add tyler-census-age map project.

  • Loading branch information...
1 parent fc3b8da commit 65c73d70c5736649acaeba28dc86ea2d8df199ee @onyxfish onyxfish committed Jan 19, 2012
View
2 fabfile.py
@@ -96,7 +96,7 @@ def _rewrite_paths():
"""
contents = None
- with open('%(map)s/%(map)s.mml' % env, 'r') as f:
+ with open('%(map)s/project.mml' % env, 'r') as f:
contents = f.read()
shapefile_path = os.path.join('..', 'shapefiles')
View
7 tyler-census-age/config.yml
@@ -0,0 +1,7 @@
+min-latitude: 32.1
+max-latitude: 32.7
+min-longitude: -95.6
+max-longitude: -94.9
+min-zoom: 11
+max-zoom: 15
+buffer: 256
View
16 tyler-census-age/dots.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+from englewood import DotDensityPlotter
+
+def get_data(feature):
+ return {
+ 'under18': feature.GetFieldAsInteger(feature.GetFieldIndex('under18')),
+ 'under25': feature.GetFieldAsInteger(feature.GetFieldIndex('under25')),
+ 'under40': feature.GetFieldAsInteger(feature.GetFieldIndex('under40')),
+ 'under65': feature.GetFieldAsInteger(feature.GetFieldIndex('under65')),
+ 'gte65': feature.GetFieldAsInteger(feature.GetFieldIndex('gte65')),
+ }
+
+dots = DotDensityPlotter('PG:dbname=tylercensus host=localhost', 'age_shapes', 'PostgreSQL', 'PG:dbname=tylercensus host=localhost', 'age_dots', get_data, 1)
+dots.plot()
+
View
1 tyler-census-age/p12_county/.~lock.DEC_10_SF1_P12.csv#
@@ -0,0 +1 @@
+,onyxfish,comanche.local,19.01.2012 21:24,file:///Users/onyxfish/Library/Application%20Support/LibreOffice/3;
View
6,816 tyler-census-age/p12_county/DEC_10_SF1_P12.csv
6,816 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
9 tyler-census-age/p12_county/DEC_10_SF1_P12.txt
@@ -0,0 +1,9 @@
+P12
+SEX BY AGE
+
+Universe: Total population
+
+NOTE: For information on confidentiality protection, nonsampling error, and definitions, see http://www.census.gov/prod/cen2010/doc/sf1.pdf.
+
+Source: U.S. Census Bureau, 2010 Census.
+
View
26 tyler-census-age/p12_county/aff_download_readme.txt
@@ -0,0 +1,26 @@
+
+This zip file contains a number of documents containing materials related to the table which you have downloaded. These include:
+ 1. aff_download_readme.txt (this file)
+ 2. <table_id>.csv (data file)
+ 3. <table_id>_ann.csv (annotation file, if applicable)
+ 4. <table_id>.txt (notes file)
+
+Naming convention:
+
+ The table file name is based on the Table Id.
+ For Geographic Comparison Tables (GCT) and Geographic Ranking Tables (GRT), the table file name is based on Table ID and Stub.
+
+
+Document descriptions:
+
+ Data file:
+ file name: <table_id>.csv
+ Includes the tabular data for the table.
+
+ Annotation file:
+ file name: <table_id>_ann.csv
+ This file contains cell annotations, which could be simple jam values, flag symbols, or codes of more complex cell annotations that replace the values in the data file. This file has a parallel structure to the data file, but it includes only those lines that correspond to the lines from the data file that have annotations. If there are no lines to be included in the annotation file, then the whole annotation file is omitted. A cell annotation starts with '$' or 'ECONF$', and the string that follows the '$' char is the jamming string or flag symbol. For example, '$1000+' is a simple cell annotation that would replace the content of the cell with the string '1000+'. A cell annotation that does not start with '$', such as 'ECONF$', is a code that is described in the notes file (see below).
+
+ Notes file:
+ file name: <table_id>.txt
+ This file contains the head notes, footnotes and the description of the cell annotations occurring in the data file (simple jamming cell annotations are excluded).
View
6,813 tyler-census-age/p12_county/clean.csv
6,813 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
111 tyler-census-age/project.mml
@@ -0,0 +1,111 @@
+{
+ "bounds": [
+ -95.6,
+ 32.1,
+ -94.9,
+ 32.7
+ ],
+ "center": [
+ -95.3148508071898,
+ 32.28662471327077,
+ 15
+ ],
+ "format": "png",
+ "interactivity": false,
+ "minzoom": 11,
+ "maxzoom": 15,
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "Stylesheet": [
+ "style.mss"
+ ],
+ "Layer": [
+ {
+ "geometry": "polygon",
+ "name": "water",
+ "id": "water",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "water",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus"
+ }
+ },
+ {
+ "geometry": "linestring",
+ "name": "tiger_lines",
+ "id": "tiger_lines",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "tiger_lines",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus",
+ "id": "tiger_lines",
+ "project": "tyler-census-age",
+ "srs": null
+ }
+ },
+ {
+ "name": "age_dots",
+ "id": "age_dots",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "age_dots",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus",
+ "id": "age_dots",
+ "project": "tyler-census-age",
+ "srs": null
+ }
+ },
+ {
+ "geometry": "polygon",
+ "name": "tyler",
+ "id": "tyler",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "tyler2010",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus"
+ }
+ },
+ {
+ "geometry": "polygon",
+ "name": "smith",
+ "id": "smith",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "smith2010",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus"
+ }
+ }
+ ],
+ "description": "",
+ "attribution": "",
+ "legend": ""
+}
View
108 tyler-census-age/setup.sh
@@ -0,0 +1,108 @@
+HERE=`pwd`
+DATABASE=tylercensus
+HOST=localhost
+
+ogr2ogr -f "PostgreSQL" PG:"host=$HOST dbname=$DATABASE" -nln blocks2010 -nlt multipolygon -t_srs EPSG:900913 -overwrite tl_2010_48423_tabblock10
+
+ogr2ogr -f "PostgreSQL" PG:"host=$HOST dbname=$DATABASE" -nln tiger_lines -nlt multilinestring -t_srs EPSG:900913 -overwrite tl_2010_48423_edges
+
+ogr2ogr -f "PostgreSQL" PG:"host=$HOST dbname=$DATABASE" -nln water -nlt multipolygon -t_srs EPSG:900913 -overwrite texas_water
+
+ogr2ogr -f "PostgreSQL" PG:"host=$HOST dbname=$DATABASE" -nln tyler2010 -nlt multipolygon -t_srs EPSG:900913 -overwrite tyler
+
+ogr2ogr -f "PostgreSQL" PG:"host=$HOST dbname=$DATABASE" -nln smith2010 -nlt multipolygon -t_srs EPSG:900913 -overwrite smith
+
+psql -q $DATABASE -c "DROP TABLE p12;"
+
+CREATE_P12='
+CREATE TABLE p12 (
+ geoid VARCHAR(24) NOT NULL,
+ geoid2 VARCHAR(24) NOT NULL,
+ name VARCHAR(66) NOT NULL,
+ "D001" INTEGER NOT NULL,
+ "D002" INTEGER NOT NULL,
+ "D003" INTEGER NOT NULL,
+ "D004" INTEGER NOT NULL,
+ "D005" INTEGER NOT NULL,
+ "D006" INTEGER NOT NULL,
+ "D007" INTEGER NOT NULL,
+ "D008" INTEGER NOT NULL,
+ "D009" INTEGER NOT NULL,
+ "D010" INTEGER NOT NULL,
+ "D011" INTEGER NOT NULL,
+ "D012" INTEGER NOT NULL,
+ "D013" INTEGER NOT NULL,
+ "D014" INTEGER NOT NULL,
+ "D015" INTEGER NOT NULL,
+ "D016" INTEGER NOT NULL,
+ "D017" INTEGER NOT NULL,
+ "D018" INTEGER NOT NULL,
+ "D019" INTEGER NOT NULL,
+ "D020" INTEGER NOT NULL,
+ "D021" INTEGER NOT NULL,
+ "D022" INTEGER NOT NULL,
+ "D023" INTEGER NOT NULL,
+ "D024" INTEGER NOT NULL,
+ "D025" INTEGER NOT NULL,
+ "D026" INTEGER NOT NULL,
+ "D027" INTEGER NOT NULL,
+ "D028" INTEGER NOT NULL,
+ "D029" INTEGER NOT NULL,
+ "D030" INTEGER NOT NULL,
+ "D031" INTEGER NOT NULL,
+ "D032" INTEGER NOT NULL,
+ "D033" INTEGER NOT NULL,
+ "D034" INTEGER NOT NULL,
+ "D035" INTEGER NOT NULL,
+ "D036" INTEGER NOT NULL,
+ "D037" INTEGER NOT NULL,
+ "D038" INTEGER NOT NULL,
+ "D039" INTEGER NOT NULL,
+ "D040" INTEGER NOT NULL,
+ "D041" INTEGER NOT NULL,
+ "D042" INTEGER NOT NULL,
+ "D043" INTEGER NOT NULL,
+ "D044" INTEGER NOT NULL,
+ "D045" INTEGER NOT NULL,
+ "D046" INTEGER NOT NULL,
+ "D047" INTEGER NOT NULL,
+ "D048" INTEGER NOT NULL,
+ "D049" INTEGER NOT NULL
+);
+'
+echo $CREATE_P12 | psql -h $HOST -q $DATABASE
+
+psql -h $HOST -q $DATABASE -c "COPY p12 FROM '${HERE}/p12_county/clean.csv' WITH CSV HEADER;"
+
+psql -h $HOST -q $DATABASE -c "DROP TABLE age;"
+
+AGE='
+CREATE TABLE age AS
+SELECT
+ geoid2 as geoid,
+ "D003" + "D004" + "D005" + "D006" + "D027" + "D028" + "D029" + "D030" AS under18,
+ ("D003" + "D004" + "D005" + "D006" + "D027" + "D028" + "D029" + "D030")::float / NULLIF("D001"::float, 0) AS under18pct,
+ "D007" + "D008" + "D009" + "D010" + "D031" + "D032" + "D033" + "D034" AS under25,
+ ("D007" + "D008" + "D009" + "D010" + "D031" + "D032" + "D033" + "D034")::float / NULLIF("D001"::float, 0) as under25pct,
+ "D011" + "D012" + "D013" + "D035" + "D036" + "D037" AS under40,
+ ("D011" + "D012" + "D013" + "D035" + "D036" + "D037")::float / NULLIF("D001"::float, 0) as under40pct,
+ "D014" + "D015" + "D016" + "D017" + "D018" + "D019" + "D038" + "D039" + "D040" + "D041" + "D042" + "D043" AS under65,
+ ("D014" + "D015" + "D016" + "D017" + "D018" + "D019" + "D038" + "D039" + "D040" + "D041" + "D042" + "D043")::float / NULLIF("D001"::float, 0) as under65pct,
+ "D020" + "D021" + "D022" + "D023" + "D024" + "D025" + "D044" + "D045" + "D046" + "D047" + "D048" + "D049" AS gte65,
+ ("D020" + "D021" + "D022" + "D023" + "D024" + "D025" + "D044" + "D045" + "D046" + "D047" + "D048" + "D049")::float / NULLIF("D001"::float, 0) as gte65pct
+FROM p12;
+'
+echo $AGE | psql -h $HOST -q $DATABASE
+
+psql -h $HOST -q $DATABASE -c "DROP TABLE age_shapes;"
+
+CREATE_AGE_SHAPES="
+CREATE TABLE age_shapes AS
+SELECT
+ age.*,
+ blocks2010.wkb_geometry
+FROM age, blocks2010
+WHERE age.geoid = blocks2010.geoid10;
+"
+echo $CREATE_AGE_SHAPES | psql -h $HOST -q $DATABASE
+
View
BIN tyler-census-age/smith/smith.dbf
Binary file not shown.
View
1 tyler-census-age/smith/smith.prj
@@ -0,0 +1 @@
+GEOGCS["GRS 1980(IUGG, 1980)",DATUM["D_unknown",SPHEROID["GRS80",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
View
1 tyler-census-age/smith/smith.qpj
@@ -0,0 +1 @@
+GEOGCS["GRS 1980(IUGG, 1980)",DATUM["unknown",SPHEROID["GRS80",6378137,298.257222101],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]
View
BIN tyler-census-age/smith/smith.shp
Binary file not shown.
View
BIN tyler-census-age/smith/smith.shx
Binary file not shown.
View
72 tyler-census-age/style.mss
@@ -0,0 +1,72 @@
+Map {
+ background-color: #111;
+}
+
+#water {
+ polygon-fill: #117;
+}
+
+#tyler {
+ line-color: #2B8CBE;
+ line-width: 2.5;
+ line-opacity: 0;
+}
+
+#smith {
+ line-color: #FFCFAB;
+ line-width: 2.5;
+ line-opacity: 0.3;
+}
+
+
+#tiger_lines {
+ // secondary roads
+ [mtfcc='S1200'] {
+ line-color: #a7a7a7;
+ line-opacity: 0.7;
+ line-join: round;
+ line-cap: round;
+
+ [zoom=17] { line-width: 3.5; }
+ [zoom=16] { line-width: 3; }
+ [zoom=15] { line-width: 2.5; }
+ [zoom=14] { line-width: 2; }
+ [zoom=13] { line-width: 1.5; }
+ [zoom=12] { line-width: 1; }
+ }
+ // local roads
+ [mtfcc='S1400'] {
+ line-opacity: 0.3;
+ line-color: #d1d1d1;
+ line-join: round;
+ line-cap: round;
+
+ [zoom=17] { line-width: 3; }
+ [zoom=16] { line-width: 2.5; }
+ [zoom=15] { line-width: 2; }
+ [zoom=14] { line-width: 1.5; }
+ [zoom=13] { line-width: 1; }
+ [zoom=12] { line-width: 0.5; }
+ }
+}
+
+#age_dots {
+ marker-fill:#f00;
+ marker-line-width:0;
+ marker-allow-overlap: true;
+ marker-opacity:1;
+
+ [group='under18'] { marker-fill: #EE496C; } // pink
+ [group='under25'] { marker-fill: #33AAFF; } // blue
+ [group='under40'] { marker-fill: #836643; } // gold
+ [group='under65'] { marker-fill: #FFCF48; } // brown
+ [group='gte65'] { marker-fill: white; }
+
+ [zoom=9] {marker-height:.2;}
+ [zoom=10] {marker-height:.3;}
+ [zoom=11] {marker-height:.5; marker-opacity:.7;}
+ [zoom=12] {marker-height:.8; marker-opacity:.7;}
+ [zoom=13] {marker-height:1; marker-opacity:.8;}
+ [zoom=14] {marker-height:1.5; marker-opacity:.8;}
+ [zoom=15] {marker-height:2; marker-opacity:.8;}
+}
View
2 tyler-census-age/texas_water/Archive created by free jZip.url
@@ -0,0 +1,2 @@
+[InternetShortcut]
+URL=http://www.jzip.com/archive_link
View
34 tyler-census-age/texas_water/readme.txt
@@ -0,0 +1,34 @@
+This archive includes 6 filesets that contain data in ESRI shapefile format. ESRI shapefile is a digital vector storage format for storing geometric location and associated attribute information.
+
+*.shp - shape format; the feature geometry itself
+*.shx - shape index format; a positional index of the feature geometry to allow seeking forwards and backwards quickly
+*.dbf - attribute format; columnar attributes for each shape, in dBase III format
+
+See http://en.wikipedia.org/wiki/Shapefile for more information about ESRI shapefiles.
+
+
+Files with 'highway' suffix describe country's highways in form of polylines and associated attributes - highway type, name, is highway oneway.
+
+Files with 'poi' suffix describe country's points of interest in form of points and associated attributes - name and type.
+
+Files with 'natural' suffix describe country's areas marked as woods, forests, parks, and water surfaces in form of polygons and their names and types.
+
+Files with 'administrative' suffix contain administrative boundaries including country's international boundaries.
+
+Files with 'coastline' suffix contain osm coastline and water bodies extracts in form of polylines and their names.
+
+Files with 'water' suffix contain osm water bodies in form of polygons and their names.
+
+
+ArcGIS ( Arc - GIS ) shapefiles are the industry standard and work with most all GIS programs including ESRI ArcView, ArcExplorer, ArcGIS, and Maptitude, Mapinfo, Manifold, Mapwindow, Mapguide and many others.
+
+If you are new to GIS and shapefiles, check www.mapcruzin.com/what-is-gis.htm to learn more. You can use and combine these free shapefiles in various ways with many of our free GIS mapping software programs (www.mapcruzin.com/free-gis-software-tools.htm) and create your own GIS projects. Also, you can use our free Learn2Map Tutorial & Atlas (www.mapcruzin.com/free-learn-to-map-gis-tutorial-and-shapefile-atlas.htm) and included free software.
+
+These ArcGIS shapefiles are extracted from CloudMade (www.cloudmade.com) data, derived from OpenStreetMap (www.openstreetmap.org) and are licensed under the terms of the Creative Commons Attribution Share-Alike 2.0 license (http://creativecommons.org/licenses/by-sa/2.0/). They are made available here by MapCruzin (www.mapcruzin.com). If you use these files please make sure you attribute the OpenStreetMap community and MapCruzin by including a link to www.openstreetmap.org and www.mapcruzin.com. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one. Find out more about Creative Commons licenses.
+
+Besides the free GIS maps, software, tutorials and resources that you find at MapCruzin, we also create custom shapefile map layers and projects. Please contact me if you have a project in mind.
+
+Thank You
+
+Mike Meuser
+mike@mapcruzin.com (please use subject "project question" in your email)
View
BIN tyler-census-age/texas_water/texas_water.dbf
Binary file not shown.
View
1 tyler-census-age/texas_water/texas_water.prj
@@ -0,0 +1 @@
+GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
View
BIN tyler-census-age/texas_water/texas_water.shp
Binary file not shown.
View
BIN tyler-census-age/texas_water/texas_water.shx
Binary file not shown.
View
111 tyler-census-age/tyler-census-age.mml
@@ -0,0 +1,111 @@
+{
+ "bounds": [
+ -95.6,
+ 32.1,
+ -94.9,
+ 32.7
+ ],
+ "center": [
+ -95.3148508071898,
+ 32.28662471327077,
+ 15
+ ],
+ "format": "png",
+ "interactivity": false,
+ "minzoom": 11,
+ "maxzoom": 15,
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "Stylesheet": [
+ "style.mss"
+ ],
+ "Layer": [
+ {
+ "geometry": "polygon",
+ "name": "water",
+ "id": "water",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "water",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus"
+ }
+ },
+ {
+ "geometry": "linestring",
+ "name": "tiger_lines",
+ "id": "tiger_lines",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "tiger_lines",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus",
+ "id": "tiger_lines",
+ "project": "tyler-census-age",
+ "srs": null
+ }
+ },
+ {
+ "name": "age_dots",
+ "id": "age_dots",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "age_dots",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus",
+ "id": "age_dots",
+ "project": "tyler-census-age",
+ "srs": null
+ }
+ },
+ {
+ "geometry": "polygon",
+ "name": "tyler",
+ "id": "tyler",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "tyler2010",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus"
+ }
+ },
+ {
+ "geometry": "polygon",
+ "name": "smith",
+ "id": "smith",
+ "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
+ "class": "",
+ "Datasource": {
+ "table": "smith2010",
+ "key_field": "",
+ "geometry_field": "wkb_geometry",
+ "extent": "",
+ "type": "postgis",
+ "host": "localhost",
+ "dbname": "tylercensus"
+ }
+ }
+ ],
+ "description": "",
+ "attribution": "",
+ "legend": ""
+}
View
449 tyler-census-age/tyler-census-age.xml
@@ -0,0 +1,449 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE Map[]>
+<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="#111111">
+
+
+<Style name="water" filter-mode="first">
+ <Rule>
+ <PolygonSymbolizer fill="#111177" />
+ </Rule>
+</Style>
+<Layer name="water"
+ srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
+ <StyleName>water</StyleName>
+ <Datasource>
+ <Parameter name="table"><![CDATA[water]]></Parameter>
+ <Parameter name="key_field"><![CDATA[]]></Parameter>
+ <Parameter name="geometry_field"><![CDATA[wkb_geometry]]></Parameter>
+ <Parameter name="extent"><![CDATA[]]></Parameter>
+ <Parameter name="type"><![CDATA[postgis]]></Parameter>
+ <Parameter name="host"><![CDATA[localhost]]></Parameter>
+ <Parameter name="dbname"><![CDATA[tylercensus]]></Parameter>
+ </Datasource>
+ </Layer>
+
+<Style name="tiger_lines" filter-mode="first">
+ <Rule>
+ <MaxScaleDenominator>200000</MaxScaleDenominator>
+ <MinScaleDenominator>100000</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1400')</Filter>
+ <LineSymbolizer stroke-width="0.5" stroke-opacity="0.3" stroke="#d1d1d1" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>100000</MaxScaleDenominator>
+ <MinScaleDenominator>50000</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1400')</Filter>
+ <LineSymbolizer stroke-width="1" stroke-opacity="0.3" stroke="#d1d1d1" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>50000</MaxScaleDenominator>
+ <MinScaleDenominator>25000</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1400')</Filter>
+ <LineSymbolizer stroke-width="1.5" stroke-opacity="0.3" stroke="#d1d1d1" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>25000</MaxScaleDenominator>
+ <MinScaleDenominator>12500</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1400')</Filter>
+ <LineSymbolizer stroke-width="2" stroke-opacity="0.3" stroke="#d1d1d1" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>12500</MaxScaleDenominator>
+ <MinScaleDenominator>5000</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1400')</Filter>
+ <LineSymbolizer stroke-width="2.5" stroke-opacity="0.3" stroke="#d1d1d1" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>5000</MaxScaleDenominator>
+ <MinScaleDenominator>2500</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1400')</Filter>
+ <LineSymbolizer stroke-width="3" stroke-opacity="0.3" stroke="#d1d1d1" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <Filter>([mtfcc] = 'S1400')</Filter>
+ <LineSymbolizer stroke-opacity="0.3" stroke="#d1d1d1" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>200000</MaxScaleDenominator>
+ <MinScaleDenominator>100000</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1200')</Filter>
+ <LineSymbolizer stroke-width="1" stroke="#a7a7a7" stroke-opacity="0.7" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>100000</MaxScaleDenominator>
+ <MinScaleDenominator>50000</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1200')</Filter>
+ <LineSymbolizer stroke-width="1.5" stroke="#a7a7a7" stroke-opacity="0.7" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>50000</MaxScaleDenominator>
+ <MinScaleDenominator>25000</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1200')</Filter>
+ <LineSymbolizer stroke-width="2" stroke="#a7a7a7" stroke-opacity="0.7" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>25000</MaxScaleDenominator>
+ <MinScaleDenominator>12500</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1200')</Filter>
+ <LineSymbolizer stroke-width="2.5" stroke="#a7a7a7" stroke-opacity="0.7" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>12500</MaxScaleDenominator>
+ <MinScaleDenominator>5000</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1200')</Filter>
+ <LineSymbolizer stroke-width="3" stroke="#a7a7a7" stroke-opacity="0.7" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>5000</MaxScaleDenominator>
+ <MinScaleDenominator>2500</MinScaleDenominator>
+ <Filter>([mtfcc] = 'S1200')</Filter>
+ <LineSymbolizer stroke-width="3.5" stroke="#a7a7a7" stroke-opacity="0.7" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+ <Rule>
+ <Filter>([mtfcc] = 'S1200')</Filter>
+ <LineSymbolizer stroke="#a7a7a7" stroke-opacity="0.7" stroke-linejoin="round" stroke-linecap="round" />
+ </Rule>
+</Style>
+<Layer name="tiger_lines"
+ srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
+ <StyleName>tiger_lines</StyleName>
+ <Datasource>
+ <Parameter name="table"><![CDATA[tiger_lines]]></Parameter>
+ <Parameter name="key_field"><![CDATA[]]></Parameter>
+ <Parameter name="geometry_field"><![CDATA[wkb_geometry]]></Parameter>
+ <Parameter name="extent"><![CDATA[]]></Parameter>
+ <Parameter name="type"><![CDATA[postgis]]></Parameter>
+ <Parameter name="host"><![CDATA[localhost]]></Parameter>
+ <Parameter name="dbname"><![CDATA[tylercensus]]></Parameter>
+ <Parameter name="id"><![CDATA[tiger_lines]]></Parameter>
+ <Parameter name="project"><![CDATA[tyler-census-age]]></Parameter>
+ <Parameter name="srs"><![CDATA[null]]></Parameter>
+ </Datasource>
+ </Layer>
+
+<Style name="age_dots" filter-mode="first">
+ <Rule>
+ <MaxScaleDenominator>25000</MaxScaleDenominator>
+ <MinScaleDenominator>12500</MinScaleDenominator>
+ <Filter>([group] = 'gte65')</Filter>
+ <MarkersSymbolizer height="2" opacity="0.8" fill="#ffffff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>50000</MaxScaleDenominator>
+ <MinScaleDenominator>25000</MinScaleDenominator>
+ <Filter>([group] = 'gte65')</Filter>
+ <MarkersSymbolizer height="1.5" opacity="0.8" fill="#ffffff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>100000</MaxScaleDenominator>
+ <MinScaleDenominator>50000</MinScaleDenominator>
+ <Filter>([group] = 'gte65')</Filter>
+ <MarkersSymbolizer height="1" opacity="0.8" fill="#ffffff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>200000</MaxScaleDenominator>
+ <MinScaleDenominator>100000</MinScaleDenominator>
+ <Filter>([group] = 'gte65')</Filter>
+ <MarkersSymbolizer height="0.8" opacity="0.7" fill="#ffffff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>400000</MaxScaleDenominator>
+ <MinScaleDenominator>200000</MinScaleDenominator>
+ <Filter>([group] = 'gte65')</Filter>
+ <MarkersSymbolizer height="0.5" opacity="0.7" fill="#ffffff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>750000</MaxScaleDenominator>
+ <MinScaleDenominator>400000</MinScaleDenominator>
+ <Filter>([group] = 'gte65')</Filter>
+ <MarkersSymbolizer height="0.3" fill="#ffffff" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>1500000</MaxScaleDenominator>
+ <MinScaleDenominator>750000</MinScaleDenominator>
+ <Filter>([group] = 'gte65')</Filter>
+ <MarkersSymbolizer height="0.2" fill="#ffffff" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <Filter>([group] = 'gte65')</Filter>
+ <MarkersSymbolizer fill="#ffffff" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>25000</MaxScaleDenominator>
+ <MinScaleDenominator>12500</MinScaleDenominator>
+ <Filter>([group] = 'under65')</Filter>
+ <MarkersSymbolizer height="2" opacity="0.8" fill="#ffcf48" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>50000</MaxScaleDenominator>
+ <MinScaleDenominator>25000</MinScaleDenominator>
+ <Filter>([group] = 'under65')</Filter>
+ <MarkersSymbolizer height="1.5" opacity="0.8" fill="#ffcf48" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>100000</MaxScaleDenominator>
+ <MinScaleDenominator>50000</MinScaleDenominator>
+ <Filter>([group] = 'under65')</Filter>
+ <MarkersSymbolizer height="1" opacity="0.8" fill="#ffcf48" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>200000</MaxScaleDenominator>
+ <MinScaleDenominator>100000</MinScaleDenominator>
+ <Filter>([group] = 'under65')</Filter>
+ <MarkersSymbolizer height="0.8" opacity="0.7" fill="#ffcf48" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>400000</MaxScaleDenominator>
+ <MinScaleDenominator>200000</MinScaleDenominator>
+ <Filter>([group] = 'under65')</Filter>
+ <MarkersSymbolizer height="0.5" opacity="0.7" fill="#ffcf48" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>750000</MaxScaleDenominator>
+ <MinScaleDenominator>400000</MinScaleDenominator>
+ <Filter>([group] = 'under65')</Filter>
+ <MarkersSymbolizer height="0.3" fill="#ffcf48" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>1500000</MaxScaleDenominator>
+ <MinScaleDenominator>750000</MinScaleDenominator>
+ <Filter>([group] = 'under65')</Filter>
+ <MarkersSymbolizer height="0.2" fill="#ffcf48" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <Filter>([group] = 'under65')</Filter>
+ <MarkersSymbolizer fill="#ffcf48" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>25000</MaxScaleDenominator>
+ <MinScaleDenominator>12500</MinScaleDenominator>
+ <Filter>([group] = 'under40')</Filter>
+ <MarkersSymbolizer height="2" opacity="0.8" fill="#836643" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>50000</MaxScaleDenominator>
+ <MinScaleDenominator>25000</MinScaleDenominator>
+ <Filter>([group] = 'under40')</Filter>
+ <MarkersSymbolizer height="1.5" opacity="0.8" fill="#836643" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>100000</MaxScaleDenominator>
+ <MinScaleDenominator>50000</MinScaleDenominator>
+ <Filter>([group] = 'under40')</Filter>
+ <MarkersSymbolizer height="1" opacity="0.8" fill="#836643" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>200000</MaxScaleDenominator>
+ <MinScaleDenominator>100000</MinScaleDenominator>
+ <Filter>([group] = 'under40')</Filter>
+ <MarkersSymbolizer height="0.8" opacity="0.7" fill="#836643" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>400000</MaxScaleDenominator>
+ <MinScaleDenominator>200000</MinScaleDenominator>
+ <Filter>([group] = 'under40')</Filter>
+ <MarkersSymbolizer height="0.5" opacity="0.7" fill="#836643" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>750000</MaxScaleDenominator>
+ <MinScaleDenominator>400000</MinScaleDenominator>
+ <Filter>([group] = 'under40')</Filter>
+ <MarkersSymbolizer height="0.3" fill="#836643" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>1500000</MaxScaleDenominator>
+ <MinScaleDenominator>750000</MinScaleDenominator>
+ <Filter>([group] = 'under40')</Filter>
+ <MarkersSymbolizer height="0.2" fill="#836643" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <Filter>([group] = 'under40')</Filter>
+ <MarkersSymbolizer fill="#836643" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>25000</MaxScaleDenominator>
+ <MinScaleDenominator>12500</MinScaleDenominator>
+ <Filter>([group] = 'under25')</Filter>
+ <MarkersSymbolizer height="2" opacity="0.8" fill="#33aaff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>50000</MaxScaleDenominator>
+ <MinScaleDenominator>25000</MinScaleDenominator>
+ <Filter>([group] = 'under25')</Filter>
+ <MarkersSymbolizer height="1.5" opacity="0.8" fill="#33aaff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>100000</MaxScaleDenominator>
+ <MinScaleDenominator>50000</MinScaleDenominator>
+ <Filter>([group] = 'under25')</Filter>
+ <MarkersSymbolizer height="1" opacity="0.8" fill="#33aaff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>200000</MaxScaleDenominator>
+ <MinScaleDenominator>100000</MinScaleDenominator>
+ <Filter>([group] = 'under25')</Filter>
+ <MarkersSymbolizer height="0.8" opacity="0.7" fill="#33aaff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>400000</MaxScaleDenominator>
+ <MinScaleDenominator>200000</MinScaleDenominator>
+ <Filter>([group] = 'under25')</Filter>
+ <MarkersSymbolizer height="0.5" opacity="0.7" fill="#33aaff" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>750000</MaxScaleDenominator>
+ <MinScaleDenominator>400000</MinScaleDenominator>
+ <Filter>([group] = 'under25')</Filter>
+ <MarkersSymbolizer height="0.3" fill="#33aaff" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>1500000</MaxScaleDenominator>
+ <MinScaleDenominator>750000</MinScaleDenominator>
+ <Filter>([group] = 'under25')</Filter>
+ <MarkersSymbolizer height="0.2" fill="#33aaff" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <Filter>([group] = 'under25')</Filter>
+ <MarkersSymbolizer fill="#33aaff" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>25000</MaxScaleDenominator>
+ <MinScaleDenominator>12500</MinScaleDenominator>
+ <Filter>([group] = 'under18')</Filter>
+ <MarkersSymbolizer height="2" opacity="0.8" fill="#ee496c" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>50000</MaxScaleDenominator>
+ <MinScaleDenominator>25000</MinScaleDenominator>
+ <Filter>([group] = 'under18')</Filter>
+ <MarkersSymbolizer height="1.5" opacity="0.8" fill="#ee496c" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>100000</MaxScaleDenominator>
+ <MinScaleDenominator>50000</MinScaleDenominator>
+ <Filter>([group] = 'under18')</Filter>
+ <MarkersSymbolizer height="1" opacity="0.8" fill="#ee496c" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>200000</MaxScaleDenominator>
+ <MinScaleDenominator>100000</MinScaleDenominator>
+ <Filter>([group] = 'under18')</Filter>
+ <MarkersSymbolizer height="0.8" opacity="0.7" fill="#ee496c" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>400000</MaxScaleDenominator>
+ <MinScaleDenominator>200000</MinScaleDenominator>
+ <Filter>([group] = 'under18')</Filter>
+ <MarkersSymbolizer height="0.5" opacity="0.7" fill="#ee496c" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>750000</MaxScaleDenominator>
+ <MinScaleDenominator>400000</MinScaleDenominator>
+ <Filter>([group] = 'under18')</Filter>
+ <MarkersSymbolizer height="0.3" fill="#ee496c" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>1500000</MaxScaleDenominator>
+ <MinScaleDenominator>750000</MinScaleDenominator>
+ <Filter>([group] = 'under18')</Filter>
+ <MarkersSymbolizer height="0.2" fill="#ee496c" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <Filter>([group] = 'under18')</Filter>
+ <MarkersSymbolizer fill="#ee496c" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>25000</MaxScaleDenominator>
+ <MinScaleDenominator>12500</MinScaleDenominator>
+ <MarkersSymbolizer height="2" opacity="0.8" fill="#ff0000" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>50000</MaxScaleDenominator>
+ <MinScaleDenominator>25000</MinScaleDenominator>
+ <MarkersSymbolizer height="1.5" opacity="0.8" fill="#ff0000" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>100000</MaxScaleDenominator>
+ <MinScaleDenominator>50000</MinScaleDenominator>
+ <MarkersSymbolizer height="1" opacity="0.8" fill="#ff0000" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>200000</MaxScaleDenominator>
+ <MinScaleDenominator>100000</MinScaleDenominator>
+ <MarkersSymbolizer height="0.8" opacity="0.7" fill="#ff0000" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>400000</MaxScaleDenominator>
+ <MinScaleDenominator>200000</MinScaleDenominator>
+ <MarkersSymbolizer height="0.5" opacity="0.7" fill="#ff0000" stroke-width="0" allow-overlap="true" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>750000</MaxScaleDenominator>
+ <MinScaleDenominator>400000</MinScaleDenominator>
+ <MarkersSymbolizer height="0.3" fill="#ff0000" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MaxScaleDenominator>1500000</MaxScaleDenominator>
+ <MinScaleDenominator>750000</MinScaleDenominator>
+ <MarkersSymbolizer height="0.2" fill="#ff0000" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+ <Rule>
+ <MarkersSymbolizer fill="#ff0000" stroke-width="0" allow-overlap="true" opacity="1" />
+ </Rule>
+</Style>
+<Layer name="age_dots"
+ srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
+ <StyleName>age_dots</StyleName>
+ <Datasource>
+ <Parameter name="table"><![CDATA[age_dots]]></Parameter>
+ <Parameter name="key_field"><![CDATA[]]></Parameter>
+ <Parameter name="geometry_field"><![CDATA[wkb_geometry]]></Parameter>
+ <Parameter name="extent"><![CDATA[]]></Parameter>
+ <Parameter name="type"><![CDATA[postgis]]></Parameter>
+ <Parameter name="host"><![CDATA[localhost]]></Parameter>
+ <Parameter name="dbname"><![CDATA[tylercensus]]></Parameter>
+ <Parameter name="id"><![CDATA[age_dots]]></Parameter>
+ <Parameter name="project"><![CDATA[tyler-census-age]]></Parameter>
+ <Parameter name="srs"><![CDATA[null]]></Parameter>
+ </Datasource>
+ </Layer>
+
+<Style name="tyler" filter-mode="first">
+ <Rule>
+ <LineSymbolizer stroke="#2b8cbe" stroke-width="2.5" stroke-opacity="0" />
+ </Rule>
+</Style>
+<Layer name="tyler"
+ srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
+ <StyleName>tyler</StyleName>
+ <Datasource>
+ <Parameter name="table"><![CDATA[tyler2010]]></Parameter>
+ <Parameter name="key_field"><![CDATA[]]></Parameter>
+ <Parameter name="geometry_field"><![CDATA[wkb_geometry]]></Parameter>
+ <Parameter name="extent"><![CDATA[]]></Parameter>
+ <Parameter name="type"><![CDATA[postgis]]></Parameter>
+ <Parameter name="host"><![CDATA[localhost]]></Parameter>
+ <Parameter name="dbname"><![CDATA[tylercensus]]></Parameter>
+ </Datasource>
+ </Layer>
+
+<Style name="smith" filter-mode="first">
+ <Rule>
+ <LineSymbolizer stroke="#ffcfab" stroke-width="2.5" stroke-opacity="0.3" />
+ </Rule>
+</Style>
+<Layer name="smith"
+ srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
+ <StyleName>smith</StyleName>
+ <Datasource>
+ <Parameter name="table"><![CDATA[smith2010]]></Parameter>
+ <Parameter name="key_field"><![CDATA[]]></Parameter>
+ <Parameter name="geometry_field"><![CDATA[wkb_geometry]]></Parameter>
+ <Parameter name="extent"><![CDATA[]]></Parameter>
+ <Parameter name="type"><![CDATA[postgis]]></Parameter>
+ <Parameter name="host"><![CDATA[localhost]]></Parameter>
+ <Parameter name="dbname"><![CDATA[tylercensus]]></Parameter>
+ </Datasource>
+ </Layer>
+
+</Map>
View
BIN tyler-census-age/tyler/tyler.dbf
Binary file not shown.
View
1 tyler-census-age/tyler/tyler.prj
@@ -0,0 +1 @@
+GEOGCS["GRS 1980(IUGG, 1980)",DATUM["D_unknown",SPHEROID["GRS80",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
View
1 tyler-census-age/tyler/tyler.qpj
@@ -0,0 +1 @@
+GEOGCS["GRS 1980(IUGG, 1980)",DATUM["unknown",SPHEROID["GRS80",6378137,298.257222101],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]
View
BIN tyler-census-age/tyler/tyler.shp
Binary file not shown.
View
BIN tyler-census-age/tyler/tyler.shx
Binary file not shown.
View
69 tyler-census-race/setup.sh
@@ -1,69 +0,0 @@
-HERE=`pwd`
-DATABASE=tylercensus
-
-ogr2ogr -f "PostgreSQL" PG:dbname=$DATABASE -nln blocks2010 -nlt multipolygon -t_srs EPSG:900913 -overwrite tl_2010_48423_tabblock10
-
-ogr2ogr -f "PostgreSQL" PG:dbname=$DATABASE -nln tyler2010 -nlt multipolygon -t_srs EPSG:900913 -overwrite tyler
-
-ogr2ogr -f "PostgreSQL" PG:dbname=$DATABASE -nln smith2010 -nlt multipolygon -t_srs EPSG:900913 -overwrite smith
-
-psql -q $DATABASE -c "DROP TABLE p5;"
-
-CREATE_P5='
-CREATE TABLE p5 (
- geoid VARCHAR(16) NOT NULL,
- geoid2 VARCHAR(24) NOT NULL,
- name VARCHAR(66) NOT NULL,
- "D001" INTEGER NOT NULL,
- "D002" INTEGER NOT NULL,
- "D003" INTEGER NOT NULL,
- "D004" INTEGER NOT NULL,
- "D005" INTEGER NOT NULL,
- "D006" INTEGER NOT NULL,
- "D007" INTEGER NOT NULL,
- "D008" INTEGER NOT NULL,
- "D009" INTEGER NOT NULL,
- "D010" INTEGER NOT NULL,
- "D011" INTEGER NOT NULL,
- "D012" INTEGER NOT NULL,
- "D013" INTEGER NOT NULL,
- "D014" INTEGER NOT NULL,
- "D015" INTEGER NOT NULL,
- "D016" INTEGER NOT NULL,
- "D017" INTEGER NOT NULL
-);
-'
-echo $CREATE_P5 | psql $DATABASE
-
-psql -q $DATABASE -c "COPY p5 FROM '${HERE}/p5_county/clean.csv' WITH CSV HEADER;"
-
-psql -q $DATABASE -c "DROP TABLE race;"
-
-RACE='
-CREATE TABLE race AS
-SELECT
- geoid,
- "D003" as nhwhite,
- "D003"::float / NULLIF("D001"::float, 0) AS nhwhitepct,
- "D004" as nhblack,
- "D004"::float / NULLIF("D001"::float, 0) AS nhblackpct,
- "D006" as nhasian,
- "D006"::float / NULLIF("D001"::float, 0) AS nhasianpct,
- "D010" as hisp,
- "D010"::float / NULLIF("D001"::float, 0) AS hisppct
-FROM p5;
-'
-echo $RACE | psql $DATABASE
-
-psql -q $DATABASE -c "DROP TABLE race_shapes;"
-
-CREATE_RACE_SHAPES="
-CREATE TABLE race_shapes AS
-SELECT
- race.*,
- blocks2010.wkb_geometry
-FROM race, blocks2010
-WHERE race.geoid = blocks2010.geoid10;
-"
-echo $CREATE_RACE_SHAPES | psql $DATABASE
-

0 comments on commit 65c73d7

Please sign in to comment.