Opened 5 years ago

Last modified 5 years ago

#3951 new enhancement

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

Reported by: jidanni Owned by: grass-dev@…
Priority: trivial Milestone: 7.8.3
Component: Docs Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

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...

Change History (3)

comment:1 by neteler, 5 years ago

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.

in reply to:  description comment:2 by mmetz, 5 years ago

Replying to 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.

comment:3 by neteler, 5 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.