Quick location to store the basic data and documentation on how to convert the google docs to the appropriate geojson files.
- https://github.com/teknofire/yak
- gdal
- this repo
- Clone this respository
git clone git@github.com:gina-alaska/aava-datasets
- Make sure that the
yak
command is installed andyak aava --help
is available. (http://github.com/teknofire/yak) cd aava-datasets
-
Create new geojson_layer in http://uber.mapbits.org
NOTE: Until the layer is added to a map it is useful to include the data set name in the layer name. After it has been added to a map it can then be changed to just say "Plot Locations"
-
Copy contents for style, popup and options tab from an existing layer to the new layer.
-
Make note of url for the layer this will need to be used layer. (example: http://uber.mapbits.org/orgs/aaga/geojson_layers/105/edit)
-
Create a new map that loads the layer. Example: http://uber.mapbits.org/orgs/aaga/maps/oumalik
- Create a new directory for the dataset in the clone of the aava-datasets repository.
- Initialize the new dataset directory
mkdir AWESOME_DATASET
cd AWESOME_DATASET
yak aava --init .
# note on a linux system you will need to specify the --browser flag
yak aava --init --browser firefox .
This will ask a series of questions about the dataset.
- URL for google spreadsheet to download. This should be the shared link url that can be found by clicking on the
Share
button on the top right and then clicking - URL for the ubermap layer to save the geojson for that you noted above. This should reference a geojson_layer and not a map or other type of layer. Example: http://uber.mapbits.org/orgs/aaga/geojson_layers/105/edit
- This should then open a browser window to the specified ubermap layer window.
- Click the data tab and upload the generated geojson file.
- If the Google spreadsheet is not set to be sharable via url the CLI tool will be unable to export the CSV version in order to convert to a GeoJSON file.
- In order to convert the geojson file from a CSV to a GeoJSON the CSV needs to contain a
lat
andlon
columns. You can look at the.vrt
file to see exactly what fields or to customize the fields that it's trying to use for a particular dataset.
- cd into the subdirectory with the dataset you wish to updated
- Run the updater!
- on OSX run
yak aava
- on Linux run
yak aava -b firefox
or whatever browser you want it to use
- on OSX run
- In the browser go to the data tab and click the "Choose file" button
- Browse to the directory and find the file that you are trying to update.
- Click the "Save" button
- Download doc as CSV file, the filename depends on what the dataset is coming from, just replace the existing csv file in the appropriate sub directory.
- Run the yak command listed for the dataset
- Go to the ubermap edit page and open the data tab
- Under upload new file click the "Choose File" button and select the updated geojson generated by the yak command
- Click the "Save" button. Map should refresh with the latest points.
Google Doc: https://docs.google.com/a/alaska.edu/spreadsheets/d/1MphOrOIdkEd3kh4FaL-ioqNXhLOvK0TtJxiB_ImLkhM/edit#gid=0
Ubermap Edit: http://ubermap.gina.alaska.edu/geojson_layers/5/edit
Convert command
yak geojson -f -p EPSG:4326 *.vrt
Ubermap Edit: http://ubermap.gina.alaska.edu/geojson_layers/6/edit
Convert command
yak geojson -f -p EPSG:4326 *.vrt
Very basic conversion of the csv to a geojson, nothing special here.
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/2/edit
yak geojson -f -p EPSG:4326 ToolikLake_TVEXPORT.vrt
This csv file gets split into multiple files based on the group column. Currently the only GeoJSON file that gets used is the one for group 0.
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/1/edit
yak geojson -f -p EPSG:4326 -s group AAVA_Datasets_Grouped.vrt
Google Doc: https://docs.google.com/a/alaska.edu/spreadsheets/d/1y1fOsxCOTyE-MMzGPsgGl_71Yf3ipaWQQw0EhBnvteQ/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/8/edit
Convert command
yak geojson -f -p EPSG:4326 willows_tvexport.vrt
Google Doc: https://docs.google.com/a/alaska.edu/spreadsheets/d/11eba-_-m--PGfeteshdjr7hVhW-SOhVrgX_MCkVjcAQ/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/7/edit
Convert command
yak geojson -f -p EPSG:4326 poplars_tvexport.vrt
Google Doc: https://docs.google.com/a/alaska.edu/spreadsheets/d/120V0NK9n-627Krs2d2xAwD6ibMka5qxSmNuF-rSdy-s/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/9/edit
Convert command
yak geojson -f -p EPSG:4326 oumalik_tvexport.vrt
Google Doc: https://docs.google.com/a/alaska.edu/spreadsheets/d/1ph7aiXTL5B2lPB3lNXsJ-bqh4SaBaAz-qyPyXjI2TmM/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/3/edit
Convert command
yak geojson -f -p EPSG:4326 prudhoe_tvexport.vrt
Google Doc: https://docs.google.com/a/alaska.edu/spreadsheets/d/1wsH84xwmSR4vNjhypDvqdtd5Od5VGVB3amGdKX3c3NM/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/10/edit
Convert command
yak geojson -f -p EPSG:4326 frostboils_tvexport.vrt
Google Doc: https://docs.google.com/spreadsheets/d/17fXKyj54mTsPKZjqHlYANL1LzURpRP8XpfpcNuIIAV8/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/12/edit
Convert command
yak geojson -f -p EPSG:4326 Atqasuk.vrt
Google Doc: https://docs.google.com/spreadsheets/d/1JsuKIcLNiqY0hUXJCj2ExJ88qTxQ6PVfN28x99NhVz8/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/13/edit
Convert command
yak geojson -f -p EPSG:4326 tfire.vrt
Google Doc: https://docs.google.com/a/alaska.edu/spreadsheets/d/1JxhCAQPvcGluigToUjKdTQ9JO6jMVkxuDBGHt6i-fXw/edit
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/14/edit
Convert command
yak geojson -f -p EPSG:4326 nome_tvexport.vrt
Google Doc: https://docs.google.com/spreadsheets/d/1XnoIqzhNj0NekVew3tyKoF9DL-hk_5SkrMC7-qlpSZ8/edit
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/87/edit
Convert command
yak geojson -f -p EPSG:4326 atlas1.vrt
Google Doc: https://docs.google.com/spreadsheets/d/1a5SAH0SRNeQmiZQdlSZZdIdhagxzXxY05knUmHsuaqU/edit
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/90/edit
Convert command
yak geojson -f -p EPSG:4326 atlas2.vrt
Google Doc: https://docs.google.com/spreadsheets/d/160jb4039Hp2SN7tFEJXblXPjo3mZ6eUJm4BU-R9E4ns/edit#gid=0" > barrow-ibp.csv
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/91/edit
Convert command
yak geojson -f -p EPSG:4326 barrow-ibp.vrt
Google Doc: https://docs.google.com/a/alaska.edu/spreadsheets/d/1bJsWoFxtDKAcSp28yWFmRZODV8RZHzMpKjpO3a6viME/edit?usp=drive_web" > barrow-ngee.csv
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/92/edit
Convert command
yak geojson -f -p EPSG:4326 barrow-ngee.vrt
Google Doc: https://docs.google.com/spreadsheets/d/1B3Zfsjz1WTVeck3qy1LxUE4PCZghm-nwHz1tVkChJe0/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/93/edit
Convert command
yak geojson -f -p EPSG:4326 legacy.vrt
Google Doc: https://docs.google.com/spreadsheets/d/1_auaWnrHv_7DzNPFJtcxIs52ETToEEVasDL3eAfUuAw/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/94/edit
Convert command
yak geojson -f -p EPSG:4326 pingos.vrt
Google Doc: https://docs.google.com/spreadsheets/d/15WD1v6Jvmx2zcT9zy-o49Wpl5vjNrHDh27lr3AS_tZE/edit#gid=0" > prudhoe-bay-arcsees.csv
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/95/edit
Convert command
yak geojson -f -p EPSG:4326 prudhoe-bay-arcsees.vrt
Google Doc: https://docs.google.com/spreadsheets/d/1AiYW6ko0hhlfdm38bhNcSyJ9pZaZUoxBbcydY7G0ucY/edit#gid=0
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/96/edit
Convert command
yak geojson -f -p EPSG:4326 unalaska.vrt
Google Doc: https://docs.google.com/spreadsheets/d/1oNX_DDhEtXqb6a-zYwIOJEcKezDyDZXz4IeoyMli7Uk/edit#gid=0" > northslope-arcss.csv
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/97/edit
Convert command
yak geojson -f -p EPSG:4326 northslope-arcss.vrt
Google Doc: https://docs.google.com/spreadsheets/d/1omWwVidybUVjGB5tx2uXFK-geLmsAriYsfRDW243XTY/edit#gid=0" > arctic-network.csv
Ubermap edit: http://ubermap.gina.alaska.edu/geojson_layers/98/edit
Convert command
yak geojson -f -p EPSG:4326 arctic-network.vrt
Google Doc: https://docs.google.com/spreadsheets/d/1y1aQwW69lpE3_-cIQAhvh59hySx1cNeFRTbCFJM2QXU/edit#gid=899663236
Ubermap edit: http://uber.mapbits.org/orgs/aaga/geojson_layers/105/edit
Convert command
yak geojson -f -p EPSG:4326 flxtwrzona.vrt
##hacmldbay
Google Doc: https://docs.google.com/spreadsheets/d/19hPsKk2F6bV-ZkVxo80dtKN5GMxkIENpTw9ROTiFOfQ/edit#gid=0
Ubermap edit: http://uber.mapbits.org/orgs/aaga/geojson_layers/112/edit
Convert command
yak geojson -f -p EPSG:4326 hacmldbay.vrt
Google Doc: https://docs.google.com/spreadsheets/d/19hPsKk2F6bV-ZkVxo80dtKN5GMxkIENpTw9ROTiFOfQ/edit#gid=0
Ubermap edit: http://uber.mapbits.org/orgs/aaga/geojson_layers/112/edit
Convert command
yak geojson -f -p EPSG:4326 hacmldbay.vrt