Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating contour lines from regularly spaced data

I am currently working on a data visualization project.My aim is to produce contour lines ,in other words iso-lines, from gridded data.Data can be temperature, weather data or any kind of other environmental parameters but only condition is it must be regularly spaced. I searched in internet , however i could not find a good algorithm, pseudo-code or source code for producing contour lines from grids. Does anybody knows a library, source code or an algorithm for producing contour lines from gridded data? it will be good if your suggestion has a good run time performance, i don't want to wait my users so much :)

Edit: thanks for response but isolines have some constrains like they should not intersects so just generating bezier curves does not accomplish my goal.

like image 848
Qubeuc Avatar asked Mar 12 '09 20:03

Qubeuc


1 Answers

See this question: How to approximate a vector contour from an elevation raster?

It's a near duplicate, but uses quite different terminology. You'll find that cartography and computer graphics solve many of the same problems, but use different terminology for them.

like image 138
Paul Tomblin Avatar answered Sep 25 '22 02:09

Paul Tomblin