Lars  

its just poor written text in the manual  ignore the mix of numbers and
text, use one or the other as you would with any ordinary object...

it should be

ObjectGeography( xxx ,  1 )  = returns the OBJ_GEO_MINX 
ObjectGeography( xxx ,  2 )  = returns the OBJ_GEO_MINY

etc etc

using obj_geo_minX( a number)  is a mistake

in your example >>>>
ObjectGeography(xxx(1) , OBJ_GEO_MIN) throws a compile time error ...
<<<

the error is due to the fact  that it should be ObjectGeography(xxx(1) ,
OBJ_GEO_MINX)  (or OBJ_GEO_MINY)  or  you havent included tehMapbasic.def
file ??



teh minx will return teh lowest value easting of any of the points, the min
y retirns teh lowest value northing of any of the points...THEY dont have to
be from teh same point..


regards

r 




-----Original Message-----
From: Lars V. Nielsen (GisPro) [mailto:[EMAIL PROTECTED]
Sent: 12 March 2004 16:00
To: MAPINFO-L Mailinglist
Subject: MI-L ObjectGeography on MultiPoint / Collection objects ?


For the first time I've had to consider the "new" object types, MultiPoint
and Collection.

When reading the reference (v6.5), I'm puzzled by content of this (too
hastily?) added section :

-- quote begins --
The ObjectGeography() function has been extended to support Multipoints and
Collections. Both types support attributes 1 - 4
(coordinates of object's minimum bounding rectangle (MBR).

OBJ_GEO_MINX (1) minimum x coordinate of an object's MBR.
OBJ_GEO_MINY (2) minimum y coordinate of object's MBR.
OBJ_GEO_MAXX (3)  maximum x coordinate of object's MBR.
OBJ GEO_MAXY (4) maximum y coordinate of object's MBR
-- quote ends --

How is this to be interpreted ? There's no working sample so it's rather
unclear to me what it means. Can anyone enlighten me ?

My experience sofar:
ObjectGeography(xxx , OBJ_GEO_MIN(1)) throws a compile time error ....
ObjectGeography(xxx(1) , OBJ_GEO_MIN) throws a compile time error ....
ObjectGeography(xxx , OBJ_GEO_MIN1) throws a run time error ....

Best regards/Med venlig hilsen
Lars V. Nielsen
GisPro, Denmark
http://www.gispro.dk/
http://www.gispro.biz/


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10841


*********************************************************************
This  e-mail  message,  and  any  files  transmitted  with  it, are
confidential  and intended  solely for the  use of the  addressee. If
this message was not addressed to  you, you have received it in error
and any  copying,  distribution  or  other use  of any part  of it is
strictly prohibited. Any views or opinions presented are solely those
of the sender and do not necessarily represent  those of the British
Geological  Survey. The  security of e-mail  communication  cannot be
guaranteed and the BGS accepts no liability  for claims arising as a
result of the use of this medium to  transmit messages from or to the
BGS. .                            http://www.bgs.ac.uk
*********************************************************************


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10844

Reply via email to