[GRASS-dev] [GRASS GIS] #82: new module: v.to.3d
GRASS GIS
trac at osgeo.org
Thu Mar 6 05:11:07 EST 2008
#82: new module: v.to.3d
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-trunk
Keywords: |
-------------------------+--------------------------------------------------
Hi,
as discussed on the -dev list
http://thread.gmane.org/gmane.comp.gis.grass.devel/25394/
there is need for a simple way of transforming 2D vectors to 3D vectors.
v.transform will do it, so perhaps the module could be a wrapper function
to that?
it should have:
* 2D points + [numeric attr column or value= command line option] -> 3D
points
* 2D lines -> 3D lines in a similar way (i.e. labeled contour lines ->
3D)
* a -r flag to reverse the process. If done in a shell script this might
be as simple as v.out.ascii | v.in.ascii [without -z]
'v.transform --script' will create the template, and then just a few lines
for the wrapper. There is movement to start writing new scripts in Python
instead of /bin/sh to aid future portability, but I think the script is
simple enough that we could make an initial shell script version which
could be considered "disposable with minimal loss of effort."
[Python is problematic as it is not yet a mandatory dependency]
To me it seems the important tasks are collecting the correct command line
options needed and getting the module's options and flags out into the
users' mind-space. Once that is in place we could rewrite the wrapper as a
python script later without much work and without any user visible change.
Hamish
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/82>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/
More information about the grass-dev
mailing list