Re: MI-L Distance measurement in metres
Dear Dawn, The default distance unit is determined by unit specified in the projection of the particular table. So, if you save copy as and change the projection units to metres you will always see metres. This is not a true solution but might help. Laurence Seeff Points Business Mapping Ltd. 22 Tuval St., Ramat Gan, 52522, Israel Long 32.087 Lat 34.802 Tel: +972-3-6126216 Fax: +972-3-6126323 Email: [EMAIL PROTECTED] Web: www.points.co.il From: Hendrick, Dawn To: MapInfo-L (E-mail) Sent: Thursday, March 13, 2003 1:18 AM Subject: MI-L Distance measurement in metres Good Morning All We have a number of users here in Council who would like the Ruler tool to read in metres ALL of the time. We can show them how to change from Kilometres to Metres using Map - Options during a particular session, but we would like to change the Default setting. It is the sort of thing you would expect to be possible using Preferences - but isn't! Can any of the Registry gurus tell us a way to do it behind the scenes perhaps? Dawn Hendrick GIS Analyst Logan City Council 150 Wembley Road LOGAN CENTRAL QLD 4114 Tel: (07) 3826 5465 Mob: 0428 197 268 Fax: (07) 3808 0014 mailto:[EMAIL PROTECTED] * Any views expressed in this Communication are those of the individual sender. Council will only accept responsibility for information contained under official letterhead and duly signed by, or on behalf of, the Chief Executive Officer. This E-mail and any accompanying file attachments, are confidential to the addressee and may also be privileged, and neither confidentiality nor privilege is waived lost or destroyed by virtue of it being transmitted to an incorrect addressee. Unauthorised use of the contents is therefore strictly prohibited. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, please notify Logan City Council immediately and destroy any copies of the original message. Any information contained in the E-mail that has been extracted from Council's records is believed to be accurate, but no responsibility is assumed for any error or omission. Council accepts no responsibility for the content of any E-mail which is sent by an employee which is of a personal nature or which represents the personal view of the sender. While all care is taken, Council cannot guarantee that this E-mail message and any accompanying file attachments, are free from viruses. www.logan.qld.gov.au * - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5913
MI-L Distance measurement in metres
Dawn, you need to get a mapbasic programmer to compile test the following little routine using the Winfocuschangedhandler and a setmap statement. ( Sorry i am away from my mapbasic machine at the mo so i am not entirely sure the code will be 100% fully functioning...but it should workto make it better.. a toggled switch under the 'window' menuo ption would be best..the app could also then be set to autoload for all users so they would never know it was running.. if you need a compiled version email me later.. code snippet follows Include mapbasic.def Include menu.def Declare Sub Main Declare sub WinFocusChangedHandler Sub Main Note Metric Map units will run for this MapInfo session ' U really need to set a menu and toggle here' End Sub Sub WinFocusChangedHandler Dim i_win_type As SmallInt i_win_type=WindowInfo(CommandInfo(CMD_INFO_WIN),WIN_INFO_TYPE) If i_win_type = WIN_MAPPER Then set Map window CommandInfo(CMD_INFO_WIN) Distance Units m 'Job done! could also set other stuff like whether Mi uses spherical/cartesian , or shows coords on statusbar etc Else ' not a mapper so no need to worry...'layouts etc will use whatever they have already got set End If End Sub end of code regards r Russell Lawley Geoscientist British Geological Survey www.bgs.ac.uk * This e-mail message, and any files transmitted with it, are confidential and intended solely for the use of the addressee. If this message was not addressed to you, you have received it in error and any copying, distribution or other use of any part of it is strictly prohibited. Any views or opinions presented are solely those of the sender and do not necessarily represent those of the British Geological Survey. The security of e-mail communication cannot be guaranteed and the BGS accepts no liability for claims arising as a result of the use of this medium to transmit from or to the BGS. The BGS cannot accept any responsibility for viruses, so please scan all attachments. http://www.bgs.ac.uk *
Re: MI-L Distance measurement in metres
Hi Dawn I think it'll change to metres all the time if you put the following command on a new line in your startup.wor: Set distance units km regards Caroline - Original Message - From: Hendrick, Dawn [EMAIL PROTECTED] To: MapInfo-L (E-mail) [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:18 PM Subject: MI-L Distance measurement in metres Good Morning All We have a number of users here in Council who would like the Ruler tool to read in metres ALL of the time. We can show them how to change from Kilometres to Metres using Map - Options during a particular session, but we would like to change the Default setting. It is the sort of thing you would expect to be possible using Preferences - but isn't! Can any of the Registry gurus tell us a way to do it behind the scenes perhaps? Dawn Hendrick GIS Analyst Logan City Council 150 Wembley Road LOGAN CENTRAL QLD 4114 Tel: (07) 3826 5465 Mob: 0428 197 268 Fax: (07) 3808 0014 mailto:[EMAIL PROTECTED] * Any views expressed in this Communication are those of the individual sender. Council will only accept responsibility for information contained under official letterhead and duly signed by, or on behalf of, the Chief Executive Officer. This E-mail and any accompanying file attachments, are confidential to the addressee and may also be privileged, and neither confidentiality nor privilege is waived lost or destroyed by virtue of it being transmitted to an incorrect addressee. Unauthorised use of the contents is therefore strictly prohibited. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, please notify Logan City Council immediately and destroy any copies of the original message. Any information contained in the E-mail that has been extracted from Council's records is believed to be accurate, but no responsibility is assumed for any error or omission. Council accepts no responsibility for the content of any E-mail which is sent by an employee which is of a personal nature or which represents the personal view of the sender. While all care is taken, Council cannot guarantee that this E-mail message and any accompanying file attachments, are free from viruses. www.logan.qld.gov.au * - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5913 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5929
Re: MI-L Distance measurement in metres
Not to get into a coding war, but how about a right click in the mapper shortcut menu? Mark ' This utility sets the active mapper window to meters ' Set to meters will be added to the Mapper Shortcut menu. Include mapbasic.def include menu.def Declare Sub Main Declare Sub SetMeters Sub Main Alter Menu MapperShortcut Add Set to Meters Calling SetMeters End Sub Sub SetMeters Set Map Distance Units m End Sub - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5933
MI-L Distance measurement in metres
Good Morning All We have a number of users here in Council who would like the Ruler tool to read in metres ALL of the time. We can show them how to change from Kilometres to Metres using Map - Options during a particular session, but we would like to change the Default setting. It is the sort of thing you would expect to be possible using Preferences - but isn't! Can any of the Registry gurus tell us a way to do it behind the scenes perhaps? Dawn Hendrick GIS Analyst Logan City Council 150 Wembley Road LOGAN CENTRAL QLD 4114 Tel: (07) 3826 5465 Mob: 0428 197 268 Fax: (07) 3808 0014 mailto:[EMAIL PROTECTED] * Any views expressed in this Communication are those of the individual sender. Council will only accept responsibility for information contained under official letterhead and duly signed by, or on behalf of, the Chief Executive Officer. This E-mail and any accompanying file attachments, are confidential to the addressee and may also be privileged, and neither confidentiality nor privilege is waived lost or destroyed by virtue of it being transmitted to an incorrect addressee. Unauthorised use of the contents is therefore strictly prohibited. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, please notify Logan City Council immediately and destroy any copies of the original message. Any information contained in the E-mail that has been extracted from Council's records is believed to be accurate, but no responsibility is assumed for any error or omission. Council accepts no responsibility for the content of any E-mail which is sent by an employee which is of a personal nature or which represents the personal view of the sender. While all care is taken, Council cannot guarantee that this E-mail message and any accompanying file attachments, are free from viruses. www.logan.qld.gov.au * - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5913