[GRASS-user] 3D Streets Data
Markus Neteler
neteler at osgeo.org
Fri Jan 11 15:11:05 EST 2008
On Jan 5, 2008 6:32 PM, Matthew Pulis <mpulis at gmail.com> wrote:
>
>
>
>
> Hi,
>
>
>
> First of all Happy New Year to all on the list J
>
>
>
> I am trying to build a 3D Street Network, thus where the streets have
> elevation so I can do routing depending on slope level.
>
>
>
> I am using the GRASS Book Dataset of North Carolina.
>
>
>
> I tried to combine : streets_wake and elev_state_500m layers together, using
> the v.drape :
>
> v.drape in=streets_wake rast=elev_state_500m method=bilinear out=streets3d
>
>
>
> But to no avail. This is the v.info on streets3d :
>
>
>
> | Number of lines: 49746 Number of islands: 0
> |
>
> | Number of boundaries: 0 Number of faces: 0
> |
>
> | Number of centroids: 0 Number of kernels: 0
> |
>
> |
> |
>
> | Map is 3D: 1
> |
>
> | Number of dblinks: 1
> |
>
> |
> |
>
> | Projection: Lambert Conformal Conic
> |
>
> | N: 258102.57210146 S: 196653.34855345
> |
>
> | E: 676816.24830376 W: 610869.3848495
> |
>
> | B: 49.16141063 T: 156.87280191
> |
As you see - the data are 3D!
I run
g.region vect=streets_wake res=100 -pa
v.drape in=streets_wake rast=elev_state_500m method=bilinear out=streets3d
#
r.mapcalc sealevel=0
nviz el=sealevel vect=streets3d
Looks pretty much 3D (sorry for flat terrain there...).
Check also
v.out.ascii streets3d format=standard | head -50
ORGANIZATION: NC OneMap
DIGIT DATE: Nov 7 6
DIGIT NAME: helena
MAP NAME: Wake County roads and streets (lines map)
MAP DATE: Tue Nov 7 20:04:56 2006
MAP SCALE: 1
OTHER INFO:
ZONE: 0
MAP THRESH: 0.000000
VERTI:
L 4 1
625304.64965949 214113.54427121 111.15730809
625301.19968723 214078.52097425 111.15730809
625299.48976068 214056.17660237 111.15730809
625299.2898505 214050.64903112 111.15730809
1 1
L 4 1
670282.21275792 227601.93222423 80.19490021
670374.57454089 227594.34858999 80.19490021
670445.44075096 227585.49027471 80.19490021
670480.4596783 227576.2012396 82.07733239
1 2
L 2 1
640859.16790248 227574.18138204 107.09736996
640807.37009659 227572.59333673 107.09736996
1 3
...
Markus
More information about the grass-user
mailing list