|
From: Diego J. <die...@gm...> - 2011-10-13 09:11:47
|
Thanks for your reply. Sorry, you're right I should have provided more information. The contour lines are MultiLineStrings. For the output raster I would need proper interpolation. I guess I'll have to implement it myself then, or use one of the solutions in the link you gave me. I'll post here my solution. 2011/10/13 Michael Bedward <mic...@gm...> > On 13 October 2011 01:29, Diego Jesus <die...@gm...> wrote: > > Hello, > > I have a set of contour lines with elevation data from which I want to > > extract a greyscale heightmap. I've been searching for a couple of hours > and > > I haven't found anything... > > Ah grasshopper ! A couple of hours is merely the blink of an eye on > the cosmic timescale of the average open source programming task... > > You need to provide more information so that people here can help you. > On the input side: are your contour lines either LineString objects > are something that can be turned into LineStrings ? On the output > side: were you wanting proper interpolation of values between contours > for the output raster or would simple filling the regions between > contours with a uniform value be ok ? For true interpolation you > would usually use an algorithm such as Kriging which GeoTools does not > provide. > > Also, take a look at this message in the list archives... > > > http://osgeo-org.1803224.n2.nabble.com/How-can-I-convert-mid-mif-map-to-matrix-of-big-cells-with-average-territory-information-tp1943037p1943037.html > > While it is not exactly the same use case that you have it might give > you some ideas or help you get started. > > Michael > |