[GRASS-user] Obtaining unique nodes from a topology

William Temperley willtemperley at gmail.com
Fri Jan 15 09:49:24 EST 2010


Ah this is probably what I'm looking for, thanks Achim

Will

2010/1/15 Achim Kisseler <ak7 at jupiter.uni-freiburg.de>

> Hi Will,
>
> I think it is possible:
> building a network from boundaries with
> v.net
>
> and then using the report option in v.net
> it is not possible to update the table with these infos, but it is possible
> to save the results in a list, import this to your database and connect
> these infos to the table.
>
> Achim
>
> William Temperley schrieb:
>
>> Hi Achim
>>
>>
>> Thanks - but what I really want is a list of unique nodes (i.e. where
>> three boundaries meet, there would be one node, with an id) and assign this
>> id to the relevant boundaries. Perhaps that isn't possible. It might be
>> easier to do this in PostGIS.  I need to be able to run recursive queries in
>> PostGIS to pick up connected boundaries.
>>
>> Cheers
>>
>> Will
>>
>>
>> 2010/1/15 Achim Kisseler <ak7 at jupiter.uni-freiburg.de <mailto:
>> ak7 at jupiter.uni-freiburg.de>>
>>
>>
>>    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 <mailto:grass-user at lists.osgeo.org>
>>
>>        http://lists.osgeo.org/mailman/listinfo/grass-user
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20100115/2c29b3e5/attachment.html


More information about the grass-user mailing list