Skip to main content
.. -*- mode: rst -*-

.. |Python35| image:: https://img.shields.io/badge/python-3.5-blue.svg

geospatial-learn
============

geospatial-learn is a Python module for using scikit-learn and xgb models with geo-spatial data, chiefly raster and vector formats.

The module also contains various fuctionality for manipulating raster and vector data as well as some utilities aimed at processing Sentinel 2 data.

The aim is to produce convenient, minimal commands for putting together geo-spatial processing chains using machine learning libs. Development will aim to expand the variety of libs/algorithms available for machine learning beyond the current complement.


Dependencies
~~~~~~~~~~~~

geospatial-learn requires:

- Python 3

User installation
~~~~~~~~~~~~~~~~~

At present the setup.py only installs some of the dependencies. An anaconda package is in the works, but until that is done please do the following. This assumes you have an anaconda installation with a python 3 root OR env.

Linux - based
~~~~~~~~~~~~~~~~~

Library & pypi install

Step 1.

- open a terminal and type:

.. code-block:: bash

pip install geospatial-learn

OR

- download the zip from here:

https://github.com/Ciaran1981/geospatial-learn/raw/master/archive/geospatial-learn-0.1.tar.gz


- cd into the folder

- open a terminal and type:

.. code-block:: bash

python setup.py install

This will install the library and packages unavailable on anaconda.

Step 2.

Conda is very handy at managing packages, hence the 2 stage install, as some of these are external to python or themselves have multiple depends.

Next, type the following (in the same terminal).

.. code-block:: bash

chmod +x install_conda_packages.sh

bash ./install_conda_packages.sh

All the appropriate anaconda packages will then install

Windows - based
~~~~~~~~~~~~~~~~~

Commiserations, you are using Windows (hehe). This seems to work, though I have only tested on 1 machine.

Library & pypi install

Step 1.

- open a powershell/anaconda prompt and type:

.. code-block:: bash

pip install geospatial-learn

OR

- download the zip from here:

https://github.com/Ciaran1981/geospatial-learn/raw/master/archive/geospatial-learn-0.1.tar.gz

- cd into the folder

- open a powershell and type:

.. code-block:: bash

python setup.py install

This will install the library and packages unavailable on anaconda.

Step 2.

Conda is very handy at managing packages, hence the 2 stage install, as some of these are external to python or themselves have multiple depends.

Next, type the following (in the same terminal).

.. code-block:: bash

.\install_conda_packages.bat

If you run into problems here, such as certain packages unavailable with Python 3.5/6, I suggest creating a conda environment with python 3.4, then following the above procedure. At the time of writing for example (31/08/17), gdal is not available in py3.5+ on windows anaconda and py3.6 on linux platforms.

I have not provided xgboost instructions here, there are some on the native website along with ensuring the lib points to your python environment of choice.


Quickstart
----------

A summary of some functions can be found here:

https://github.com/Ciaran1981/geospatial-learn/blob/master/docs/quickstart.rst

This is currently a work in progress of course!

Docs
----

Documentation can be found here:

http://geospatial-learn.readthedocs.io/en/latest/

These are a work in progress!


Development
-----------

New contributors of all experience levels are welcome

Useful links
~~~~~~~~~~~~~~~
Here are some links to the principal libs used in geospatial-learn.

https://github.com/scikit-learn/

http://xgboost.readthedocs.io/en/latest/

http://scikit-learn.org/stable/

http://www.gdal.org/

http://www.numpy.org/

https://www.scipy.org/

http://scikit-image.org/

Submitting a Pull Request
~~~~~~~~~~~~~~~~~~~~~~~~~
available soon

Project History
---------------

Geospatial-learn was originally written by Dr Ciaran Robb, University of Leicester. The functionality was written as part of various research projects involving Earth observation & geo-spatial data.

Geospatial-learn is currently written and maintained by Ciaran Robb and John Roberts. The module is at a very early stage at present and there is more material wrtten that has yet to be added.

Help and Support
----------------

available soon

Citation
~~~~~~~~

If you use geospatial-learn in a scientific publication, citations would be appreciated

Metadata

Release files for geospatial-learn 0.129

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geospatial-learn 0.129
File Size Uploaded Provenance Actions
geospatial-learn-0.129.tar.gz 50.2 kB Without provenance Details for geospatial-learn-0.129.tar.gz

Release files / geospatial-learn-0.129.tar.gz

Download URL geospatial-learn-0.129.tar.gz
Size 50.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3e905978316445a234cda5a25014d558e6c3093946657dc3b6814989d19ccf11
BLAKE2b-256 checksum
How to use checksums
6d108bd7d789d3c84b1268052823e67b45527673b23595c0e9ad515900483944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for geospatial-learn 0.129

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page