I'm working on a much delayed upgrade of our map engine -- which is
running on the venerable openmap 4.5.4 now -- to the current 4.6.2.
makeProjection(int,float,float,float,int,int) has been deprecated,
so I changed that in our mapping servlet to the new equivalents.
However, no matter what I do (and I've tried a few other forms of
this method) it always returns a Mercator projection, when what
I'm asking for is an Orthographic.
Here's an example that fails:
Class projClass = ProjectionFactory.getProjClassForName("com.bbn.openmap.proj.Orthographic");
Proj projection = (Proj) ProjectionFactory.makeProjection (projClass, 42.0f, -72.0f, 30000000f, width, height);
projClass above contains the right class in it, but "projection" returned
is a Mercator projection.
So, before I jump into the ProjectionFactory source code to try to
figure this out:
Is this a known problem? Is there actually some other method I should
be using to generate my Orthographic projections?
Thanks
PS: Hi Don, it's been a while. :-)
--G
--
Guillermo Payet
L O C A L H A R V E S T
http://www.localharvest.org
Every Morning I awake torn between a desire to save the world and
an inclination to savor it. This makes it hard to plan the day.
-E.B.White
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 03 2005 - 01:51:43 EST