App Restructure - model migrations#100
Merged
Merged
Conversation
Signed-off-by: Adam Cox <mr.adamcox@gmail.com>
Signed-off-by: Adam Cox <mr.adamcox@gmail.com>
Signed-off-by: Adam Cox <mr.adamcox@gmail.com>
…surancemaps into app_restructure
Member
Author
|
Update: I have gone ahead and added substantially more changes than I was planning on initially including here. Main reason being that I felt no rush to complete this merge, as activity on the site is so low that I've been comfortable running it on the New features beyond what is mentioned above:
Ultimately, two aspects of GeoNode remain in some form: user accounts (Profile) and Regions. Technically, Regions are no longer used, but they are still referenced in this code-base because their replacement, Place, needs a bit more work. User accounts/profiles will require another restructuring at a later date. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A big update, covering many tasks described in #99, as well as a few other smaller tickets. To summarize:
/viewer/<place-slug>that aggregates all volumes for a given Place (e.g. city). Closes Create standalone map view for a volume. #49.extenton georeferencing interface that allows a preset extent to be passed into the map viewer. Closes [Request] Use Key Map/reference layers to zoom georeferencing interface. #95 (it's not exactly the same, but close enough!).Most of all, this PR includes new Layer and Document models that combine the default GeoNode models (of the same names) with the "proxy" models I had created in the georeference app. There is also a management command
update_modelsthat takes the attributes and tiff/jpg files from the GeoNode model instances and creates instances of the new models with that data. This fully. All interfaces that used to pull layers into maps have been updated to use the GeoTIFFs from the new instances, passed through TiTiler. The Layer and Document detail pages, which are still default GeoNode templates, are no longer fully supported (though they have not yet been replaced). The Volume Summary, Viewer, Volume Trim, all use the new model instances.The session locking system has been disabled on all of the three georeferencing interfaces, as the actual splitting and georeferencing workflows have not yet been fully updated to use the new model instances anyway, so it's better to have the live previews easily accessible just for fun in the meantime. The single layer Trim interface will be removed--it serves no real purpose going forward as layer trimming is now handled on a per-volume basis in the Volume Trim interface.