converting contour lines to grids

<html><div style='background-color:'><DIV>
<P>Hello, All</P>
<P>I need help for converting contour lines to grids.</P>
<P>My original data are contour lines in an area of 1 mile by 1 mile. <BR>Each 
contour line consists of some points, each point has x, y, and z. There are 
about<BR>1000 points. My data file is something like the following:</P>
<P>12.3&nbsp;&nbsp; 23.6&nbsp; 60<BR>17.6&nbsp;&nbsp; 47.9&nbsp; 
60<BR>35.9&nbsp;&nbsp; 68.0&nbsp; 60<BR>.<BR>.<BR>.<BR>234&nbsp;&nbsp;&nbsp; 
567&nbsp; 120<BR>250&nbsp;&nbsp;&nbsp; 345&nbsp; 120<BR>.<BR>.<BR>.</P>
<P><BR>Each line is the x, y and z value of one point. Now I want to draw the 
topography surface.<BR>I did the following:</P>
<P>1. Set the grid size (e.g., 10 m) <BR>2. Find the x and y of the grid points 
(e.g., (0,0), (10,0), ...)<BR>3. Interpolate these grid points to get their z 
values<BR>4. Draw the grid points to get the topography surface</P>
<P>I tried methods of moving average (with help from Bill and Tom), weighted 
average, and nearest neighbor for interpolation. I am not satisfied with the 
results, because the surfaces between contour lines are actual planes. The 
surfaces do not like a real terrain visually because interpolation by moving 
average, weighted average and nearest neighbor do not consider factors such as 
curvature, convex, and concave.</P>
<P>Recently I am reading the book "OpenGL SuperBible, Second Edition" by 
Richard S. Wright, Jr, and Michael Sweet. There is an example of Bezier curve 
in Chapter 13. Can we do the same thing in Java3d and VisAD? </P>
<P>Any help will be highly appreciated.</P>
<P>Gaoming Fu&nbsp;<BR>&nbsp; </P></DIV>
<DIV></DIV></div><br clear=all><hr>Join the world?s largest e-mail service with 
MSN Hotmail. <a href='http://go.msn.com/bql/hmtag4_etl_EN.asp'>Click 
Here</a><br></html>


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: