Skip to content

Commit

Permalink
Merge pull request #14 from nens/casper-fixosxbuild
Browse files Browse the repository at this point in the history
Attempt to fix OSX build + badges
  • Loading branch information
caspervdw committed Nov 1, 2019
2 parents b86f102 + 3001842 commit cbc2033
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
dask-geomodeling
==========================================

.. image:: https://readthedocs.org/projects/dask-geomodeling/badge/?version=latest
:target: https://dask-geomodeling.readthedocs.io/en/latest/?badge=latest

.. image:: https://travis-ci.com/nens/dask-geomodeling.svg?branch=master
:target: https://travis-ci.com/nens/dask-geomodeling

.. image:: https://badge.fury.io/py/dask-geomodeling.svg
:target: https://badge.fury.io/py/dask-geomodeling

.. image:: https://anaconda.org/conda-forge/dask-geomodeling/badges/version.svg
:target: https://anaconda.org/conda-forge/dask-geomodeling

Dask-geomodeling is a collection of classes that are to be stacked together to
create configurations for on-the-fly operations on geographical maps. By
generating `Dask <https://dask.pydata.org/>`_ compute graphs, these operation
Expand Down
8 changes: 4 additions & 4 deletions dask_geomodeling/tests/test_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def test_intersect_with_request(self):

# return only the intersection with the bbox
result = view.get_data(**self.request)
self.assertAlmostEqual(1.0, result["features"].iloc[0]["geometry"].area)
self.assertAlmostEqual(1.0, result["features"]["geometry"].iloc[0].area)

# return the intersected extent
self.request["mode"] = "extent"
Expand All @@ -326,7 +326,7 @@ def test_difference(self):
# the result should be the difference between the two polygons
result = view.get_data(**self.request)
self.assertEqual(1, len(result["features"]))
self.assertAlmostEqual(3.0, result["features"].iloc[0]["geometry"].area)
self.assertAlmostEqual(3.0, result["features"]["geometry"].iloc[0].area)

def test_difference_with_empty_source(self):
view = set_operations.Difference(self.empty, self.source)
Expand All @@ -352,7 +352,7 @@ def test_difference_with_empty_other(self):
# but the result should be unchanged
result = view.get_data(**self.request)
self.assertEqual(1, len(result["features"]))
self.assertAlmostEqual(4.0, result["features"].iloc[0]["geometry"].area)
self.assertAlmostEqual(4.0, result["features"]["geometry"].iloc[0].area)

def test_difference_different_id(self):
# Define a second datasource that produces a geometry with different ID
Expand All @@ -365,7 +365,7 @@ def test_difference_different_id(self):
# the result should contain the original geometry, unchanged
result = view.get_data(**self.request)
self.assertEqual(1, len(result["features"]))
self.assertAlmostEqual(4.0, result["features"].iloc[0]["geometry"].area)
self.assertAlmostEqual(4.0, result["features"]["geometry"].iloc[0].area)

def test_area(self):
view = geom_operations.Area(self.source, projection="EPSG:3857")
Expand Down

0 comments on commit cbc2033

Please sign in to comment.