GithubHelp home page GithubHelp logo

gfdrr / nepal-geonode Goto Github PK

View Code? Open in Web Editor NEW
0.0 8.0 1.0 374.16 MB

GeoNode for Nepal

License: GNU General Public License v3.0

Python 74.58% HTML 16.28% Shell 7.93% Makefile 0.12% JavaScript 0.21% Dockerfile 0.89%
geonode python nepal django geoserver gis sdi spatial-data-infrastructure

nepal-geonode's Introduction

GeoNode for Nepal

Setup instructions:

  1. Install external dependencies as follows:

    # Install Ubuntu dependencies
    sudo apt update
    sudo apt install python-virtualenv python-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpq-dev libgdal-dev git default-jdk
    
    # Install Java 8 (needed by latest GeoServer 2.9)
    sudo apt install oracle-java8-installer 
    
  2. Create a new virtualenv with python 2.x

  3. Clone this repo

  4. Install project dependencies using pip install -r requirements.txt

  5. Install gdal-bin and pygdal

    sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update
    sudo apt-get install gdal-bin
    # Check GDAL version
    gdalinfo --version
    	
    # install the correct PyGDAL version (>1.10.1)
    pip install pygdal==`gdal-config --version`
    
    # if you cannot find exactly the same version, be sure to install at least the closer major one e.g. 2.1.2 -> 2.1.2.3
    
  6. Setup postgres databases as follows:

    $ su postgres
    $ createdb nepal_geonode
    $ createdb nepal_geonode_data
    $ psql
    	postgres=#
    	postgres=# \password postgres
    	postgres=# CREATE USER nepal_geonode WITH PASSWORD '$PASSWORD_HERE';
    	postgres=# GRANT ALL PRIVILEGES ON DATABASE "nepal_geonode" to nepal_geonode;
    	postgres=# GRANT ALL PRIVILEGES ON DATABASE "nepal_geonode_data" to nepal_geonode;
    	postgres=# \q
    
    $ psql -d nepal_geonode_data -c 'CREATE EXTENSION postgis;'
    $ psql -d nepal_geonode_data -c 'GRANT ALL ON geometry_columns TO PUBLIC;'
    $ psql -d nepal_geonode_data -c 'GRANT ALL ON spatial_ref_sys TO PUBLIC;'
    $ exit
    
  7. paver setup

  8. paver sync

Instruction to run project:

  • Run geoserver using

    paver start_geoserver

  • Run django server using

    python manage.py runserver

nepal-geonode's People

Contributors

code-geek avatar diwasblack avatar sujitmhj avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sujitmhj

nepal-geonode's Issues

Editing OSM attributes

I've implemented an automatic OSM extraction module in the Nepal GeoNode, basing it off of Malawi's implementation here: https://github.com/MalawiGeospatialTools/osm-extract

Been trying to edit the ini files in order to only extract the attributes we need. However, it's throwing this error:

ERROR 1: Could not parse configuration file for OSM import
FAILURE:
Unable to open datasource `nepal/aerodromes_point.pbf' with the following drivers.
......
Makefile:142: recipe for target 'aerodromes_point.sql' failed
make: *** [aerodromes_point.sql] Error 1111

Can't download rasters

For example, trying to download this raster throws the following error:

illegal bbox, minX: 80.05222511269886 is greater than maxX: 26.348658288889002 []

I found a similar issue on the main GeoNode repo from a while ago:
GeoNode/geonode#1485

It's not immediately clear what the fix is.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.