Thanks again Don,
Here is what I am doing :
1. Capture the MAX/MIN lat/lon using the java.lang.Math functions
2. get the scale with ProjMath.getscale for these and the
projection details
3. set the map scale
4. set the map center with both center lat/lon calculated as
MAX - ( MAX - MIN )/2 .
The center sets fine but the latitudes are such that both
upper/lower lats are less than the MAXLAT/MINLAT respectively.
I had this result with the OpenMap app and some modifications on the Demo Layer.
Regards,
Pradeep.
-- On Thu, 6 Sep 2001 10:43:11 Donald Dietrick wrote: >Hi Pradeep, > >That's the method that is supposed to be doing what you want. I'm not sure why the box wouldn't be reaching the specified coordinates. > >- Don > > >On Thursday, September 6, 2001, at 10:16 AM, PRADEEP RAMACHANDRAN wrote: > >> Hello, >> >> I am trying to understand what the getscale function >> does in the ProjMath class does, it would be great >> if someone could share their understanding. >> >> What I am looking to do is to determine a bounding box >> for the map and set the scale for the map so as to include >> all the regions that lie within the bounding box and then >> set the scale and the center for the map. But the behaviour >> on using ProjMathgetScale for a Mercator Projection, >> although close to the edges of the bounding box, covers lesser >> area in terms of upper/lower latitudes. >> >> Is there a more efficient way of doing the same thing. >> >> Regards, >> Pradeep. >> >> >> >> Get 250 color business cards for FREE! >> http://businesscards.lycos.com/vp/fastpath/ >> >> -- >> [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"] >> > >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >Donald F. Dietrick, dietrick@bbn.com >BBN Technologies, 10 Moulton Street, Cambridge, MA 02138 >617.873.3031 FAX 2794 >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ -- [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 Thu Sep 6 11:22:23 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT