<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 19, 2020 at 1:16 PM Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Am 19. November 2020 15:52:18 MEZ schrieb "Anna Petrášová" <<a href="mailto:kratochanna@gmail.com" target="_blank">kratochanna@gmail.com</a>>:<br>
><br>
>On Thu, Nov 19, 2020 at 8:02 AM Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>><br>
>wrote:<br>
>><br>
>> But maybe we could take this idea and create a more sophisticated<br>
>> mechanism, extending g.mapsets to allow creating a read-only access to<br>
>> mapsets even outside the current location, as long as the reference systems<br>
>> are identical (would just requiring the PROJ files to be identical be<br>
>> enough ? Too restrictive ?).<br>
>><br>
<br>
... And I think using g.mapsets (or whatever this would then be called) to add a subdirectory of another project to those available in the current project would not be such a daunting challenge to new users either.<br>
</blockquote><div><br></div><div>This makes a lot of sense to me by itself. To extend the search path to include mapsets in other locations (using the current terminology), g.mapsets could accept full paths, check the CRS, and store the path in the search path. The logic could be (most relevant pieces only):</div><div><div><br></div><div>If the path has no backslashes, add it to the search path (mapset in current location).<br></div><div>If the path has exactly one backslash, try if it is a location in the current database directory. If it is, check the CRS match and add it.</div><div>If the above path checks failed, make it absolute path and see if it exists. If it does, check the CRS match and add it.</div><div><br></div><div>This also falls nicely into the "simply use paths" idea (i.e., a path instead of triplet db/loc/mapset).<br></div> </div></div></div>