Usage of GV_USE_DOUBLE_PRECISION_COORD (reminder)

View: New views
2 Messages — Rating Filter:   Alert me  

Usage of GV_USE_DOUBLE_PRECISION_COORD (reminder)

by s duclos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Folks,

The story is that it was set to use 'double' instead of 'float' when
handling coordinate inside GV.

Originally it was set to sidestep the implicit type conversion from
double <--> float that occur between GV / OGR and GV / PROJ.

It turn out that it make no discernible difference whether on or not
(as far as I can tell.)

This switch is require for the S52 plug-in as everything is in
double on the S52 side and S52 use GV coordinate "in place".


> Ah! I knew I forgot something!! If I remember correctly
> from way way
> back, the GV_USE_DOUBLE_PRECISION_COORD flag was also
> needed for
> general use.


So it's not required for general use. It double the memory foot print
for the coordinate. So it add overhead. YMMV.



rgds,

Sylvain.


      __________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share what you know at http://ca.answers.yahoo.com

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Openev-discuss mailing list
Openev-discuss@...
https://lists.sourceforge.net/lists/listinfo/openev-discuss

Re: Usage of GV_USE_DOUBLE_PRECISION_COORD (reminder)

by Mario Beauchamp-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks,

On Thu, Apr 16, 2009 at 11:40 AM, s duclos <sylvain_duclos@...> wrote:
>
>
> So it's not required for general use. It double the memory foot print
> for the coordinate. So it add overhead. YMMV.

I think it was affecting something else that I cannot remember at this
time... I will investigate and get back to you later.

cheers
--
Mario B.

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Openev-discuss mailing list
Openev-discuss@...
https://lists.sourceforge.net/lists/listinfo/openev-discuss