Re: [OpenMap Users] float param for OMScalingRaster constructor for rendering GeoTif

From: Don Dietrick <dietrick@bbn.com>
Date: Fri Jan 17 2003 - 09:03:55 EST

Hi Tri,

How far off is the positioning and scaling? You can't really change
the OMScalingRaster positions to doubles, because the projection
libraries that do all the work are based on floats, too.

- Don

On Wednesday, January 15, 2003, at 06:51 PM, Tri Tran wrote:

> Hi Don,
>
> I see your name on the @author field of OMScalingRaster so wondering
> if you
> can make change to your code, or show me how to do so.
>
> I render an GeoTiff image on map and it doesn't really acurate because
> the
> value is truncated (for example 1.65943083e-005 -> 1.6594307e-005)
> that lead
> to incorrect positioning/scaling on map.
>
> in GeoTif file the Pixel scaling is in double value, however the
> constructor
> of OMScalingRaster take float. When I convert from double to float it's
> truncated. How can I overcome this problem, is there any suggestion on
> how
> to round it ?
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Jan 17 09:03:53 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:34 EDT