Jason,

>... but that's not ideal for routine maintenance.  ...
Oh yes it is !
Please forgive my pushiness, but I simply needed to post this mail to show
that MapInfo Pro has a lot of (overlooked) potential.

What you need to do is wrap the routine up as a workspace (a macro), and
just run it once.

This example uses a text file named "somename.txt" with 3 columns (ID,
UtmEasting, UtmNorthing). E.g.:
1;521644.81;6265918.47
2;536402.8;6197048.43
3;450807.05;6179338.95
....etc.

The macro (i.e. workspace, e.g. "convert.wor") :

!Workspace
!Version 400
!Charset WindowsLatin1
Register Table "somename.txt" Type "ASCII" Delimiter ";" Charset
"WindowsLatin1" Into "somename1.tab"
Open Table "somename1.tab" As SomeName1
Create Map For SomeName1 Coordsys Earth Projection 8,...other UTM
parameters...
Set Coordsys Table SomeName1
Update SomeName1 Set OBJ = CreatePoint(Col2,Col3)
Set Coordsys Earth Projection 1,0 'or whatever datum you're using
Select Col1,CentroidX(obj)"ColX", CentroidY(obj)"ColY" From SomeName1 Into
SomeSelName1
Export SomeSelName1 Into "somename1LL.txt" Type "ASCII" Charset
"WindowsLatin1" Delimiter ";"
Close Table SomeName1

And you can duplicate the set of commands to handle multiple point files
from different projections in the same WOR.

Regards
Lars Nielsen

**********************************************************
Lars Nielsen                            [EMAIL PROTECTED]
Development Manager, Special Products Contact
Kampsax GIS, Odense              http://www.kampsax-gis.dk
Authorized MapInfo Distributor in Denmark & Norway
Address: Rugaardsvej 55, DK-5000 Odense C
Telephone: +45 6313-5000           Facsimile +45 6313-5090
**********************************************************




"Jason Dettman" <[EMAIL PROTECTED]> on 23-09-99 15:09:23

To:   [EMAIL PROTECTED]
cc:
Subject:  MI UTM to Lat\Lon translator




Does anyone know of a translator\tool\wizard\magic brew that will take a
flat file with no geographics, but contains UTM coordinates (with 20
different zones) and translate them into lat\lon.  I realize we can do a
table\create points 20 separate times, once for each zone, but that's not
ideal for routine maintenance.  Thanks

Jason Dettman
GIS Projects Technician
VistaInfo
[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]




----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to