[GRASSLIST:4878] Re: adding mile markers to curvy roads

Markus Neteler neteler at itc.it
Thu Nov 18 10:48:02 EST 2004


On Thu, Nov 18, 2004 at 06:41:50AM +0800, Dan Jacobson wrote:
> I have a bunch of roads that I want to place mile markers on.
> Actually they are curvy streets that I want to place markers every 50
> meters along.  OK if just a dot, but even better if a computed number.
> They will be the guide for house number planning by distance, not grid,
> appropriate for mountainous areas.
> 
> I have managed to put the map on the screen
> wget http://www.moiland.gov.tw/land/map/25k_file/95211SW.EXE
> unzip 95211SW.EXE
> find *.dxf -exec v.in.dxf dxf={} \; #and even uglier:
> g.list type=vect|xargs -n1|grep 95211sw|sed s/^/'v.support map='/|sh -e
> g.region w=224000 e=229000 s=2686500 n=2689000
> #	v.cadlabels?
> g.list type=vect|xargs -n1|grep 95211sw04|grep -v TXT|\
> sed 's/^/d.vect map=/'|sh -e
> 
> Now how can I recursively go down each branching road placing markers
> every 50 meters? I will give an origin point...

Maybe

 v.plant help

 v.plant fills in intermediate points on arcs with a specified spacing
 Take care:  the original file is replaced with the new one

Markus




More information about the grass-user mailing list