**Home | Real-world Examples** |
Our geoAnalytics package uses PostGres and PostGIS for storing raster data. Furthermore, geoAnalytics package uses SPARK for running distributed algorithms. Thus, it is important for the administrator to setup the necessary computing environment.
###1.1. Pre-requisite
###1.2. Installation
pip install geoAnalytics
Execute the below commands to establish a connection to the repository. Please note that the below commands have to be executed only once to establish connection for the next time.
from osgeo import gdal
from geoAnalytics import repository as repo
repo.connect(repositoryName='repositoryName',hostIP='ipaddress',user='userName', password='passwd')
# Re-execute the above step if there exists any typo
repo.testConnection()
Please contact the system administrator if you face any issues after executing the above command.
repo.create(repositoryName='repoName',totalBands=numberOfBands)
repo.clone(repositoryName='sourceRepositoryName', cloneRepositoryName='newRepositoryName')
repo.deleteBands(repositoryName='clone_kaguya_MI_test', bandNumber='1')
repo.delete(repositoryName='clone_kaguya_MI_test')
repo.getSize(repositoryName='sourceRepositoryName')