Coordinate precision In MapInfo

241 views
Skip to first unread message

Pete Smyth

unread,
Feb 21, 2008, 7:55:50 PM2/21/08
to MapInfo-L
G'day All
 
I would like to work out the precision of the current tables in which i do my day to day work.
 
Can anyone help me in this endeavour.
 
I have found this formula:

MapInfo stores all coordinates internally as long integers ranging from -1 billion to +1 billion. These internal coordinates are translated into "coordinate system" coordinates by applying two linear transformations - - one for the X coordinate and another for the Y. The coefficients of these linear transformations are determined from the bounds of the coordinate system.

For example, say you specify a bounds of (20000,100000) to (50000,110000) in meters. Along the X axis, you have a range of 30000 meters, so MapInfo's precision along that axis will be 30000 / 2 billion = 0.000015 meter. Along the Y axis, you have a range of 10000 meters, so the precision along that axis will be 10000 / 2 billion = 0.000005 meter.
 
Q.   How do I find out the bounds of the tables I work in
Q.   Is this formula correct
 
Any help would be appreciated
 
Pete
 
 
 
Pete Smyth | Senior Spatial Information Specialist
Spatial Information Services | Projects Team
Brisbane City Council | Brisbane Square | Level 18, 266 George Street | Brisbane QLD 4000
p +61 7 3403 4345 | f  +61 7 3403 9072 | m 0402 689 442 | e pete....@brisbane.qld.gov.au

**********************************************************************

This message has passed through an insecure network.

Please direct all enquiries to the message author.

**********************************************************************

Uffe Kousgaard

unread,
Feb 22, 2008, 12:35:33 AM2/22/08
to mapinfo-l
Hi,
 
Yes, the formula is correct.
 
How to find the bounds:
 
1) Use TableInfo() function with one of these parameter values: TAB_INFO_COORDSYS_MINX, TAB_INFO_COORDSYS_MINY,
TAB_INFO_COORDSYS_MAXX, TAB_INFO_COORDSYS_MAXY
 
2) Export the table to MIF format and look at the header (text format).
 
3) Use CoordSys Bounds Manager in the Tool Manager.
 
There may be other methods too.
 
Regards
Uffe Kousgaard

andre boessenkool

unread,
Feb 22, 2008, 11:42:16 AM2/22/08
to mapi...@googlegroups.com

Forum,

I am looking for some advice:

I have a number of ESRI shape files, each containing several data classes. For example a ROADS file would contain freeways, national roads, main roads, minor roads, secondary roads, 4x4 tracks, streets etc. Similarly there are other files containing several classes of data. This stuff is all to be mapped, each class with its own style parameters (e.g. a freeway in a thick blue double line, a secondary road in a narrow yellow line etc.), all with the appropriate colors, labeling etc. etc.

Now, as we go, new shape files will replace the older ones, as more information becomes available. The idea is that I would like to be able to just replace the old shape files for new ones, import them in MapInfo (replacing the TAB files) and simply let the mapping software operate on them to generate a new map product. Typically this will be on a once a year basis.

Until now I have used MapInfo for a number of years and in order to achieve the type of map required, the shape files were split into as many TAB files as there were classes of data in each of them (I had freeways.TAB, mainroads.TAB, well, you get the gist). In a repetitive scenario like described above, I will have to do this split up every time a new, updated shape file becomes available. My question is: is, what I did until now, necessary or can this somehow be avoided, either within MapInfo, or perhaps by using different software. I must admit, at this stage I still work with MI v. 4.5. Lately I have been looking into MAPublisher, but I am not sure that it can do what I am looking for.

In anticipation,

andre boessenkool

an...@cabex.co.za

+27 (0)21 881 3188

+27 (0)82 300 0413

Skype: aboes2000

Lat: S 33.940

Lon: E 18.766

 

Tim Rideout

unread,
Feb 22, 2008, 12:17:15 PM2/22/08
to mapi...@googlegroups.com

Andre,

There is no real need to split your shape files into multiple layers, either in MapInfo or MAPublisher within Illustrator. TAB files support different symbolisation for every object so queries such as Select Freeways, Apply Freeway Style (this isn’t the real syntax), Select A Roads, Apply A Road Style, are all that is needed. This could be set up as an MBX that you ran each time.

In MAPublisher you would just create a stylesheet based on the feature codes. After import of your new shape file you would drag it into the correct style sheet and it would pick up the correct styles.

Hope this helps

Tim

 

Dr Tim Rideout

Director

 

See the new Dynamic World wall map at http://xyzmaps.com/acatalog/World_Maps.html

Visit XYZ at IMTA Portugal in Estoril Feb 29 2007

The XYZ Digital Map Company

Unit 9 Phase 2 Hardengreen Business Park

Dalhousie Road, Dalkeith

EH22 3NX, Scotland, Europe

 

Tel: +44 131 454 0426

Fax: +44 131 454 0443

Mobile: +44 7766 825937

Email: tim.r...@xyzmaps.com

Web: www.xyzmaps.com


andre boessenkool

unread,
Feb 22, 2008, 1:20:57 PM2/22/08
to mapi...@googlegroups.com

Thank you, Martin and Tim,

The shape files do contain fields specifying the type (or ‘class’) of data. I’ll look at the thematic solution and also at the MAPublisher solution.

andre boessenkool

an...@cabex.co.za

+27 (0)21 881 3188

+27 (0)82 300 0413

Skype: aboes2000

Lat: S 33.940

Lon: E 18.766

 


lang=EN-GB>



Reply all
Reply to author
Forward
0 new messages