Re: Projection.forward()

From: Donald Dietrick <dietrick@bbn.com>
Date: Wed Jan 02 2002 - 18:30:15 EST

Hi David,

It's not you, but it's working as intended.

The forward method is just to translate lat/lon to screen x/y
coordinates. The inverse method translates screen x/y coordinates to
lat/lon. You can't change the projection parameters, you just create a
new one in the ProjectionFactory with the new parameters when you want
to change the map.

- Don

On Wednesday, January 2, 2002, at 06:17 PM, David Garnier wrote:

> Hello,
> Is that me or is (Some Projection).forward() isn't doing anything to the
> actual Projection (unlike (Some Projection).pan()).
>
> Here is the code used to create the Projection:
>
> setProjection(
> ProjectionFactory.makeProjection(
> ProjectionFactory.getProjType(Mercator.MercatorName),
> latlon.getLatitude(),
> latlon.getLongitude(),
> getScaleByIndex(getCurrentScaleIndex()),
> 600,
> 440));
>
> ((Proj) getProjection()).setMaxScale(getScaleByIndex(0));
> ((Proj)getProjection()).setMinScale(getScaleByIndex(getScalesList().size(
> )-1));
>
> And I try to move the Projection using
> getProjection().forward(lat,lon);
>
> Any thoughts on this problem?
>
> Best regards,
> David Garnier
>
> --
> [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"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Donald Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Wed Jan 2 18:27:38 2002

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