[GRASS-dev] what use are the mysites and point maps in the demolocation ?

Moritz Lennert mlennert at club.worldonline.be
Tue Aug 4 15:02:13 PDT 2020


On 4/08/20 23:16, Markus Neteler wrote:
> On Tue, Aug 4, 2020 at 3:24 PM Moritz Lennert
> <mlennert at club.worldonline.be> wrote:
>> Hello,
>>
>> In the context of the complete revamping of the GRASS GIS GUI startup,
>> the idea is to use the existing demolocation as a possible basis for a
>> direct entry into GRASS GIS without going through complicated location
>> setup (which will then be offered through the data catalog). In that
>> context, I was wondering whether the mysites and point maps in that
>> demolocation are used by anything. I cannot find any in the code.
> Try the "silver searcher" (`ag`) :-) Fast and accurate:
>
> ag --html mysites
> db/db.execute/db.execute.html
> 38:db.execute sql="INSERT INTO mysites (id,name,east,north) values
> (30,'Ala',1657340,5072301)"
>
> lib/db/sqlp/sql.html
> 137:v.db.select mysites where="id LIKE 'P__'"
> 140:v.db.select mysites where="id LIKE 'P%'"


Just a simple grep found those ;-), but comparing those to the mysites 
file in the demolocation indicatates that these examples have no 
relation with the mysites map in the demolocation.


There is no id field in the mysites maps, and certainly no name, east 
nor north...

Moritz


More information about the grass-dev mailing list