POV-Ray : Newsgroups : povray.general : heightfields and DEM and Geotiff Server Time
17 Nov 2024 23:17:15 EST (-0500)
  heightfields and DEM and Geotiff (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Jim
Subject: heightfields and DEM and Geotiff
Date: 19 Dec 2002 11:10:03
Message: <web.3e01edcaa4e30c861d8a41ce0@news.povray.org>
Hi,

   I've just finished an exhaustive search for a way to copnvert DEMs
(Digital Elevation Map)to the Povray heightfield Targa format. No matter
what program/s I use, the result distorts the elevation data in some way.

   From www.terrainmap.com: all programs yield a "red" or "blue" version
          of the "green" Targa map.
   DEM2Pov: This common program is for 1:250,000 scale DEM and not the
           1:24,000 I'm using.
   SDTSEPOV: Sol Katz's program converts the 30 meter DEM but not the new
           10 meter versions.
   Arcview 3.2a: no go.
   3DEM: no go.
   dlgv32pro/Global Mapper: no go.
   Wilbur: no go.
   Genesis II: no go.
   OSSIM: no go.

   The same for others. Either the map is not correctly produced or a
grayscale limited to 256 "colors"/elevations results.
   Either the 16-bit grayscale or a Povray Targa would work but, to date
only Sol Katz's program works and that, only with the 30 meter files.
   Anyone know, by experience, of a program that will do the conversion?
   Grayscale or Povray Targa?

                                            Thanks,
                                             Jim


Post a reply to this message

From: ingo
Subject: Re: heightfields and DEM and Geotiff
Date: 19 Dec 2002 11:18:05
Message: <Xns92E9B0ED381CDseed7@povray.org>
in news:web.3e01edcaa4e30c861d8a41ce0@news.povray.org Jim wrote:

>    Anyone know, by experience,

Not by experience but,

> of a program that will do the conversion?
>    Grayscale or Povray Targa?
> 

you could try Leveller with the approriate plug in:

http://www.daylongraphics.com/products/leveller/index.htm

Ingo


Post a reply to this message

From: Christoph Hormann
Subject: Re: heightfields and DEM and Geotiff
Date: 19 Dec 2002 12:38:07
Message: <3E0203FE.6D368FE2@gmx.de>
Jim wrote:
> 
> Hi,
> 
>    I've just finished an exhaustive search for a way to copnvert DEMs
> (Digital Elevation Map)to the Povray heightfield Targa format. No matter
> what program/s I use, the result distorts the elevation data in some way.
> 
> [...]

If your map is in an uncompressed integer format you can use HCREdit:

http://www-public.tu-bs.de:8080/~y0013390/hcredit/

to convert it.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 07 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: gonzo
Subject: Re: heightfields and DEM and Geotiff
Date: 19 Dec 2002 13:50:05
Message: <web.3e02136f785b7ef7d843c24b0@news.povray.org>
Jim wrote:
>Hi,
>
>   I've just finished an exhaustive search for a way to copnvert DEMs
>(Digital Elevation Map)to the Povray heightfield Targa format. No matter
>what program/s I use, the result distorts the elevation data in some way.
>
>   From www.terrainmap.com: all programs yield a "red" or "blue" version
>          of the "green" Targa map.
>   DEM2Pov: This common program is for 1:250,000 scale DEM and not the
>           1:24,000 I'm using.
>   SDTSEPOV: Sol Katz's program converts the 30 meter DEM but not the new
>           10 meter versions.
>   Arcview 3.2a: no go.
>   3DEM: no go.
>   dlgv32pro/Global Mapper: no go.
>   Wilbur: no go.
>   Genesis II: no go.
>   OSSIM: no go.
>
>   The same for others. Either the map is not correctly produced or a
>grayscale limited to 256 "colors"/elevations results.
>   Either the 16-bit grayscale or a Povray Targa would work but, to date
>only Sol Katz's program works and that, only with the 30 meter files.
>   Anyone know, by experience, of a program that will do the conversion?
>   Grayscale or Povray Targa?
>
>                                            Thanks,
>                                             Jim



Well, a two step process would be use the Firmament import plugin for
Terragen to import the DEM, generate the terrain then save as a .ter file,
then import that into Forester which can make a POV .tga
I haven't used any DEMs so I don't know if Firmament handles all the
different versions you refer to, but IIRC it lists a couple in the readme.

RG - If God had wanted one application that did everything, he wouldn't have
created Unix


Post a reply to this message

From: Jim
Subject: Re: heightfields and DEM and Geotiff
Date: 19 Dec 2002 23:45:03
Message: <web.3e029fd9785b7ef7e5635a5e0@news.povray.org>
Thanks for your suggestion. I'm considering all possibilities but
consider full scale commercial software a last resort. Perhaps a small
conversion utility, but not elaborate scene visualization packages.
   As for HVR-Edit,  I tried a text file and
the program either gave a black screen or crashed.
   The text file was a simple listing of integer elevation values from
an ArcInfo Ascii export, with the header removed and all decimals
converted to integers and "nodata" areas replaced with zeros.
   The elevation values (448-1100) were separated by spaces with
467 values per line (height) and 379 lines (width).
   Do I presume the input file needs to be in binary as
opposed to an ASCII text file?

                                Thanks,
                                 Jim


Post a reply to this message

From: Mark Weyer
Subject: Re: heightfields and DEM and Geotiff
Date: 20 Dec 2002 04:42:39
Message: <3E02E883.C5771329@frege.mathematik.uni-freiburg.de>
>    The text file was a simple listing of integer elevation values from
> an ArcInfo Ascii export, with the header removed and all decimals
> converted to integers and "nodata" areas replaced with zeros.
>    The elevation values (448-1100) were separated by spaces with
> 467 values per line (height) and 379 lines (width).

If you have got this far, it should be easy manually to manually
create a PGM (portable gray map) from it: Just add one line at the
beginning containing

P2 467 379 1100

Then any decent image manipulation program should be able to convert
that into whatever format you want.

  Mark


Post a reply to this message

From: Lenx
Subject: Re: heightfields and DEM and Geotiff
Date: 20 Dec 2002 07:55:03
Message: <web.3e0312f1785b7ef7b0d1d5010@news.povray.org>
wow christoph, your website is soooooo cool!!!!


Post a reply to this message

From: Jim
Subject: Re: heightfields and DEM and Geotiff
Date: 20 Dec 2002 12:00:08
Message: <web.3e034c23785b7ef74f4c2e4b0@news.povray.org>
Hi Mark,

   Thanks for the tip. As it turns out, the PGM format is an 8-bit
format and loses most of the values. If there is a 16/24-bit version
let me know. For that matter, if you know of any 16/24-bit ASCII
based format I'd appreciate your letting me know.

                              Thanks,
                               Jim


Post a reply to this message

From: Christoph Hormann
Subject: Re: heightfields and DEM and Geotiff
Date: 20 Dec 2002 12:31:25
Message: <3E0353EC.D1291E38@gmx.de>
Jim wrote:
> 
> Hi Mark,
> 
>    Thanks for the tip. As it turns out, the PGM format is an 8-bit
> format and loses most of the values. 

That's not true, see:

http://netpbm.sourceforge.net/doc/pgm.html

POV-Ray reads 16 bit ASCII PGMs without problems.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 07 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Christoph Hormann
Subject: Re: heightfields and DEM and Geotiff
Date: 20 Dec 2002 12:32:48
Message: <3E035440.4AB31762@gmx.de>
Lenx wrote:
> 
> wow christoph, your website is soooooo cool!!!!

Thanks, but you replied to the wrong posting.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 07 Dec. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.