Skip to content

Commit

Permalink
Fixes #1. Updated to 2012 version. Relocated the geojson version.
Browse files Browse the repository at this point in the history
  • Loading branch information
qjhart committed Apr 6, 2015
1 parent 8bb52ec commit 94161c7
Show file tree
Hide file tree
Showing 19 changed files with 2,503 additions and 462 deletions.
17 changes: 3 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,21 @@ include configure.mk

schema:=public

DEFAULT: geojson/detailed_analysis_units.geojson shp
DEFAULT: detailed_analysis_units.geojson shp

# Converting to WGS84 is a more accepted GEOJSON format.
geojson/detailed_analysis_units.geojson: src/daus.vrt src/dau_v2_105.shp
detailed_analysis_units.geojson: src/daus.vrt src/dau_2012.shp
ogr2ogr -f GEOJSON -t_srs WGS84 $@ $<

# Here's an Example of materializing that VRT file, for example to
# upload to Google Maps.
shp: src/daus.vrt
ogr2ogr $@ $<

# While we may store the original data in the GITHUB repository, we
# also want to show how we got the data.
src/dau_v2_105.shp:zip:=src/dau_v2_CA105.zip
src/dau_v2_105.shp:url:=http://www.waterplan.water.ca.gov/docs/maps/dau_v2_CA105.zip
src/dau_v2_105.shp:
[[ -f ${zip} ]] || curl ${url} > ${zip}
unzip -d src -u ${zip}
rm ${zip}

# Additionally, we may want to show alternative import strateigies.
# This rule will create a PostGIS version in ${schema}
.PHONY: postgis
postgis: src/daus.vrt src/dau_v2_105.shp
postgis: src/daus.vrt src/dau_2012.shp
${OGR} src/daus.vrt

# In order to use our PostGIS import, we include some standard
Expand All @@ -42,5 +33,3 @@ configure.mk:
clean:
rm -rf configure.mk shp geojson

clean-all: clean
rm src/dau_v2_105.*
70 changes: 55 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
# California DWR Detailed Analysis Units (2003)

In the past DWR has maintained a listing of California's Detailed
Analysis Units (DAUs) used by the state for water planning. While
still avialable, this data is harder to find online. This repository
maintains a copy of the dau original source files, as well as a few
alternate formats.

This dataset is the DWR Version 20, December 2003.

## Overview
# California DWR Detailed Analysis Units (2012)

The Department of Water Resources (DWR) uses Detailed Analysis Units (DAU) as
the base geographic unit for most statewide planning purposes. There are 278
DAU's that cover all of mainland California. The DAU's are nested inside 46
Planning Subareas (PSA), which in turn are nested inside of 10 Hydrologic
Regions (HR).

## Attributes

We use a subset of the attributes supplied in the original file
We use a subset of the attributes supplied in the original source data.

Attribute | Description
--- | ---
Expand All @@ -31,8 +19,60 @@ hr_name | The HR name (character string) of the HR encompassing the delineated a
dauid_code | The DAU identification code (8 character string), which is a concatenation of the HR_CODE, PSA_CODE, and DAU_CODE.
pa_no | The California Planning Update area number (6 character number).

The most current version of the DAU's were supplied by the *California
Department of Forestry and Fire Protection*. Please see the ```src```
directory for a copy of that data. The intent of this repository is
to; provide a discoverable location for the data, provide a geojson
format, and standardize the dataset from update to update.


# Updates

## 2012 Deatail County update.

Detailed Analysis Unit-DAU Convergence via County Boundary cnty24k09,
(*See metadata for cnty24k09, Cal-Atlas), State of California. The
existing DAU boundaries were clipped via Cal-Atlas cnty24k09 by
Michael L. Serna, NRO via ArcMap 10. DAU’s were sent out to: Northern
Region Office (NRO), North Central Region Office (NCRO), South Central
Region Office (SCRO) and Southern Region Office (SRO)
respectively. Collaboration was by Department of Water Resources,
Region Office personnel, Michael L. Serna, NRO, Jason Harbaugh - NCRO,
Cynthia Moffett - SCRO and Robert Fastenau - SRO with the final merge
of all data into a cohesive workable dataset completed by Michael
L. Serna - NRO, Land and Water Use Section.

Existing DAU feature class boundaries contained a multitude of variant
sliver acreages along all DAU and county boundary lines through-out
the State of California.Each region office was sent their respective
‘clipped’ features where they ‘exploded’ each county to expose the
DAU’s sliver anomalies. They subsequently merged the variant slivers
into the proper DAUs. Upon completion, the DAU feature classes were
sent back to Michael L. Serna, NRO where they were merged back
together, ‘Unioned’ to the cnty24k09 State Boundary and ‘exploded’ to
expose DAU/State of California boundary slivers. These features are
reachable by County\DAU. This allows the county boundaries, the DAU
boundaries and the State of California Boundary to match Cal-Atlas
cnty24k09.

Extremely detailed descriptions of boundary changes made for different
versions are provided in the Process Step metadata section. More
general version notes are provided here;

Please see the metadata file in the src directory for more
information.

## California DWR Detailed Analysis Units (2003)

In the past DWR has maintained a listing of California's Detailed
Analysis Units (DAUs) used by the state for water planning. While
still avialable, this data is harder to find online. This repository
maintains a copy of the dau original source files, as well as a few
alternate formats.

This dataset is the DWR Version 20, December 2003.

## Process
### Process

1. DWR used, as a starting point, the vector data from Calwater 2.0. This
vector data was provided to all four DWR District Offices. Each District
Expand Down

Large diffs are not rendered by default.

Binary file modified shp/detailed_analysis_units.dbf
Binary file not shown.
2 changes: 1 addition & 1 deletion shp/detailed_analysis_units.prj
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PROJCS["NAD83_California_Albers",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Albers"],PARAMETER["standard_parallel_1",34],PARAMETER["standard_parallel_2",40.5],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-120],PARAMETER["false_easting",0],PARAMETER["false_northing",-4000000],UNIT["Meter",1]]
PROJCS["NAD_1983_California_Teale_Albers",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.017453292519943295]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",-4000000.0],PARAMETER["central_meridian",-120.0],PARAMETER["Standard_Parallel_1",34.0],PARAMETER["Standard_Parallel_2",40.5],PARAMETER["latitude_of_origin",0.0],UNIT["Meter",1.0]]
Binary file modified shp/detailed_analysis_units.shp
Binary file not shown.
Binary file modified shp/detailed_analysis_units.shx
Binary file not shown.
Binary file added src/dau_2012.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions src/dau_2012.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["NAD_1983_California_Teale_Albers",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",-4000000.0],PARAMETER["Central_Meridian",-120.0],PARAMETER["Standard_Parallel_1",34.0],PARAMETER["Standard_Parallel_2",40.5],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
Binary file added src/dau_2012.sbn
Binary file not shown.
Binary file added src/dau_2012.sbx
Binary file not shown.
Binary file renamed src/dau_v2_105.shp → src/dau_2012.shp
Binary file not shown.
Loading

0 comments on commit 94161c7

Please sign in to comment.