> As I already said in my question, this command can not be used together > with the update command. This command is simular to the Create Circle > command, which is different to the CreateCircle() function. This can only > be used with the alter command, going through the table record for record, > and then it will take to much time. > Carla > -----Original Message----- > From: Stefan Majtan [SMTP:[EMAIL PROTECTED]] > Sent: dinsdag 5 oktober 1999 1:14 > To: Oosterheert, Carla > Cc: MapInfo MapInfo-L > Subject: RE: point object to rectangle with update command > > Please check more one help of MapBasic. There is function, which you are > looking for. > The syntax is: > Create Rect [ Into { Window window_id | Variable var_name } ] > ( x1, y1) ( x2, y2) > [ Pen . . . ] > [ Brush . . . ] > > Stefan > > > Hi all, > > > > Last week I had a question how I could change a set of points which are > > situated in a regular grid into a polygon. I came to the conclusion that > > probably the easiest way is to change the points into squares, so that > they > > fit exactly to each other, and then combine them into one polygon. > > > > For this I can use the alter object command to change the object for > every > > point into a rectangle, but with the alter object every record will be > > changed one by one, which is much too slow, as I might have more then > one > > million records. > > In the mapbasic help they recommand to use the Update command, where a > > complete selection is changed. To change the object, they give the > example: > > Update "selection" > > set object = CreatePoint(CentroidX(obj),CentroidY(obj)) > > > > This brings me to the next question: If I want to use the update command > to > > change the object, and I want to change the object into a rectangle, how > can > > I do that? It seems to me that one can only use CreatePoint(), > > CreateCircle(), CreateLine() and CreateText(). Why isn't there a > > CreateRect() function? > > (There is a Create rect command, but it seems that I can not use that > > together with the update command?) > > > > Is there somebody who can help me with this, as the alter object command > is > > really not wotkable. (It would take some hours when you have a fast pc, > with > > a slow pc I really don't want to try this...) > > > > Thanks, Carla > > ---------------------------------------------------------------------- > > To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put > > "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] > > ---------------------------------------------------------------------- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]