Skip to content

avi278/avi278.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geovisto Data server

Geovisto Data server is tool for Geovisto administrators for easy search and download of open geo datasets.

Installation

Install requirements from file

pip install -r requirements.txt

Setting

Create file token with your GitHub personal access token (will be use for GitHub REST API)

If you need generate token, you can do it here

Usage

python3 downloader.py [-h] [-m MESSAGE] [-if INPUTFILE] [-id ID] [-sn SEARCH_NAME] [-a AMOUNT] [-f [FILTERS ...]] [-ag [AGGS ...]]

options:
  -h,  --help            show this help message and exit
  -m,  --message         message for github commit
  -if, --inputfile      input file with specifics (json file)
  -id                   id from arcgis hub for specific dataset
  -sn, --search_name    name to search
  -a,  --amount          amount of datasets to download
  -f,  --filters         filters search setting
  -ag, --aggs            aggregation search setting

API

Hosted on PythonAnywhere

Domain http://avi278.pythonanywhere.com/

Endpoints Description Example
GET /search/string:name return JSON with best matched datasets /search/cities - search for best matched datasets by name cities
GET /download/string:id return JSON with data and geometry /download/df827f607eb347d49a6cca071ce66d5e_11 - download dataset by id df827f607eb347d49a6cca071ce66d5e_11
GET /files return JSON with files in resources /files - return geo, config and data
GET /file/string:dir/string:subdir/string:file return JSON content of file /file/resources/geo/country_polygons.json - return JSON content of country_polygons.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published