Replies: 2 comments 1 reply
-
Another reconfiguration, currently better in my mind, is to have Resource and WarpedResource (inspired by rasterio's WarpedVRT). A Resource is the original image (an "unprepared" Document), and WarpedResource would combine pieces that are now stored separately in sessions... A division extent (or "mask", the area of the original image to be georeferenced) plus the GCPs to apply to that area. This implementation would also more closely reflect the structure of the IIIF spec's new Georeference Extension. The preparation and georeference workflows would have to be altered a bit to implement this, and existing session data would need to be interrogated to create new WarpedResources to reflect all existing content, especially the association of The big advantage this approach has is to begin incrementally moving away from the need to have individual files for each split piece of the original documents. |
Beta Was this translation helpful? Give feedback.
-
Though the details had evolved beyond what is described above, the whole discussion was ultimately implemented through #212 and #217, now merged into main and fully deployed. |
Beta Was this translation helpful? Give feedback.
-
Background
Currently, the loc_insurancemaps app has a ResourceBase model that is inherited by the Layer and Document proxy models. Conceptually, this is still something of a holdover from the GeoNode CMS; even though GeoNode's Document and Layer models were replaced with my own here, to ease that transition I mimicked that CMS more closely than is really necessary going forward. In reality, the Layer model offers very little extra functionality over the Document model, so the functional need for these two different proxy models is dubious.
Further, the need to store a separate database instance for a Document alongside a Layer instance (which results directly from the process of georeferencing it, e.g. holds the GeoTIFF) doesn't really hold up under scrutiny. There is no functional reason these two instances can't be combined and reference the original map scan through one field and the resulting GeoTIFF in another field. Thus, each Document/Layer pair can and should ultimately be combined into a single new Resource instance.
Potential approach
content
appVolume().layer_lookup
andVolume().document_lookup
would now obviously be merged into something likeresource_lookup
and the Volume summary will need to handle this new lookup.Additional context
Started this as an issue, but quickly decided to turn it into a Discussion. Although there is no question that this change will ultimately happen, I think there are still some unknowns that are worth more deliberation before jumping straight into this model's creation.
Beta Was this translation helpful? Give feedback.
All reactions