You have to change the projection in the mapbean. In the code below,
you've set the projection in the layer, and it's the only one to know
about the new projection. All of the other layers are using the
mapbean's projection, and your layer is using a different projection.
- Don
On Monday, March 24, 2003, at 04:41 AM, CHAKIRI HOUDA wrote:
> Hello,
>
> i have a problem with map projections, i am changing the coordinates
> of a
> point by changing its progection, the new projection that i am giving
> is
> not recognized and the point changes its place to a random place..
> Projection p1 =
> ProjectionFactory.makeProjection(ProjectionFactory.getProjType(Environm
> ent.get(E
> nvironment.Projection,
> Mercator.MercatorName)),33.53342f,-5.10973f,15000f,592,442);
> ProjectionEvent pr = new ProjectionEvent(lyr, p1);
> lyr.projectionChanged(pr);
> lyr.repaint();
> i don't see from where the problem come..
>
> thanks
>
>
> ***********************************************************************
> ***************************
> The contents of this email and any attachments are confidential.
> It is intended for the named recipient(s) only.
> If you have received this email in error please notify the system
> manager by sending
> an email to ITS Helpdesk at helpdesk@alakhawayn.ma or the sender
> immediately
> and do not disclose the contents to anyone or make copies.
> ITS antivirus gateway has scanned this email for viruses, vandals and
> malicious
> content.
> ***********************************************************************
> ***************************
>
> --
> [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"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [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 Mon Mar 24 11:06:29 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT