[GRASS-user] Obtaining unique nodes from a topology

Achim Kisseler ak7 at jupiter.uni-freiburg.de
Fri Jan 15 06:51:09 EST 2010


Hi Will,

for lines you can use

v.to.db -p map=... option=start

-p to print your result
option=start to get start points
option=end to get end points

the result looks like
cat|x|y|z
...

without -p you can upload the results to the table with:
columns=x,y(,z)

Hope it helps,
Achim

William Temperley schrieb:
> Hi all
> 
> I've used Grass to build a topology out of a polygon shapefile, so far 
> so good.
> I now need to export it as an arc-node topology (i.e. boundaries  with 
> startnode_id, endnode_id) which I will then use in PostGIS.
> 
> Does anyone know of a way to get the nodes from the topology and attach 
> these attributes to the boundaries?
> I know I can get the start/end coordinates, but I need the unique nodes 
> and their ids.
> 
> Thanks
> 
> Will Temperley
>  
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list