Skip to content

Conversation

Hagellach37
Copy link
Member

@Hagellach37 Hagellach37 commented Apr 28, 2020

This implements #333

  • tasking manager geometries are simpler (bounding box instead of convex hull)
  • use a coordinate precision of 7 digits
  • we additionally export the project extent as geojson file during project creation

Further it fixes a small bug in setting up the logger.

@Matthias-Schaub could you review this in the coming days?

@Hagellach37
Copy link
Member Author

Hey @Matthias-Schaub,
can you take a quick look at this one in the coming days? :)

project.calc_required_results()
# Save project and its groups and tasks to Firebase and Postgres.
project.save_project()
project.save_project
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a typo: save_project is a function and should therefor be called with parenthesis ()

print(len(data))

# save as geojson one by one
for i, project in enumerate(data):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable i is never used. Maybe for project in data: is enough?

try:
geometries = [ogr.CreateGeometryFromWkt(wkt_geom)]
geojson_functions.create_geojson_file(geometries, outfile)
except Exception as e:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e is never used: except Exception is enough.

pass is not needed in the exception. Only if nothing (no printing for example)/ no statement is in the exception clause then pass can be used.

@Matthias-Schaub Matthias-Schaub self-requested a review May 5, 2020 15:55
@Hagellach37 Hagellach37 merged commit cd2f1c0 into dev May 7, 2020
@Hagellach37 Hagellach37 deleted the tasking_manager_geometries branch May 7, 2020 18:41
@Hagellach37 Hagellach37 mentioned this pull request May 8, 2020
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants