grass icon indicating copy to clipboard operation
grass copied to clipboard

temporal dbif for current mapset only

Open metzm opened this issue 3 years ago • 5 comments
trafficstars

Sometimes only the current mapset must be used by TGIS, particularly if the TGIS db is going to be modified. TGIS dbs in other mapsets can/should not be modified, only queried.

This PR adds functionality to initialize a SQLDatabaseInterfaceConnection with only the current mapset.

metzm avatar Jun 17 '22 17:06 metzm

A related test for TGIS mapset access is failing. This needs to be fixed first before merging.

metzm avatar Jun 20 '22 18:06 metzm

A related test for TGIS mapset access is failing. This needs to be fixed first before merging.

This will require a bit more effort because GRASS TGIS still expects at various different places that a raster/raster3d/vector map can only be registered in a TGIS db in the same mapset where this map is located. This prevents registering maps from a different mapset in a space-time dataset in the current mapset and subsequent modifications of this space-time dataset in the current mapset.

A solution would be to not only store information about the mapset of a map, but also information about the mapset of the space-time dataset that is currently used and where this map is registered in the internal structures of the temporal framework.

The historical background is that a map could only be registered in a space-time dataset if both are in the current mapset.

metzm avatar Jun 23 '22 19:06 metzm

At this point, this seems like something for 8.4.0.

wenzeslaus avatar Mar 23 '23 14:03 wenzeslaus

@metzm shall I bump this PR to 8.4.0?

neteler avatar Apr 16 '23 20:04 neteler

@metzm Please consider merging this PR.

landam avatar Nov 20 '23 17:11 landam