[GRASS-dev] 2D to 3D points

Dylan Beaudette dylan.beaudette at gmail.com
Sun Mar 2 17:42:46 EST 2008


On Sunday 02 March 2008, Benjamin Ducke wrote:
> As far as I am aware, the term "extrusion" is pretty well defined
> as the operation of extending an object in 3D space by "pulling
> it out" with a predefined bearing and length. This would convert a point
> to a line, a line to a plane and a polygon to, well, a polygon with a
> volume, I guess.
>
> Personally, I'd be more in favour of wrapping a little script
> "v.points.to.3d" around v.transform. For the beginners' sake.
>
> Benjamin

Well from that 'angle' I think that it makes sense not to use v.extrude. 
v.points.to.3d seems like a fine choice.


Cheers,
Dylan

>
> Dylan Beaudette wrote:
> > On Saturday 01 March 2008 10:20:45 pm Hamish wrote:
> >> Benjamin Ducke wrote:
> >>> That should work but it may not exactly be easy to locate for a
> >>> novice user.
> >>>
> >>> How about a little wrapper script for v.transform that simplifies
> >>> this action?
> >>>
> >>> I am increasingly concerned about the number of, sometimes basic,
> >>> geoprocessing functions that are present in GRASS but "hidden"
> >>> in complex module options. Of course people can always mail to
> >>> this list but in the first place it will create frustration for
> >>> them and possible turn them away.
> >>
> >> So we make little wrapper scripts like v.dissolve and v.centroids.
> >> That's much better than dealing with code duplication.
> >>
> >> but that shouldn't wrap 3 module commands together with temporary maps
> >> etc to perform something as simple as the 2d+attr column -> 3d points
> >> conversion. If as Maciek suggests v.transform could do the job then
> >> it's not so bad. The v.transform name even sounds right for the job.
> >>
> >>
> >> Hamish
> >
> > I agree that we should avoid code duplication at any cost, and
> > v.transform does the job. However, doesn't it make more sense to put that
> > code (for points) into v.extrude ? Or, is v.extrude primarily for areas
> > by design?
> >
> > Dylan



-- 
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341


More information about the grass-dev mailing list