Skip to main content

Spatial Analysis F* Engine

Project description

safe - spatial analysis functional engine

Python based toolkit to implement spatial analysis that involve raster and vector data.

It was built because we did not want to worry about the differences between osgeo.gdal and osgeo.ogr, or WCS and WFS.

This is the result of mixing mathematicians and engineers and tasking them to create simulations to prepare for natural hazards with very short deadlines.

Features

  • Unified API to work with Raster and Vector objects.

  • Uses GDAL/OGR and Numpy in the backend.

  • Simple plugin module for creating your own functions and registering them in the engine.

  • Built-in interpolation operations for most common needs (Raster - Raster, Raster - Point, Raster - Polygon )

  • Autodiscovery of compatible functions based on layer metadata.

  • Support for output styles (SLD - OGC Styled Layer Descriptors).

  • Able to use layers from remote OGC compatible web services (WFS / WCS) (not implemented)

  • Designed to be easy to implement within QGIS and GeoNode.

Installation

  1. Install dependencies

    You will need NumPy, Nose and GDAL.

    In Ubuntu, you can do it like this:

    sudo apt-get install python-numpy python-gdal python-nose
  2. Install this package:

    pip install python-safe

    If you do not have pip installed but only easy_install, you can do easy_install pip and then use it to install python-safe.

  3. To verify everything is working as it should do, open a python shell and do:

    import safe
    safe.test()

    You can pass additional parameters to the test function, for example: verbose=2 to view the test names.

For Developers

The source code and issue tracker can be found at http://github.com/AIFDR/python-safe

To install a development version instead of the last release you can do:

pip install -e git+git://github.com/AIFDR/python-safe.git#egg=python-safe

Or use the old fashioned:

git clone git://github.com/AIFDR/python-safe.git
cd python-safe
python setup.py install

Thanks

This package was originally created with funding from AusAID, Indonesia’s BNPB, The World Bank and GFDRR.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

python-safe-0.1.21.zip (2.3 MB view hashes)

Uploaded Source

python-safe-0.1.21.tar.gz (2.3 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page