Like this ?
For i = 1 To MapperInfo(nMID, MAPPER_INFO_LAYERS)
szTab = LayerInfo(nMID, i, LAYER_INFO_NAME)
If i = 1 Then
fMinX = TableInfo(szTab, TAB_INFO_MINX)
fMinY = TableInfo(szTab, TAB_INFO_MINY)
fMaxX = TableInfo(szTab, TAB_INFO_MAXX)
fMaxY = TableInfo(szTab, TAB_INFO_MAXY)
Else
fMinX = Minimum(fMinX, TableInfo(szTab, TAB_INFO_MINX))
fMinY = Minimum(fMinY, TableInfo(szTab, TAB_INFO_MINY))
fMaxX = Maximum(fMaxX, TableInfo(szTab, TAB_INFO_MAXX))
fMaxY = Maximum(fMaxY, TableInfo(szTab, TAB_INFO_MAXY))
End if
Next
and if you might think that there might be thematic layers in the map, you
might want to extend this with a check of the layer type
Peter Horsb�ll M�ller
GIS Developer
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
Tel +45 6311 4900
Direct +45 6311 4908
Mob +45 5156 1045
Fax +45 6311 4949
E-mail [EMAIL PROTECTED]
http://www.cowi.dk/gis
-----Original Message-----
From: Martin Tyberg [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 2:54 PM
To: [email protected]
Subject: MI-L Obtaining Full Data Extent Coordinates
Hi,
I would like to obtain the lower left and upper right coordinates that define
the rectangle that completely encompasses all of the data defined within all
layers in the layer control. How can I retrieve this information within
MapBasic?
Thanks.
Martin
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 15809