J'ai d�j� programm� un utilitaire effectuant en gros ce genre d'op�ration
(justement lors d'un stage au minist�re des transports...) ...

J'utilisais une alternative diff�rente, si cela peut t'aider...

Si je me souviens bien, je copiais l'objet dans une table temporaire ou une
table de s�lection (ex:"temp"), ensuite je rajoutais cette layer dans la map
window.. Ensuite en faisant un "zoom entire" sur cette couche qui ne
contient que la region en question, la map window zoomait sur l'objet en
question en faisant en sorte qu'on le voit au complet tout en ayant un zoom
maximum.. Et finalement je d�truisait cette table temporaire..

cela s'effectue avec un minimum de code...

Je pourrais t'envoyer le mbx utilisant ce principe, �tant donn� qu'il a �t�
produit pour le Minist�re des Transports.. DT de l'ouest de la Mont�r�gie..

Antoine

___________________________________

||    //            Antoine Gilbert
||   //              [EMAIL PROTECTED]
||  //                #ICQ 9737371
||  \\
||   \\        Le Groupe KOREM Inc.
||    \\      http://www.korem.com

Push'n'See : www.pushnsee.com
MIG        : www.mig.ca
___________________________________

----- Original Message -----
From: "Lavoie, Claude" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 03, 2000 10:35 AM
Subject: MI-L MI: Zooming to the extents of a region object


> I did not get any reply the first time I sent this message; so I am
sending
> it again (a mild case of the Elias syndrome?) hypothesizing the question
and
> replies might have got lost in the list migration to a new server.
>
> I want to set the zoom of a mapper window so that the window displays the
> whole extent of a region object.
>
> I get the minimum & maximum X and Y coordinates of the MBR of the object
> through ObjectInfo(Obj,1), ObjectInfo(Obj,2), ObjectInfo(Obj,3),
> ObjectInfo(Obj,4).  I could then calculate the distance between minimum
and
> maximum X coordinates, then calculate the distance between minimum and
> maximum Y coordinates, select the larger of these two distances as my zoom
> factor, use the Set Map ... Zoom ... statement, etc., but I would then
> specify the width of the window in whatever distance units.  What I want
to
> do is to zoom the mapper so that it displays the MBR; I would like
something
> similar to the Zoom In command, except that instead of clicking the
> rectangle corners on the map, I would supply them to ProViewer.  All of
this
> in a ProViewer instance controlled by VB.
>
>
> Any ideas on how to specify the coordinates of the rectangle to be
displayed
> in the mapper.
>
> Thanks in advance,
>
> _____________________________________________
>
> Claude Lavoie, a.g.
> Service du soutien � la client�le
> Direction des technologies de l'information
> Minist�re des Transports du Qu�bec
> 35, rue de Port-Royal Est, salle 5.00 a
> Montr�al (Qu�bec)
> H3L 3T1
>
> T�l�phone: (514) 873-6280
> T�l�copieur: (514) 873-8203
> Courriel: mailto:[EMAIL PROTECTED]
> _____________________________________________
>
>
>
> _______________________________________________________________________
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, send e-mail to [EMAIL PROTECTED] and
> put "unsubscribe MapInfo-L" in the message body.



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to