[GRASS-dev] [GRASS GIS] #1822: wxGUI location wizard imports 3D Shapefile as 2D

#1822: wxGUI location wizard imports 3D Shapefile as 2D
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Startup | Version: svn-trunk
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
When creating a new location based on a Shapefile, location wizard imports
it into the new location, still it's done in 2D mode thus losing all Z
coordinates of dataset.

This is worse than not importing at all as when user is forced to use
import module (v.in.ogr), it might notice -z option and enable it. Current
behaviour might lead to data loss (delete shapefile without checking
metadata in GRASS) or wrong conclusions that GRASS doesn't support 3D
shapefiles (WRONG!).

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

#1822: wxGUI location wizard imports 3D Shapefile as 2D
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Startup | Version: svn-trunk
Keywords: v.in.ogr | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Changes (by martinl):

  * keywords: => v.in.ogr

Comment:

Probably `v.in.ogr` in GRASS 7 could import 3D data automatically when OGR
layer is detected as 3D (2.5D) without specifying any extra flag (in other
words, no need for `-z` flag).

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

#1822: wxGUI location wizard imports 3D Shapefile as 2D
-------------------------+--------------------------------------------------
Reporter: marisn | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Startup | Version: svn-trunk
Keywords: v.in.ogr | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by mmetz):

Replying to [comment:1 martinl]:
> Probably `v.in.ogr` in GRASS 7 could import 3D data automatically when
OGR layer is detected as 3D (2.5D) without specifying any extra flag (in
other words, no need for `-z` flag).

Done in r54189. By default, a 3D vector is created if any input geometry
is 3D, otherwise the output is 2D. 2D output can be forced with the new -2
flag (I have seen shapefiles that are 3D even if all z coordinates are
zero, thus fake 3D). The -z flag has been removed.

Markus M

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

#1822: wxGUI location wizard imports 3D Shapefile as 2D
--------------------------+-------------------------------------------------
  Reporter: marisn | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Startup | Version: svn-trunk
Resolution: fixed | Keywords: v.in.ogr
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

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

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