Skip to content
This repository

This branch is 0 commits ahead and 0 commits behind develop

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 css
Octocat-spinner-32 gft-mod
Octocat-spinner-32 gft
Octocat-spinner-32 google-api-python-client
Octocat-spinner-32 js
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 app.yaml
Octocat-spinner-32 auth.txt.example
Octocat-spinner-32 auth_gae.py
Octocat-spinner-32 connector.py
Octocat-spinner-32 creds.yaml.example
Octocat-spinner-32 frontend.py
Octocat-spinner-32 index.html
Octocat-spinner-32 shp2gft.py
README.md

Overview

This directory contains a Google App Engine app. It can be deployed to App Engine or run in development mode:

dev_appserver.py --disable_static_caching --use_sqlite .

Note that the application depends on a file name auth.txt with Google Earth Engine credentials. See auth.txt.example to see what it looks like.

This directory also contains the shp2gft.py script can be used to bulkload shapefiles to Google Fusion Tables. It supports specifying the max number of polygons (rows) per table. It also supports uploading in parallel using multiprocessing.

Usage

Type shp2gft.py --help for full usage information:

$ ./shp2gft.py --help
Usage: shp2gft.py [options]

Options:
  -h, --help    show this help message and exit
  -d DIR        Directory containing the Shapefiles.
  -t TABLE      Base table name.
  -e EMAIL      The GMail address used for authentication.
  -f CONFIG     The config YAML file.
  -n MAX_ROWS   Maximum polygons per table.
  -p PROCESSES  Number of processes.
  -c CHUNKS     Number of chunks per process.

Here's an example run:

$ ./shp2gft.py -d /data/jetz/cody -t mol-test-run -e eightysteele@gmail.com -f creds.yaml -n 1000

Configuration

The -f command line option points to a configuration file with your OAuth client id and secret. See creds.yaml.example to see what it should look like.

Something went wrong with that request. Please try again.