RE: [OpenMap Users] ProjectionFactory

From: Laura Paterson <>
Date: Thu, 3 Mar 2005 09:08:32 -0000


I had exactly the same problem a couple of weeks ago when I upgraded to

One work around is to use:
ProjectionFactory projFact = ProjectionFactory.loadDefaultProjections();
then use projFact to create your projections.

or if you are setting up your app with a properties file, add a
ProjectionFactoryLoader to your, and use
ProjectionFactory.instance() to create your projections.


-----Original Message-----
From: []On
Behalf Of Guillermo Payet
Sent: 03 March 2005 06:44
Subject: [OpenMap Users] ProjectionFactory

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 =
        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 ""
with the following text in the BODY of the message "unsubscribe
This email and any files attached to it are of a confidential nature and
intended for the exclusive use of the individual or entity to whom they are
addressed. If you are not the intended recipient, please be advised that you
have received this email in error and action should be taken to inform the
originator and this email should be deleted immediately and any copies made
should be destroyed. If you are not the intended recipient, any form of
disclosure, distribution, printing, copying or any other use of this email
or the information in it or in any attachments is strictly prohibited and
may be unlawful. Any views, opinions or other information expressed in the
email and any attachments are those of the originator and not given or
endorsed by General Dynamics UK Ltd.In compliance with the various
Regulations and Acts, please be aware that General Dynamics UK Ltd reserves
the right to monitor all emails and email attachments, both inbound and
outbound, allowing legitimate business practice to continue.In addition to
monitoring, General Dynamics UK Ltd also provides appropriate Antivirus
measures scanning all incoming and outgoing email and email attachments.
However, email communications cannot be guaranteed to be secure or free of
errors as information may be intercepted, corrupted, amended, lost,
destroyed or contain viruses. General Dynamics UK Ltd do not accept
liability or responsibility for any such matters or the consequences
[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 03 2005 - 04:09:37 EST

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