-
Notifications
You must be signed in to change notification settings - Fork 12
WIP: Multi polygons #391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Multi polygons #391
Conversation
try: | ||
# Create a project object using appropriate class (project type). | ||
project = ProjectType(project_type).constructor(project_draft) | ||
# TODO: here the project.geometry attribute is overwritten |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove here and decide where validate_geometries should be called
mapswipe_workers/mapswipe_workers/project_types/tile_map_service_grid/project.py
Outdated
Show resolved
Hide resolved
mapswipe_workers/mapswipe_workers/utils/tile_grouping_functions.py
Outdated
Show resolved
Hide resolved
mapswipe_workers/mapswipe_workers/utils/tile_grouping_functions.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @TahiraU,
I have put some minor comments. Overall it looks good now. :) Maybe you find some time tomorrow to adjust the small bits and then we can put it into dev. :)
mapswipe-data/api/project_geometries/project_geom_-MC6zDSrCeUXzyCCwTQ_.geojson
Outdated
Show resolved
Hide resolved
mapswipe_workers/mapswipe_workers/project_types/tile_map_service_grid/project.py
Outdated
Show resolved
Hide resolved
mapswipe_workers/mapswipe_workers/project_types/tile_map_service_grid/project.py
Outdated
Show resolved
Hide resolved
mapswipe_workers/mapswipe_workers/project_types/tile_map_service_grid/project.py
Outdated
Show resolved
Hide resolved
mapswipe_workers/mapswipe_workers/utils/tile_grouping_functions.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey,
only some minor comments again. I thnk we need to explicitly remove the files under mapswipe-data
so that they are not uploaded to github.
LOGGING_FILE_PATH = os.path.join(DATA_PATH, "mapswipe_workers.log") | ||
|
||
# number of geometries for project geometries | ||
MAX_INPUT_GEOMETRIES = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we change this to 10? how many geometries do we want to allow to start with?
this is work in progress.
Goal: support multi polygon projects (aka island mapping in MapSwipe) #374