[GRASS-dev] [GRASS GIS] #2300: v.out.ogr: spatialite support not working

#2300: v.out.ogr: spatialite support not working
-----------------------+-----------------------------------
  Reporter: hamish | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.3
Component: Vector | Version: svn-trunk
Resolution: | Keywords: v.out.ogr, spatialite
       CPU: x86-64 | Platform: Linux
-----------------------+-----------------------------------

Comment (by mlennert):

Replying to [comment:8 neteler]:
> Replying to [comment:7 mlennert]:
> > Did you apply Hamish' patch locally ?
>
> No, I didn't.
>
> > Or maybe a question of spatialite version ? I have 4.3.0. with SQLite
version 3.9.2.
>
> I use
>
> [neteler@pgis_north grass70]$ rpm -qa | grep sqlite
> sqlite-devel-3.9.0-1.fc23.x86_64
> sqlite-3.9.0-1.fc23.x86_64
>
> [neteler@pgis_north grass70]$ rpm -qa | grep spatialite
> libspatialite-4.3.0a-1.fc23.x86_64
>
> > The 'POINTZ' error is weird, as AFAIK POINTZ is a response to the
specific shapefile driver option 'SHPT=type' and I don't know how this
gets chosen for the SQLite format.
>
> Maybe the wrong driver is picked up?

But why ? And why with you and not for me ?

I've just attached a patch that implements Hamish' solution for release70.
With this I can export the points without error.

But as Hamish mentioned, this is only a partial solution and the module
probably needs similar fixes for other geometry types.

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