Re: [OpenMap Users] ProjectionFactory

From: 'Guillermo Payet' <gpayet_at_localharvest.org>
Date: Thu, 3 Mar 2005 10:11:51 -0800

That did it...

Beautiful.

Thanks Laura.

        --G


On Thu, Mar 03, 2005 at 09:08:32AM -0000, Laura Paterson wrote:
> Hi,
>
> I had exactly the same problem a couple of weeks ago when I upgraded to
> 4.6.2.
>
> 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 openmap.properties, and use
> ProjectionFactory.instance() to create your projections.
>
> Laura
>
> -----Original Message-----
> From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]On
> Behalf Of Guillermo Payet
> Sent: 03 March 2005 06:44
> To: openmap-users_at_bbn.com
> 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 =
> 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"]
> 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
> thereof.
>
> --
> [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"]

-- 
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 - 13:12:07 EST

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