RE: [OpenMap Users] Newbie questions

From: <Benjamin.May@bookspan.com>
Date: Tue Aug 12 2003 - 10:03:41 EDT

        Ok, sweet, now I feel like I'm finally getting somewhere! Here is
the Projection I am creating:

    public com.bbn.openmap.proj.Projection getMapProjection(){
        int width = 640, height = 480;
        float longitude = 40.47f;
        float latitude = -74f;

        //float longitude = 45.0f;
        //float latitude = -90.0f;
        int scale = 50;
        
System.out.println(ProjectionFactory.getProjType(Mercator.MercatorName));
        Projection proj =
        
ProjectionFactory.makeProjection(ProjectionFactory.getProjType(Mercator.Merc
atorName),
                                             latitude,
                                             longitude,
                                             scale,
                                             width,
                                             height
                                             );
        System.out.println(proj);
        return proj;
    }

        Now, interestingly, no matter what values I put in for the long &
lat or the scale, the map image file which gets generated is rather bland
eg: empty and devoid of any details. Am I maybe missing some kind of data
which openmap needs? I am pretty much using the built-in dist. Where does it
get the topographical data from? Thanks so much for all your help so far
guys, it's been utterly crucial!

        -Ben

> -----Original Message-----
> From: Don Dietrick [mailto:dietrick@bbn.com]
> Sent: Tuesday, August 12, 2003 9:49 AM
> To: Benjamin.May@bookspan.com
> Cc: openmap-users@bbn.com
> Subject: Re: [OpenMap Users] Newbie questions
>
>
> The com.bbn.openmap.layer.specialist.MakeProjection object is not
> intended to be used like this. You probably don't want to
> use anything
> in the com.bbn.openmap.layer.specialist package, or the
> com.bbn.openmap.CSpecialist package. These two packages support the
> creation of CORBA client-server layers and plugins.
>
> You should be using the com.bbn.openmap.proj package for creating
> Projections, specifically the com.bbn.openmap.proj.ProjectionFactory.
>
> --Don
>
> On Tuesday, August 12, 2003, at 09:15 AM, Benjamin.May@bookspan.com
> wrote:
>

--
[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 Tue Aug 12 10:04:03 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT