[GRASS-dev] [GRASS GIS] #2044: NC demolocation should include sqlite dirs in mapsets

#2044: NC demolocation should include sqlite dirs in mapsets
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
As mention in #1358, the sqlite driver does not work by default in grass7
if there is no sqlite directory in the mapset. When the user creates a new
mapset, such a directory is created automatically. However, the NC demo
data for GRASS7 at [1] does not contain such directories in the user1 and
the landsat mapsets.

While it would probably be preferrable to alter the sqlite driver so that
it creates the directory if needed, it might be worthwile, in the
meantime, to include these directories to avoid bad first time experiences
for new users.

[1]
http://grass.osgeo.org/sampledata/north_carolina/nc_spm_08_grass7.tar.gz

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2044&gt;
GRASS GIS <http://grass.osgeo.org>

#2044: NC demolocation should include sqlite dirs in mapsets
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by neteler):

For now I have fixed the package (also the reduced one) on the server.

Still the software update is needed, hence not closing.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2044#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2044: NC demolocation should include sqlite dirs in mapsets
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Keywords: sqlite | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by neteler):

  * keywords: => sqlite
  * component: Default => Database

Comment:

Replying to [comment:1 neteler]:
> For now I have fixed the package (also the reduced one) on the server.
>
> Still the software update is needed, hence not closing.

To be continued in ticket #1358, closing here since data set issue is
solved.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2044#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2044: NC demolocation should include sqlite dirs in mapsets
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Resolution: fixed | Keywords: sqlite
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2044#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#2044: NC demolocation should include sqlite dirs in mapsets
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Resolution: fixed | Keywords: sqlite
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by hamish):

> When the user creates a new mapset, such a directory is created
automatically.

that should happen at happen whenever the directory is needed and it
doesn't already exist. Really, it should ''not'' be created when the
mapset is created, only on demand.
(flush out the bugs now rather than later, see earlier discussions about
dbf/ ...)

> While it would probably be preferrable to alter the sqlite driver
> so that it creates the directory if needed,

it's not just preferable, it's essential, especially for people changing
versions and so entering old mapsets with new versions of the software.
But anyway, hopefully that problem was fixed in trunk some months ago with
r57276. AFAICT that has not been backported to GRASS 6, if it would be
needed there.

>> To be continued in ticket #1358

regards,
Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2044#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#2044: NC demolocation should include sqlite dirs in mapsets
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Resolution: fixed | Keywords: sqlite
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------

Comment(by neteler):

Replying to [comment:4 hamish]:
> AFAICT that has not been backported to GRASS 6, if it would be needed
there.

Why should it be backported? The sqlite.db is not residing in a
subdirectory in G6.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2044#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>