scale computation problem

From: Didrik Pinte <dp@adhoc.be>
Date: Tue Sep 10 2002 - 10:11:10 EDT

Hi,

I've written a Layer that loads some data's and has a getExtents method.
Using that method, i'm computing the scale value that permits to see all
the loaded datas, using ProjMath.getScale method.

        The problem is that when i use
                        - the Mercator projection it does not match all the time --> sometimes
it's too small (when the deltaLatitude is greater than the
deltaLongitude.)
                        - the CADRG projection it does not match all the time (exactly the same
as the Mercator)
                        - the LLXY works fine but here in Belgium it does not look beautiful.
                        - the Orthographic render beautiful but the extent is too large.

The order of the operation is the following
        Using an imageServer :
                1) add the layer
                2) get the extent and compute point1 and point2 (upper left and lower right)
                3) newScale = ProjMath(point1, point2, initProjection)
                4) initProjection.setScale(newScale)
                5) myImageServer.createImage(initProjection, 640,480)

Does anybody have a wonderful solution to my problem ?

Didrik Pinte

**** DISCLAIMER ****
This e-mail and any attachments thereto may contain information
which is confidential and/or protected by intellectual property
rights and are intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to,
total or partial reproduction, communication or distribution in any form)
by persons other than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender
and delete the material from any computer.
Thank you for your cooperation.

--
[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 Tue Sep 10 10:12:09 2002

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