[GRASS-dev] [GRASS GIS] #3444: v.concave.hull -script type definition for table column not compatible with PostgreSQL

GRASS GIS trac at osgeo.org
Thu Nov 16 01:45:27 PST 2017


#3444: v.concave.hull -script type definition for table column not compatible with
PostgreSQL
----------------------------------------+-------------------------
 Reporter:  harrik                      |      Owner:  grass-dev@…
     Type:  defect                      |     Status:  new
 Priority:  normal                      |  Milestone:
Component:  Addons                      |    Version:  7.2.0
 Keywords:  v.concave.hull, PostgreSQL  |        CPU:  Unspecified
 Platform:  Unspecified                 |
----------------------------------------+-------------------------
 Very simple. The GRASS Addon 'v.concave.hull' has a column definition that
 does not work with the PostgreSQL backend:

 {{{
 Line 98:
 grass.run_command('v.db.addtable', map = out_lines,
                    col = 'cat integer,length double', quiet = True)
 }}}

 That gives an error, whereas the simple replacement of `length double`
 with `length double precision` makes the script run:


 {{{
 grass.run_command('v.db.addtable', map = out_lines,
                       col = 'cat integer,length double precision', quiet =
 True)
 }}}

 This should run at least with the sql-based backends since based on MySQL
 and SQLite documentation the `double precision` is the full type name
 anyway, but I do not know about DBF. But from what I've understood, the
 use of DBF is not recommended any more anyway.

 I could easily fix this myself, but I do not have write access to sources.

 Harri

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3444>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list