This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## UBUNTU 18.04 | |
## HOW TO INSTALL QGIS SERVER | |
# add to /etc/apt/sources.list these lines [ sudo nano /etc/apt/sources.list ] | |
deb https://qgis.org/ubuntu bionic main | |
deb-src https://qgis.org/ubuntu bionic main | |
# run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo adduser geonode | |
sudo usermod -aG sudo geonode | |
su geonode | |
## Install Docker http://docs.geonode.org/en/master/install/core/docker/ubuntu.html | |
sudo add-apt-repository universe | |
sudo apt-get update -y | |
sudo apt-get install -y git-core git-buildpackage debhelper devscripts | |
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
affine==2.3.0 | |
asgiref==3.2.3 | |
astroid==2.2.5 | |
attrs==19.2.0 | |
certifi==2019.9.11 | |
Click==7.0 | |
click-plugins==1.1.1 | |
cligj==0.5.0 | |
cloudpickle==1.2.2 | |
colorama==0.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------ | |
CONFIGURE SERVER FOR GIS | |
------------------------ | |
sudo su | |
apt update | |
apt upgrade | |
apt install apache2 | |
------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Install dependencies | |
# Install packages from GeoNode core | |
sudo apt install -y gdal-bin | |
sudo apt install -y python3-pip python3-dev python3-virtualenv python3-venv virtualenvwrapper | |
sudo apt install -y libxml2 libxml2-dev gettext | |
sudo apt install -y libxslt1-dev libjpeg-dev libpng-dev libpq-dev libgdal-dev libgdal20 | |
sudo apt install -y software-properties-common build-essential | |
sudo apt install -y git unzip gcc zlib1g-dev libgeos-dev libproj-dev | |
sudo apt install -y sqlite3 spatialite-bin libsqlite3-mod-spatialite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import os | |
import rasterio | |
import rasterio.warp | |
import rasterio.features | |
from rasterio.enums import Resampling | |
from rasterio import Affine, MemoryFile | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from processing.gui.wrappers import WidgetWrapper | |
from qgis.PyQt.QtWidgets import QDateEdit | |
from qgis.PyQt.QtCore import Qt, QCoreApplication, QDate | |
from qgis.core import QgsProcessing | |
from qgis.core import QgsProcessingAlgorithm | |
from qgis.core import QgsProcessingMultiStepFeedback | |
from qgis.core import QgsProcessingParameterFolderDestination | |
from qgis.core import QgsProcessingParameterFile | |
from qgis.core import QgsProcessingParameterRasterDestination, QgsProcessingParameterRasterLayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from processing.gui.wrappers import WidgetWrapper | |
from qgis.PyQt.QtWidgets import QDateEdit | |
from qgis.PyQt.QtCore import Qt, QCoreApplication, QDate | |
from qgis.core import QgsProcessing | |
from qgis.core import QgsProcessingAlgorithm | |
from qgis.core import QgsProcessingMultiStepFeedback | |
from qgis.core import QgsProcessingParameterFolderDestination | |
from qgis.core import QgsProcessingParameterFile | |
from qgis.core import QgsProcessingParameterRasterDestination, QgsProcessingParameterRasterLayer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qgis.core import QgsProcessing | |
from qgis.core import QgsProcessingAlgorithm | |
from qgis.core import QgsProcessingMultiStepFeedback | |
from qgis.core import QgsProcessingParameterRasterLayer | |
from qgis.core import QgsProcessingParameterRasterDestination | |
from qgis.core import QgsCoordinateReferenceSystem | |
import processing | |
class Copernicus(QgsProcessingAlgorithm): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------ | |
INSTALL GEOSERVER UNDER TOMCAT 8 | |
------------------------------ | |
//Install JAVA 8 for Geoserver | |
apt install openjdk-8-jdk | |
//Install Tomcat8 https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04 |
OlderNewer