checkout around line 109 in WebServerExtensions\www\schemareport\showgeom.php for a good example
On 9/21/07, Kenneth, GEOGRAF A/S <[EMAIL PROTECTED]> wrote: > > The only way I know of, is to issue a select of the objects on the > datasource. > While reading the objects, you can get their envelope (aka mbr, bbox, > etc..). > If you sum up alle the objects enevlopes, you can get the minimum rectangle > in which all objects fit. > Once you have this box, your center, will be the center of the box, and the > scale will be the width or height of the box. > Regards, Kenneth, GEOGRAF A/S > > > > Ivan Milicevic skrev: > Hello, > > I wonder is it possible to calculate zoom extent on selected objects? For > example, I have selected various type of objects (line, polygon, point) but > I don't have any XY info in database on these objects. How can I calclate > center point and scale in this case? > > Any help-advices are wellcome. > > Greetings, > > Ivan. > > ________________________________ > > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- Zac Spitzer http://zacster.blogspot.com/ +61 3 9018 5778 (voip via my pc) +61 405 847 168 (aussie moible) _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
