POV-Ray : Newsgroups : povray.binaries.images : Problem with ASCII matrix read into a mesh2 : Re: Problem with ASCII matrix read into a mesh2 Server Time
9 Aug 2024 01:25:21 EDT (-0400)
  Re: Problem with ASCII matrix read into a mesh2  
From: andrel
Date: 2 Apr 2005 09:55:22
Message: <424EB1D3.2020802@hotmail.com>
Christoph Hormann wrote:

> 
>>
>> As I did not (yet) found any understandable definition of the GeoTIFF 
>> standard, I had to content myself with converting them into ASCII 
>> matrizes with a vertical resolution of 1 metre.
> 
> 
> Oh, come on, there is GDAL: http://www.remotesensing.org/gdal/ which 
> comes with a simple utility program that converts between any formats 
> supported which includes Geotiff of course as well as PNG and PGM which 
> can be read by POV-Ray.
> 
>> But the result was weird, obviously the float values in the ASCII 
>> matrix are arranged in a different way than the pixels in the GEO-TIFF 
>> file.
> 
> 
> You quite obviously got the size of the images wrong by 1-2 pixel.
> 
One pixel, because the matrix is square and there is a diagonal.
Assuming he is reading left to right and top to bottom, Yadgar
is reading one to little per line. A typical obi-wan error I guess
(http://www.catb.org/~esr/jargon/html/O/obi-wan-error.html).

Now playing: New Deal by Dolores Keane


Post a reply to this message

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