- In the Issues section of the AVA project GitHub page, you should find an Issue for each AVA. All AVAs in need of digitizing have an issue open on the github repository. The issues are closed for AVAs as they are finished. AVAs are given labels to indicate their status. Open issues labeled as "In Progress" are currently being digitized by a contributor. Choose an AVA that does not have an "In Progress" label. Labels for partner organizations such as "UC Davis" or "UC Santa Barbara" indicate that the project coordinators expect these boundaries to be completed by the organization indicated.
- In the text of each issue, you will find the boundary description you should use as well as the list of Approved Maps. Other attribute information will be found in the Federal Register documents. Occasionally, the text in the issue is missing either the Approved Maps or the starting point for the boundary description (due to the automated process that generated this text). To find the missing text, refer to the "src" link (meaning "source") to the official Federal Register text.
- Write a comment for your chosen AVA that you are working on the boundary. Michele will change the status to "In Progress" when she sees the comment. Add additional comments if any issues or questions arise about this particular AVA. The issue for Arroyo Seco is a good example of the kinds of troubles and questions to track on an issue for an AVA.
Hein Online Federal Register Library: http://heinonline.org/HOL/Index?collection=fedreg&set_as_cursor=clear
Wine Institute’s list of documents establishing the original AVA boundaries: https://www.wineinstitute.org/resources/avas
Alcohol and Tobacco Tax and Trade Bureau’s (TTB) list of currently established AVAs: https://www.ttb.gov/wine/us_by_ava.shtml
- Search the Hein Online Federal Register Library for the name of your chosen AVA (the text search box is at the top of the page near the logo). Many of the documents you will need are available there.
- Check the TTB’s list linked above for a citation of the revision history of the AVA found at the bottom of the page in brackets. Hardcopies of the Federal Register documents are also available in the UC Davis Library.
Note Google Chrome browswer has occasionally had difficulties downloading files from topoView, resulting in an error message saying "Failed - Network error". If this happens, try another browswer. Microsoft Edge has worked well in the past.
-
Go to the USGS National Geologic Map Database’s topoView: https://ngmdb.usgs.gov/maps/TopoView/viewer
-
On the right side of the map in the side panel, select the scale of the Approved Map.
-
Zoom into the general region of the AVA, and the names of the maps will appear inside the index bounding boxes. Alternatively you can search for the name of the approved map with the Map Name search at the top of the side panel.
-
Select the map of interest by clicking inside the box.
-
In the lower section of the side panel, a dialog box should appear with details about the map you selected and the maps that are available. Identify the option with date and edition that corresponds to the Approved Map listed in the Federal Register document.
i. For example, one of the Approved Maps for the Coombsville AVA is listed as “Napa Quadrangle, California-Napa Co., 1951, Photorevised 1980”. For this map, select the Napa map with a date of 1951 and edition of 1980.
ii. In the event that the specific year for the Approved Map is not available, you may need to download one or two maps that are of a similar age and determine which has the landmarks indicated in the description.
-
Click the GEOTIFF download option for the map edition closest to the Approved Map listed in the federal documents.
-
Save the file to your local computer. The file saved will be a zipped folder containing GeoTIFF files.
-
Navigate to the folder where you saved the file. Right click the file and select “Extract All”. Browse to the folder you would like to unzip the folder to, then click the “Extract” button. The new unzipped folder should contain 4 files.
-
Repeat all the substeps for Step 2 for each of the Approved Maps needed for your AVA before you move on to the digitizing process in Step 3.
Further assistance in interpreting which scale of map to use can be found in the USGS' Map Scales Report.
The AVA Project team has made a Video of the process of downloading the Approved Maps. The video uses the older topoView interface, but the general procedure is the same.
We’ll describe how to do this with the GitHub for Desktop tool, but you may use the tool of your choice. We’ll also assume you’ve already set up your GitHub account and the GitHub for Desktop program.:
- Fork the AVA repository: https://github.com/UCDavisLibrary/ava (this link will change if the repository gets moved to the UC Davis GitHub account). Details about how to fork a repository and work with it in GitHub Desktop are here: https://guides.github.com/activities/forking/
- Open GitHub for Desktop
- Select the forked AVA repository on the left sides of the window.
- In your computer’s file navigation system, navigate to your GitHub folder and open the AVAs folder. Inside the folder for AVAs that haven’t been completed, find the AVA you want to work on and move the .geojson file to the “avas” folder.
Once you've set up your fork, you'll need to update it regularly to make sure you have all the current files. There is unfortunately no way to do this with the GitHub Desktop tool, but it's not too complicated to update it.
-
Open GitHub Desktop
-
Click on your fork to open it.
-
Right click on the name of the fork and select "Open Command Prompt" or "Open in Git Shell" (depending on the version you have the text will be different). A command line shell will open. The path before the > should be where you store your data (probably the GitHub folder on your computer).
-
You will now run a few commands to update your fork (reference).
- The first time you'll need to set an upstream repository for your fork:
git remote add upstream git://github.com/UCDavisLibrary/ava.git
- Now you'll fetch any changes:
git fetch upstream
- Finally, you'll update your folder with the changes you just fetched:
git pull upstream master
In the event that your fork gets too messy, you can do a hard reset to remove everything from your fork and replace it with what is on the UC Davis AVA repository.
-
Copy any data you've been working on into a folder not affected by git.
-
Run a few lines of code to reset your repository:
- The first time you'll need to set an upstream repository for your fork:
git remote add upstream git://github.com/UCDavisLibrary/ava.git
- Now the reset:
git fetch upstream git checkout master git reset --hard upstream/master git push origin master --force
-
Finally, move any data you've been working on back into it's folder. Now you can do a pull request like you normally would.
- In your file browser, move the geojson file for your chosen AVA (for example, coombsville.geojson) from the "tbd" (stands for "to be determined") folder to the "avas" folder.
- Open QGIS
- Load data:
- avas.geojson - for reference and snapping to shared boundaries
- Your AVA geojson file - the file you will edit; example: coombsville.geojson
- Approved Maps
- Set Project Projection
- Open the Project Properties (Project menu → Project Properties)
- Set the Coordinate Reference System to NAD83 (EPSG:4269)
- Set Snapping
- In the Layers Panel (Table of Contents), select the all.geojson layer.
- Open the Snapping Options (Settings menu → Snapping Options)
- Set Layer Selection to “Current Layer” (the all.geojson layer you selected earlier in the Layers Panel), Snap To “To Vertex and Segment”, Tolerance to 20 Pixels (adjust this as needed), and finally check the boxes for “Enable topological editing” and “Enable snapping on intersection”.
The AVA Project team has made a Video of the process of setting up your project file.
Each AVA has a template generated automatically and placed at the centroid of the county that the AVA resides in.
- Toggle Editing on for the new AVA GeoJSON file.
- You have two options for digitizing the boundary:
- Add new polygon with the Add Feature tool. Digitize the boundary adding vertices according to the Federal Register Boundary description at a scale sufficient to identify the features needed from the topoquads. You can switch between the Add Feature tool and navigating tools as needed. Right click to finish. Finally, delete the triangle template.
- Add nodes to the triangle moving them to the places described in the boundary description.
- Some things to keep in mind:
- Note that as you near the edge of a map, you may need to turn off or reorder some of the maps to adjust for the white edges of the scanned maps that obscure the maps underneath.
- If the AVA you are digitizing is very close to another that has already been digitized, read the boundary descriptions for both and determine if they share a boundary. If they share a boundary, make sure you snap your vertices to the vertices of the other boundary.
- Pay close attention to the wording describing the boundaries. Some require a straight line between points and use language like "the next point is a straight line to the peak at 1700 feet". Others require you to digitize along a feature and use language like "follow along Cold Creek until it crosses J Street".
- When you are done digitizing, fill out the attribute data based on the text of the official Federal Register documents. The definitions of the attributes are found in the README.md file. Note: Contributors using QGIS 2.18.10 or older with GDAL 2.2.0 should fill in any blanks in their attribute table with N/A due to a known issue with how unset values are handled. A more permanent fix is in the works.
- Save Layer Edits.
- Toggle Editing off.
- Close QGIS if you’re done making new AVAs, or start over from Step 3e above to make another.
The AVA Project team has made a Video of the process of digitzing an AVA boundary.
- In GitHub for Desktop, you should see a list of changes you’ve made to the files. Fill in the Summary and Description fields at the bottom of the window and then click the Commit button. https://guides.github.com/activities/forking/#making-changes
- If you are ready to incorporate your changes into the main branch, submit a pull request for your fork: https://help.github.com/articles/creating-a-pull-request-from-a-fork/
- If your changes are accepted, project adminsitrators will incorporated your changes and close the issue for your AVA. If there is any problems or questions, the project administrators will contact you.
If a pull request cannot be merged automatically by GitHub, you can remove or modify files before you merge them into the main repository.
Step 1: In the command line tool, from your project repository, check out a new branch and test the changes.
git checkout -b [repository user name]-master master
git pull https://github.com/gdmf/ava.git master
Step 2: Remove or modify files on your computer.
Step 3: Committ the changes.
Step 4: Merge the changes and update on GitHub.
git checkout master
git merge --no-ff [repository user name]-master
git push origin master
Another Option: If you want to accept only some of the changes offered in a pull request, you will need to use the command line to cherry-pick the committs that you want to keep.
- QGIS editing geometry manual: http://docs.qgis.org/2.14/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html
- Understanding the GitHub Flow: https://guides.github.com/introduction/flow/
- USGS Topographic Map Symbols: https://pubs.usgs.gov/gip/TopographicMapSymbols/topomapsymbols.pdf
Considerations for post-processing:
- Densify the lines for areas with large distances between points so when people re-project the file it won’t distort.