Skip to content
Snippets Groups Projects
Commit f5b4e25a authored by Duchateau Fabien's avatar Duchateau Fabien
Browse files

minor update

parent 3af04002
Branches master
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ class TestCase(unittest.TestCase): ...@@ -43,7 +43,7 @@ class TestCase(unittest.TestCase):
lat1 = 50.865983520113346 lat1 = 50.865983520113346
long2 = 2.607984899697411 long2 = 2.607984899697411
lat2 = 50.98885556985259 lat2 = 50.98885556985259
polygon = self.db.convert_geojson_box_to_polygon(long1, lat1, long2, lat2) polygon = Mongiris.convert_geojson_box_to_polygon(long1, lat1, long2, lat2)
cursor = self.db.geo_within(self.db.collection_iris, polygon) cursor = self.db.geo_within(self.db.collection_iris, polygon)
for doc in cursor: for doc in cursor:
self.db.logger.info(str(doc["_id"]) + "\t" + doc["properties"]["NOM_IRIS"] + "\t" + doc["properties"]["CODE_IRIS"]) self.db.logger.info(str(doc["_id"]) + "\t" + doc["properties"]["NOM_IRIS"] + "\t" + doc["properties"]["CODE_IRIS"])
...@@ -108,4 +108,5 @@ class TestCase(unittest.TestCase): ...@@ -108,4 +108,5 @@ class TestCase(unittest.TestCase):
if __name__ == "__main__": if __name__ == "__main__":
unittest.main(verbosity=2) # run all tests with verbose mode unittest.main(verbosity=2) # run all tests with verbose mode
\ No newline at end of file
File moved
[metadata] [metadata]
name = mongiris name = mongiris
version = 0.3 version = 0.32
description = This package is an interface for querying INSEE IRIS stored as documents in MongoDB. Requires loading the IRIS files into MongoDB prior to using this package. description = This package is an interface for querying INSEE IRIS stored as documents in MongoDB. Requires loading the IRIS files into MongoDB prior to using this package.
author = Fabien Duchateau author = Fabien Duchateau
author_email = fabien.duchateau@univ-lyon1.fr author_email = fabien.duchateau@univ-lyon1.fr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment