GeoNode Installation Process in Windows OS

Hi Guys, This blog I am writing to guide you through the installation process of GeoNode on Windows Operating  system. In general you have so many resources available for installing Geo-Node on Linux system but very few/limited on Windows. Below is my own experience of installation, I hope its useful. I have successfully installed GeoNode development module in my Windows machine and also in Production server.

GeoNode is a web based GIS tool in order to do development on GeoNode itself or to integrate it into your own application, you should be familiar with basic web development concepts as well as with general GIS concepts.

GeoNode Stack Block diagram :

2

 

For deployment GeoNode on a production server, the following are the minimum system requirements:

  • 8GB of RAM.
  • 2.2GHz processor. (Additional processing power may be required for multiple concurrent styling renderings)
  • 10 GB software disk usage.
  • Additional disk space for any data hosted with GeoNode and tiles cached with GeoWebCache. For spatial data, cached tiles, and “scratch space” useful for administration, a decent baseline size for deployments is 100GB.
  • 64-bit hardware recommended.

Prerequisites:

  1. Java JDK (64/32-Bit) version 1.7 update 79.
  2. Python 2.7 32-Bit version.
  3. PIP and virtual environment
  4. Microsoft Visual C++ Compiler 2008
  5. PostgreSQL Database 9.5 32 Bit
  6. GDAL and GEOS Libraries.
  7. Pyscopg2 32 Bit
  8. Ant and Maven Build Tools (optional).
  9. Git
  10. node and npm.

Basic Environment Variable Set up :

  1. For Java, you need to set JAVA_HOME path like C:\Program Files\Java\jdk1.7.0_79.
  2. For Python, you need to set Python path like C:\Python27\python.exe.
  3. For ANT_HOME, you need to set ANT_HOME path like C:\apache-ant-1.9.7
  4. For ANT_OPTS, you need to set ANT_OPTS path like -Xmx256m
  5. For MAVEN_HOME, you need to set MAVEN_HOME path like C:\Program Files\apache-maven-3.3.9\bin
  6. For MAVEN_OPTS, you need to set MAVEN_HOME path like -Xms256m -Xms512m

 Prerequistic Installation Files:

  • Download and Install Java 1.7u79 64 bit version (plain vanilla installation).
  • Download and install Python 2.7 32 bit (simple installation).
  • Setup PYTHON_PATH in Environment Variables.
  • Create Virtual Environment using Installed Python Version.
  • Download and Install VC++ setup.exe (simple installation).
  • Install PostgreSQL latest 32 bit version and setup  postgis through Stack Builder
    • Create a role GEONODE
    • Create a database GEONODE
    • Create a database GEONDOE_DATA
    • Create a POSTGIS Extension .

Run PostgreSQL and create two database named “Geonode” & “Geonode_Data” with user role named “Geonode”. Create postGIS extension for each database and grant the privileges.

Run this commands :

CREATE EXTENSION postgis;

GRANT ALL ON geometry_columns TO PUBLIC;

GRANT ALL ON spatial_ref_sys TO PUBLIC;

Download the Pyscopg2 for python 2.7 32 Bit version and install.

Copy psycopg2-2.6.1-cp27-cp27m-win32.whl file inside your windows users and run the following command:

  • pip install psycopg2-2.6.1-cp27-cp27m-win32.whl

Note : You need to install it after cloning GeoNode from Github.

  • Install GDAL 1.11.3 Python Package for Python 2.7

Copy GDAL-1.11.3-cp27_none_win32.whl file inside your windows users and run the following command:

  • pip install GDAL-1.11.3-cp27_none_win32.whl

Note : You need to install it after cloning GeoNode from Github.

Create Environment Variables for GDAL also like Java, Python, Apache Ant & Apache Maven.

GDAL_DATA:

GDAL_DRIVER_PATH:

GDAL_LIBRARY_PATH:

  • GEOS Installation:
    • Download OSGEO4W binary setup file from osgeo.org
    • Install and run the application.
    • Click on advanced installation and select GEOS library.
    • Install the selected version and create environment variables.
      • GEOS_LIBRARY_PATH
      • GEOS_DRIVER_PATH
  • Install Ant and Maven 32 bit version and install and create the Environment Variables in the System Path.

Install all the prerequisites and set the environment path variables before proceeding further.

Step by Step installation process for Windows Base Systems :

Install and configure from the windows command prompt and to install python virtualenv follow these steps:

  • easy_install virtualenv [i.e. virtualenv is an folder name for creating Geonode instance]
  • virtualenv geonode_example
  • geonode_example\Scripts\activate

cd<Select directory to install the virtualenv &geonode>

virtualenv<give a name of virtualenv folder>

virtualenv<activate virtual environment by this command: “virtualenvfolder name”>\scripts\activate>

Clone GeoNode from github:

  • git clone https://github.com/Geonode/geonode.git

After completion of cloning GeoNode from github you should have to install GDAL & Psycopg2. To install this two dependencies please keep these two source file inside your Windows users and run these following command:

  • pip install GDAL-1.11.3-cp27_none_win32.whl [Before install GDAL copy this file inside your windows users.
  • pip install psycopg2

Goto your geonode folder through virtual environment:

  • cd geonode                                                                                                                                                                                                                                                                                                                                                                   Install Python native dependencies
  • pip install paver
  • paver win_install_deps                                                                                                                                                                                                                                                                                                                                        Install GeoNode in the local virtualenv (Note: Make sure that you have entered dot(.) ):
  • pip install -e .

Set Up GeoServer :   

  • paver setup

Note: Paver handles dependencies for Geonode, first setup (this will download and update your python dependencies and ensure you’re in a virtualenv) ·

Connect with postgresdatabase: Change the database configuration in local_settings.py file then run this command.

Note: Paver handles dependencies for Geonode, first setup (this will download and update your python dependencies and ensure you’re in a virtualenv) ·

Connect with postgresdatabase: Change the database configuration in local_settings.py file then run this command.

  • python manage.py syncdb

Create Superuser to login into Geonode platform:

  • python manage.py createsuperuser

·         finally you need to start your GeoServer through command prompt.

To start GeoServer, run this command from windows command prompt.

Ø  paverstart_geoserver  ·

Once your GeoServer is running up you need to start Django through command prompt

Ø  paverstart_django.

After successfully running these two commands, your GeoNode will up and running.

3

1

For any issues, please mail me :  support@geoithub.com or comment below

Reference:

  1. GeoNode Official page
  2. GeoNode Installation Documentation 

Related Posts

About The Author

Leave a Reply

2 Comments on "GeoNode Installation Process in Windows OS"

Notify of

Sort by:   newest | oldest | most voted
Guest
Jeffrey johnson
10 months 14 days ago

Curious if you tried the Windows installer?

wpDiscuz
Sign Up
Fields with (*) are required
Account Info
Password must be at least 7 characters long. To make it stronger, use upper and lower case letters, numbers and symbols.
Type your password again.
 
Profile Info
 
 
Prove you're not a robot