[OpenMap Users] ProjectionFactory

From: Guillermo Payet <gpayet_at_localharvest.org>
Date: Wed, 2 Mar 2005 22:43:49 -0800

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?


PS: Hi Don, it's been a while. :-)


Guillermo Payet
L O C A L  H A R V E S T
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.
[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

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT