[GRASS-dev] [GRASS GIS] #3951: v.in.ascii: add: Note: z= always still needs to be set manually, despite using -z.

#3951: v.in.ascii: add: Note: z= always still needs to be set manually, despite
using -z.
-------------------------+-------------------------
Reporter: jidanni | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: trivial | Milestone:
Component: Docs | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
In v.in.ascii at

{{{
        z=integer
            Number of column used as z coordinate (points mode)
            First column is 1. If 0, z coordinate is not used
            Default: 0
}}}

add:

  Note: z= always still needs to be set manually, despite using -z.

In fact perhaps 3 would be a good default, if -z use is detected...

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

#3951: v.in.ascii: add: Note: z= always still needs to be set manually, despite
using -z.
--------------------------+-------------------------
  Reporter: jidanni | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: trivial | Milestone:
Component: Docs | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by neteler):

In theory, around

https://github.com/OSGeo/grass/blob/cd25ae236c5e8566c38f409de1b4b5c85260788d/vector/v.in.ascii/main.c#L211

the following line could be added

{{{
G_option_requires(zcoorf, zcol_opt, NULL);
}}}

but this will fail at time since " (zcol_opt) has the default value 0
which is needed.

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

#3951: v.in.ascii: add: Note: z= always still needs to be set manually, despite
using -z.
--------------------------+-------------------------
  Reporter: jidanni | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: trivial | Milestone:
Component: Docs | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by mmetz):

Replying to [ticket:3951 jidanni]:
> In v.in.ascii at
>
> {{{
> z=integer
> Number of column used as z coordinate (points mode)
> First column is 1. If 0, z coordinate is not used
> Default: 0
> }}}
>
> add:
>
> Note: z= always still needs to be set manually, despite using -z.
>
> In fact perhaps 3 would be a good default, if -z use is detected...

If you want to create 3D points when using `v.in.ascii format=point`,
there is no reason to assume that z coordinates are in column 3, this
depends on the input data and use case.

A simplification of the user interface would be to imply `-z` if z > 0.

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