Hello Haarvard -
I do not know what code MI uses in the "Create Points..." menu option but I
have used a work-around that performs faster. Ensure the table is mappable
and in the desired projection, then:
Set Coordsys Table {table}
Update {table} set obj = CreatePoint({x-field},{y-field})
Another workaround is in MB code, read the input file and write it out as
formatted points in a MIF/MID pair then use Import to read it in.
Cheers,
Lindsay Giles
Senior GIS Analyst
AXYS Environmental Consulting Ltd
Suite 600-555 4th Ave. SW
Calgary, AB
CANADA
T2P 3E7
e-mail: [EMAIL PROTECTED]
Main Office: 403-269-5150
Direct Line: 403-750-7671
Fax: 403-269-5245
Web: http://www.axys.net
-----Original Message-----
From: Haavard Bogh-Olsen [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 10:32 AM
To: [EMAIL PROTECTED]
Subject: MI-L MapBasic and Create Points, Trouble!!!
Hello I am using MB 4.12 and MapInfo 4.5
I have a table that is not geographical , but is loaded with two columns
one
with longitude and one with latitude-info.
I want to create points in a map...but I can't find a way to do this quick.
I have 800 points and if I try to use the "do while not EOT(tablename) with
UPDATE and CreatePoint-function it take years to get these points
drawn.....after five minutes..control-break....Have also tried something
with this "fetch next statement". What Do I do wrong...
Is there anyone who knows something about this.....the table_create points
in the standard mapinfo-meny is a very quick thing..but how does this code
look like..if anyone knows....?
Thank you very much for any help!
haavard
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
_______________________________________________________________________
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.