How to work with roads and 3d DEM / How to deal with 3d road?

75 views
Skip to first unread message

HUYNH Nghi

unread,
Nov 3, 2018, 7:56:01 AM11/3/18
to GAMA
Dear all,
I am playing with a 3d model, in which i have a DEM drawn as 3D grid, some buildings, and some roads. The fact is 3D geometry works well with DEM but it overlaps the roads as you can see in sshot. I wonder how to bend the road to adapt with the DEM ground or do we have any solutions to deal with this problem (i think there is some notion like 3d roads, 3d GIS?).
Thank you in advance.
Cheers.
7


Arnaud Grignard

unread,
Nov 4, 2018, 7:37:58 PM11/4/18
to gama-p...@googlegroups.com
Hi Nghi,

That look great. I see the problem, not sure exactly how to solve it but for instance you could add a z to the road (maybe by asking what is the z value of the overlapping cell of the road). 

If you want to share the code I can have a look.

Arnaud

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Patrick Taillandier

unread,
Nov 5, 2018, 3:44:13 AM11/5/18
to gama-p...@googlegroups.com
Hi,

Indeed, we have no solution to make a geometry (polyline/polygon) follows a 3D triangulated DEM. It can be interesting one day to have this type of feature (I don't know if jogl could help us with this).
For your specific case, you can use a trick: use the grid to decompose the geometry of the road in subsegments, and compute for each point of the subsegment the z value according to the z value of the corresponding cell + an offset (to be sure that the road is above the cell).

Cheers,

Patrick 

Huynh Quang Nghi 002628

unread,
Nov 5, 2018, 10:30:58 AM11/5/18
to gama-p...@googlegroups.com
Thank you Arnaud and Patrick. Ok i just want to verify my knowledge. I tested to add_z to each point of roads but 2D goto of moving skill did not work. I did not try with moving3D, so hoping that this trick can work.
The model is a toy model , i uploaded on github if you want to check it out.
Cheers.
-------
HUYNH Quang-Nghi
Ph.D.
Lecturer
College of Information and Communication Technology - Can Tho University
Campus II, 3/2 street, Ninh Kieu district
Can Tho city, Vietnam
[Vietnam] +84909128322

Arnaud Grignard

unread,
Dec 4, 2018, 11:58:38 AM12/4/18
to gama-p...@googlegroups.com
Hi Nghi,

This model looks very promising! 

Did you solve your problem of Z ? 

I am starting to write some dedicated issue on your github also, to see how to push forward this model

Arnaud

Huynh Quang Nghi 002628

unread,
Dec 4, 2018, 8:31:10 PM12/4/18
to gama-p...@googlegroups.com
Hello Arnaud,
No not yet, i tested to intersect the road with dem but it fail. However i will have motivation to deal with real 3d environment for gama.
Reply all
Reply to author
Forward
0 new messages