RE: [MI-L] Map Basic Dialogs: Parent Child relationships betweencontrols
Here is some code explaining a way to do it lTableList contains the semicolon separated names of all open tables. The index of the selection is kept in goal lColList contains the column names as generated by TABL for the selected table. The index of the selected column is stored in goal. Both list variables are in common at the module level In the dialog Control ListBox Position 5, 15 Width 120 Height 90 Title lTableList Value 1 into goal calling TABL ID 610 Control ListBox Position 235, 15 Width 120 Height 90 Title lColList Value 1 into goal ID 641 disable calling finale Subroutine TABL generates the lColList pour the selected table and ends with alter control 610 disable alter control 641 title lcollist enable Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Searle, Kevin Sent: 27 octobre 2006 07:45 To: Mapinfo-L@lists.directionsmag.com Subject: [MI-L] Map Basic Dialogs: Parent Child relationships betweencontrols Hi All, Is it possible to set up a parent/child relationship between 2 list boxes such that the list displayed by the second is determined by what is selected in the first? Regards KS ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. www.lstrillium.com ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] MI: Style Override Bug
It was for sure part of version 7.0 Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Horsbøll Møller Sent: 20 octobre 2006 05:42 To: Jaromir Svasta; mapinfo-l@lists.directionsmag.com Subject: RE: [MI-L] MI: Style Override Bug Jaromir, I know for sure that this bug has already been reported and registered. I reported it last week - and also some years ago... Peter Horsbøll Møller GIS Developer, MTM 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jaromir Svasta Sent: Friday, October 20, 2006 10:43 AM To: mapinfo-l@lists.directionsmag.com Subject: [MI-L] MI: Style Override Bug Hi listers, I would like to report a bug in MI (v7.8): The checking of the style override for a map layer is not preserved in workspaces for layers made temporarily invisible. To reproduce this behaviour, check the style override checkbox for a map layer, then make the layer invisible by switching the visibility checkbox off, save the workspace, close all and reopen the workspace. After switching the visibility of the layer on again, look at the style override checkbox in the display options - you will find it unchecked. The problem may seem petty, but in my work I often come into situations that requires me to switch this checkbox back on hundred times a day. Quite painful! -- Jaromir SVASTA Hydrogeologist Geological Survey of Slovak Republic Mlynska dolina 1 817 04 Bratislava Slovak Republic Tel:+421 2 59375326 Mobile: +421 908783589 Fax:+421 2 54771940 ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] MapBasic: Reproject
I found only one message dated 2005 framing the problem and no answer to it: Does the Reproject MapBasic statement work, and if so how to make it work? I tried several setups with my 7.00 and a co-lister with his 7.8. to no avail. Is it a bug or some unexplained trick? Jacques Paris ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Icon Image Buttons in dialogs
There is a very devious way to do it. First, you must have MapInfo v7 or +. Second, you must extract the icon as a BMP (via Resource Hacker for example). Third, the bmp must be registered as a TAB. Fourth you must include in your code a dialog handler to display the icon. Fifth, you should restore the functionality of the icon with the appropriate code; however the documentwindow control does not accept a handler. Thus a little bit more deviousness; add a button that will frame the image and that will have the handler. If another document window contains an accessible map, you can use such icons/buttons to navigate or do other operations (change style, create objects...) within that dialog. Does anyone have with some experience in the area of map manipulations in a dialog? This code will prove my point: (the settings are for a large icon; they will need some adjustment if a small format is used) declare sub dialoghandler declare sub zoomplus dialog Title Icon in dialog calling dialoghandler Control DocumentWindow ID 1007 Width 20 Height 18 position 10,10 disable control button position 7,7 width 22 height 20 title calling zoomplus control okbutton sub dialoghandler Dim iHwnd As Integer iHwnd = ReadControlValue(1007) Set Next Document Parent iHwnd Style 1 open table gr01_005_26.tab map from gr01_005_26 set coordsys table gr01_005_26 set window frontwindow() width 1.2 Units in height 1.2 Units in scrollbars off set map window frontwindow() center (60,-60) zoom 120 Units ft end sub sub zoomplus run menu command 1705 end sub -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jakob Lanstorp Sent: 26 septembre 2006 08:01 To: [EMAIL PROTECTED] Cc: mapinfo-l@lists.directionsmag.com Subject: RE: [MI-L] Icon Image Buttons in dialogs You can not do this in MapBasic. Some use c,c++ or delphi to embed forms in dll to use from MapBasic in MapInfo. If your a novice devloper I would stick to the standard MapBasic dialogs. You could build a buttonpad (not a dialog) in MapBasic with toggle buttons and icon change on toggle. HTH Jakob Lanstorp Software Developer GIS, Surveying IT COWI A/S Odensevej 95 DK-5260 Odense S Denmark Tel +45 6311 4900 Mob +45 4020 7529 Fax +45 6311 4949 E-mail [EMAIL PROTECTED] http://www.cowi.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rakesh Rao Sent: Tuesday, September 26, 2006 1:05 PM To: mapinfo-l@lists.directionsmag.com Subject: [MI-L] Icon Image Buttons in dialogs Hello, I am trying to build a MapBasic dialog box with icons in Push buttons which act like toggles. One push and it is On and Push again, it is Off. I need to be able to dynamically change the icon of each button as it is depressed (like in VB) by changing the bmp's. How do I do this? What control I must use? Any help is appreciated and thanks in advance. Regards - Rakesh Rao [ rakesh.rao (at)4d-technologies.com ] - Four Dimension Technologies [www.4d-technologies.com] - Get GeoTools, Work smarter: www.4d-technologies.com/geotools - Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter - View GDF files within the AutoCAD environment, Use GDFViewer with GeoTools --- End of forwarded message --- - Rakesh Rao [ rakesh.rao (at)4d-technologies.com ] - Four Dimension Technologies [www.4d-technologies.com] - Get GeoTools, Work smarter: www.4d-technologies.com/geotools - Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter - View GDF files in AutoCAD, Get GDFViewer with GeoTools ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] adding objects with automatic ID
I just finished a small tool for adding objects (points, lines, plines and polygons) to an open table with an automatic ID. Integer or smallint are used starting from value after maximum observed in the table. Alpha ID are part alpha (first n positions) part digits (next p positions), the automatic part concerning only the numeric portion. As in my immediate contacts I have not found a clear consensus on an universal structure for Alpha ID, I am offering the tool with the above option as a beta version, hoping that you will tell me of other schemes that I could integrate eventually in it. www.paris-pc-gis.com/Beta/beta.htm AddObjectsWithID.zip is last in that list. Hoping it could help some of you. Jacques Paris ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] MI 7 Window export
Testing the possibilities of vector format (png and emf) for insertion of a mapper window saved as into a Visio document, I have noticed that label size do not seem to follow window size redefinition before saving. That is, if I multiply by two the size of the window to be saved, label text is not increased proportionately. Do other versions than MI 7.0 have the same problem? Or am I way down left field passed the parking lot? Jacques Paris ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Left- or Right-justified text
Select with int(Objectinfo(obj,5))=0 Where 5 is the equivalent of OBJ_INFO_TextJustify Make you there are only text objects in your table (or selection) Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason McMahan Sent: 6 septembre 2006 11:10 To: MapInfo-L@lists.directionsmag.com Subject: [MI-L] Left- or Right-justified text Does anyone have any suggestions as to the possibility/process for selecting text based on its justification? i.e., all text (in a .tab file) which is left-justified Thanks in advance! ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] pattern definitions in 7.8
Someone who was trying to follow the technique I have offered for modifying/creating brush patterns (www.paris-pc-gis.com/mbr_start.htm Resource Documents Brush patterns) went aground with version 7.8. It happens that the structure and definitions of the bitmap resources in MIRES780.DLL are widely different from those in version 700. In that version the patterns numbered 1 to 61 measured all 8x8 pixels. In 7.8, I found 2 16x16 patterns (62 63) and a large variety of 32x32 (from 64 to 165). I do not know when those different size patterns were added (7.5 or 7.8?). Could anyone check the contents of MIRES750.dll (or send me a copy of that file, all my thanks to him) Also, I would like to know if anyone has used my technique to modify brush patterns with version 7.0 and if he encountered any problem. TIA Jacques Paris ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] Re: MI 8.5 Copy/Paste issue
Let me say first that I am very impressed at the opportunity given by MI to discuss openly some user preference. Since the days when beta releases opened temporary channels to limited exchanges on testing results, I do not remember MI paying such attention to its users community. Is that the harbinger of spring? I hope so. I would not want that thread to become an open wish list discussion, but someone mentioned the idea of adding one or more special buttons for controlling the behaviour of that double issue (copy/paste and find) and some extension to such a solution was suggested for other preferences. I have build some time ago a mapper preference tool bar called WinMastr; that tool bar can be customized to show any of the 14 icons available (all the functions can be accessed at all times by the menu). Maybe, those who have found that application useful should show MI which way to go (available on www.paris-pc-gis.com/download.htm in the MLC section) ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Set Focus on PopupMenu Control in a Dialog
There seems to be some hidden rules in that control focus setting. Popup menu does not seem to able to be set as default control, the one that should be active at dialog opening. But it is not the only case I have met; I have been unable to set the OkButton or any button as default focus. What could be that hidden rule? Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Goodall Sent: 21 août 2006 13:31 To: mapinfo-l@lists.directionsmag.com Subject: [MI-L] Set Focus on PopupMenu Control in a Dialog I have a Dialog that contains several types of controls (StaticText, PopupMenu, EditText, RadioGroup and Buttons) and I would like to specify which control has the initial focus when the Dialog displays. Currently when the Dialog displays, the focus is placed on the first EditText control. I want the focus to be placed on a PopupMenu control instead. The Controls are defined in the following order StaticText PopupMenu EditText So I would think that the PopupMenu would be get the initial focus according to the Help information below. Greg Goodall Data Management Marketing Project Manager / Senior Systems Analyst 321-725-8081 [EMAIL PROTECTED] ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Embedding a graphic within a dialog? Possible/impossible?
The only way I have found is to (mis)use the symbol picker. That implies that the logo has been created as Custom Symbol and is properly installed for the platform. The minimum code would look like control symbolpicker width 45 height 45 disable value makecustomsymbol(CAR1-32.BMP,256,48,0) Missing are the Position values. 48 is the maximum custom symbol size. With the style set at 2, the width/height can be larger but the symbol would not be. An alternative is to use the FontPicker. The logo must then be included in a special font (to be installed) but there is no more size limit. Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jackson, Simon (Capita Symonds) Sent: 17 août 2006 10:18 To: mapinfo-l@lists.directionsmag.com Subject: [MI-L] Embedding a graphic within a dialog? Possible/impossible? In regards to the MB script I have been writing (previous posts: Automating Layout Production (Mapbasic))There are several more things that the end-client now wants. Firstly, a company logo embedded into the dialog. Is this possible, if so, perhaps a snippet of some code would be nice. I will hassle about drop down menus in another thread to follow... ** This email and any files transmitted with it are confidential, and may be subject to legal privilege, and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error or think you may have done so, you may not peruse, use, disseminate, distribute or copy this message. Please notify the sender immediately and delete the original e-mail from your system. Computer viruses can be transmitted by e-mail. Recipients should check this e-mail for the presence of viruses. The Capita Group and its subsidiaries accept no liability for any damage caused by any virus transmitted by this e-mail. *** ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] MI 8.5 Copy/Paste issue
There seems to be two issues: Copy/paste that zooms to the copied object: that one has always been part of MI as far back as 4.5. I remember an answer then to the effect it was a Windows feature (not to be tackled with) and the only way I found was to use the Previous View command after each paste. Find selection that zooms to the selection: I do not know of a change because I am stuck with 6.5 but in that version there is no change of zoom for a single selected object; eventually, there is a pan to place the centroid of the object in the mapper. However if more objects are selected, the zoom is adjusted so that all the centroids at least are in the mapper. If I have considered that behavior acceptable, I found that it lacks some subtleties and I invented ZoomSel (or ZoomOnSel) that focuses correctly on the object(s) using their MBR (not their centroids) and toggles the zoom allowing a wider view of the selection (very useful to see the context of the selection) on www.paris-pc-gis.com/download.htm in the PPCC section -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taylor, Michael G (SKM) Sent: 18 août 2006 00:09 To: mapinfo-l@lists.directionsmag.com Subject: RE: [MI-L] MI 8.5 Copy/Paste issue Is upload there now As for version 8, as a test I selected a single polygon, copied it (ctrl c), panned away from it and pasted it into cosmetic (ctrl-v). Zoomed straight back to it. Can't see anything in the preferences or registrythat would stop it. Mike Taylor GIS Senior Consultant [EMAIL PROTECTED] Sinclair Knight Merz Ltd http:\\www.skmconsulting.com Level 12, Mayfair House Tel: +64 4 473 4265 54 The Terrace DDI: +64 4 914 8464 PO Box 10283, Wellington Fax: +64 4 473 3369 New Zealand Mob: +64 21 110 3312 From: Jason McMahan [mailto:[EMAIL PROTECTED] Sent: Friday, 18 August 2006 3:47 p.m. To: Taylor, Michael G (SKM); mapinfo-l@lists.directionsmag.com Subject: RE: [MI-L] MI 8.5 Copy/Paste issue That sounds great! Please let the list know when you've posted the .mbx. I'm sure I'm not the only one with this issue. And by the way, I just did a test - same tables, same computer - and this was NOT a problem in 8.0. Since you mentioned that it WAS a problem for you in 8.0, that makes me think it's a user-defined preference that can be switched on and off somewhere Anybody from Troy reading this thread? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taylor, Michael G (SKM) Sent: Thursday, August 17, 2006 9:22 PM To: mapinfo-l@lists.directionsmag.com Subject: RE: [MI-L] MI 8.5 Copy/Paste issue I noticed the same thing in 8. It's not really needed as they already have zoom to selection (current and all views)as a command. At least an option for auto zooming would be appropriate. Really a pain in the @#$# when you editting a map for a specific layout, then lose your original map view, because you forget to do a map previous between pastes or something silly like that. I've just added (or will as soon as my registration gets accepted)a basicprogramto directionsmag that allows stepping through upto 40 previous viewsformap windows called zoom_hist that helps avoid that problem. Mike Taylor GIS Senior Consultant [EMAIL PROTECTED] Sinclair Knight Merz Ltd http:\\www.skmconsulting.com Level 12, Mayfair House Tel: +64 4 473 4265 54 The Terrace DDI: +64 4 914 8464 PO Box 10283, Wellington Fax: +64 4 473 3369 New Zealand Mob: +64 21 110 3312 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason McMahan Sent: Friday, 18 August 2006 12:57 p.m. To: mapinfo-l@lists.directionsmag.com Subject: [MI-L] MI 8.5 Copy/Paste issue Hello- Has anyone else noticed that in MI 8.5, when you copy and paste an object in a map window, it automatically zooms to the object that has been pasted? Previous versions always did this when the user copied/pasted multiple objects, but this seems to be a new enhancement -- and it's quite frustrating! Is this an option I can turn off somewhere? Thanks, -Jason Please consider the environment before printing this e-mail. Notice - This message contains privileged and confidential information intended only for the exclusive use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify us immediately. Opinions, conclusions and other information in this e-mail and any attachments that do not relate to the official business of the firm are neither given nor endorsed by it. Any documentation produced using this data is uncontrolled and not subject to update. The recipient is responsible for reviewing the status of the transferred information and should advise us immediately upon receipt
RE: [MI-L] Spam: Friday- fun with registering TIF images
You are right, one can trick a mapper window into a rotation, with a lot of proviso about which objects will be correctly rotated, and which badly or not at all. I have discovered that also more than 9 years ago and I wrote a note on it in My Bag'oTricks at the time. It got a very wide audience of 12.5 persons ... I discovered that it is still for sale on our site and I take the opportunity to tell you and all the mapinfo-listers that all there is for sale on this site can be obtained free on a simple e-mail request. I will probably correct the site soon; in the meantime, do not hesitate contacting me directly. Jacques Paris www.paris-pc-gis.com for the documents see under PPCC Services and Products -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cummings, Mike Sent: 18 août 2006 16:13 To: MapInfo-L (E-mail) Subject: [MI-L] Spam: Friday- fun with registering TIF images A question arose whether a 50 year old abandoned well was plotted correctly on our maps. The well file had a map showing the location in reference to the rivers that surround it. I thought I could easily register the image determine if the well was truly plotted incorrectly. I realized when I opened the scanned image, that I forgot to rotate the image. I decided that I could still register the image; I just had to turn my head between the images. I expected the raster image to rotate to fit the map window; well, the map window rotated to match the orientation of the raster image. I ended up with a map window where north was to the right. At this point, I had determined that the well was located correctly I closed the raster image; I thought was that this would refresh the window and the window would again be north to the top. Wrong again, north stayed to the right. Zoomed in, zoomed out, panned right, panned left-- it stayed to the right! I created a layout window - north to the right. I cloned the window-north was up?? I guess, I found a way to rotate a map or layout windows. This rotation was about 90 degrees. I didn't try to find if there are threshold limits to the rotations; but I certainly was entertained by some of the results. ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] SerachInfo, SearchRect and SearchPoint or .....something else ?
Title: Message Why not converttoregion(circle) and search with resulting polygon? Jacques -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Driver, Greg 9434 Sent: 26 juillet 2006 04:20 To: 'Christophe Brabant'; mapinfo-l@lists.directionsmag.com Subject: RE: [MI-L] SerachInfo, SearchRect and SearchPoint or .something else ? Chris, You could always use the MBR of the circle and then use this in the SearchRect() function. You can then use SearchInfo() function to return the Table/RowID of objects found within the search area and then test to see if these objects do fall within the radius of circle. Greg Driver System Administrator Applications Support ICT NOT PROTECTIVELY MARKED -Original Message- From: Christophe Brabant [mailto:[EMAIL PROTECTED] Sent: 25 July 2006 15:32 To: mapinfo-l@lists.directionsmag.com Subject: [MI-L] SerachInfo, SearchRect and SearchPoint or .something else ? Hi There are at least 4 selection modes on a map : - by clicking a point (SearchPoint(x,y)) - by selecting a rectangle (SearchRectangle(x1,y1,x2,y2) - by selecting all the objects included into a closed polygon - by selecting a circle witha variableradius : in this case, how to query (by program) the objects included into the circle ? Not with SearchPoint, not with SearchRect, Thank you Chris Internet communications are not secure and therefore Surrey Police does not accept legal responsibility for the contents of this message. This email and any attachments may be confidential. They may contain privileged information and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and delete the message and any attachments from your computer, do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Surrey Police. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Surrey Police reserves the right to monitor all email communications through their networks. ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Performance of Large Tables and Spatial Selections
Bill, When doing any selection based on an object, I always adopt that MB solution. It is one of the cases where the run menu command does not work. The reason seems simple enough: selection-by-polygon is part of the M_TOOL_ family of definitions that requires some mouse input in order to be executed; that cannot be simulated in MB prior to the run menu command. But I suspect that in this precise case the select-by-polygon tool does just what the selection by a single object would do. Bill's question was my before-bed reading and I woke up this morning at 5 having figured out the answer. I was beaten by Uffe who had his 7 hours lead time on me. Unfair eh!, but it is the beauty of the web, isn't it. Jacques -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Uffe Kousgaard Sent: 13 juin 2006 23:36 To: Mapinfo-L@lists.directionsmag.com Subject: Re: [MI-L] Performance of Large Tables and Spatial Selections Hi Bill, MapInfo is probably applying the Colorado restriction after having joined the 2 tables, which makes it very slow. So start by: Select * from states where name = Colorado and store the result in a variable ColoradoObj. Next do: select * from streets where obj within ColoradoObj. Kind regards Uffe Kousgaard www.routeware.dk - Original Message - From: Bill Thoen [EMAIL PROTECTED] To: MapInfo List Mapinfo-L@lists.directionsmag.com Sent: Wednesday, June 14, 2006 12:03 AM Subject: [MI-L] Performance of Large Tables and Spatial Selections I've got a large table of streets (the *.map file is a little over 1 GB) and when I display it over a table of state polygons and select all streets within a polygon by using a click with the Boundary Select tool, it does this in a few seconds. But when I try to do this with MapBasic via a selection like Select streets.street_name from streets, states where streets.obj within states.obj and states.name = Colorado into MyStreets noselect it's taking EONS to do this. Anyone know how I can get mapbasic to select streets within boundaries, and do it before I crumble into dust? ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] Alvis' MI Icons for MB
I just realized I have not seen an official announcement about the availability of Alvis Ngs translation of all the MI icons into BMP and ICO files set to be used directly in Visual Basic It is in www.paris-pc-gis.com/download.htm as the last entry in the Files from other origins page JP ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] nu app: merging sections
I was faced with a table of multi-section plines, each one representing a contour line; the gaps were originally used by text objects showing the altitude. The idea was to make single section plines by filling the gaps with line segments. Merge_Sections answers that straight forward situation, by filling the gaps in order of size until one section is left. It is useless or even dangerous if the polylines are not topologically sane (no overlap of sections, no T branching, spike, ) Available at www.paris-pc-gis.com/download.htm in the MLC project page ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] MapInfo Symbols
You could use as a general resource the work I have prepared on TTF symbols at www.paris-pc-gis.com/MI_Enviro/mie_start.htm Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Tracey Sent: 23 mai 2006 10:22 To: MapInfo-L@lists.directionsmag.com Subject: [MI-L] MapInfo Symbols Hello Does anybody out there know of any websites that allow you to download a series of symbols for use in MapInfo? Andrew Tracey Information Support Officer Information Team Chief Executive Office South Tyneside Council Westoe Road South Shields NE33 2RL Tel: 0191 4247561 E-Mail : [EMAIL PROTECTED] Please do not print this e-mail if you can help it - and help protect the environment. This email and any files transmitted with it are confidential and intended solely for the named recipient. If you have received this e-mail in error, please immediately notify the sender by e-mail and delete from your system, you are not permitted to disseminate, store, disclose or copy. E-mail transmission cannot be guaranteed to be secure or error-free as they could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses and therefore the Council accept no liability for any such errors or omissions. Views or opinions expressed in this email are solely those of the author and do not necessarily represent those of the Council.South Tyneside Council, Town Hall Civic Offices, Westoe Road, South Shields, Tyne Wear, NE33 2RL, Tel: 0191 427 1717, Website: www.southtyneside.info The Council's web site address is www.southtyneside.info ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] new app
It may seem strange that in the present context where the future of MapBasic applications is rather threatened by all the rumours of the abandonment of MapInfo.COM to the profit of a NET version incompatible with MB I am still writing MB applications. You have to imagine that I foresee despite all those rumours there will always be a niche for the old users, that there are still pressing need for new tools, that if I do not consider at my age learning a new language, practicing an old one has many mental benefits and brings more immediate satisfactions (since I accepted there was no $ rewards to expect for that activity). After that spiel some may take as a testament but is more like an act of faith, here is what I can offer you. DateStringConvertor reads in dates as strings in different formats and convert then in strings respecting certain rules (only digits, leading 0 present, sequences DMY, MDY or YDA, separator space, - / .). There are probably 2 main reasons for using it: to convert foreign entries to a standard format or to prepare non conformant date formats to one that can be used by MI for converting date strings to date variable. MI allows only two kinds of format in the stringtodate() function, US and local, the last one being defined by the particular Windows regional settings. One could of course play with those settings to match the date input format but it seems rather awkward and dangerous. DateStringConvertor avoids that and allows for two different spellings for month names that the user can alter (in the INI file, with all the language strings as that app is Multi Lingual Compatible) to match his needs You will find it at www.paris-pc-gis.com/download.htm in the MLC project. Hoping that app could be of help to some of you, like it has been to Terry MacDonnell (uk) who has offered me the most stimulating support to develop it. Jacques Paris ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Toolbar Options Dialog Box
I tried to follow that track. It involves finding first the MI dialog ID. To do that, it is written to launch MI with the command string -helpdiag, to open a dialog and to use the help button; instead of the help being open, one should get the ID number. I do not know if it is I am using XP, but clicking on the help button just makes the dialog flick. I have made the test with MI7.0. I know that the helpdiag is active because I see the ID information if I use the help button on the tool bar with no dialog open. Besides, I can close MI started that way only with the Task Manager. All that seems to indicate an incompatibility between MI helpdiag and XP. Any confirmation, any way around it? Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars I. Nielsen (GisPro) Sent: 8 mai 2006 17:25 To: Boyd Townsend Cc: mapinfo-l@lists.directionsmag.com Subject: Re: [MI-L] Toolbar Options Dialog Box Hi Boyd, You may be able to utilize the Alter MapInfoDialog statement to hide or disable the buttons in the toolbar dialog. It doesn't remove the dialog box, but it will make it in-operational. Best regards / Med venlig hilsenLars I. NielsenGisPro Boyd Townsend wrote: Hi all, Other than using a runtime version of Mapinfo. Can anyone tell me if there is a way to disable this dialog box on right mouse click of the toolbar area. I have designed and .mbx application which modifies the toolbars significantly (New Toolbars) and I don't want users to have the ability to bring back the standard toolbars. Can anyone help. Cheers. Superintendent Boyd Townsend Community Safety Officer N.S.W Rural Fire Service - Northern Rivers Email: [EMAIL PROTECTED] Phone: (02) 6663 7211 Mobile: 0418 895608 The information and attachments contained in this e-mail are for the use of the addressees named above. If you are not the intended recipient of this message you are hereby informed that you must not disseminate, copy, take any action in reliance on, disclose or use the information contained in it. If you have received this message in error, please notify the sender immediately and delete the message and attached documents. This email message is intended only for the addressee(s) and contains information which may be confidential.If you are not the intended recipient, please notify the sender and delete this email and any copies orlinks to this email completely and immediately from your system. Views expressed in this message arethose of the individual sender, and are not necessarily the views of the NSW Rural Fire Service. ___MapInfo-L mailing listMapInfo-L@lists.directionsmag.comhttp://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] logical to numeric
I have not seen much written on the subject but I was faced with it: how to use logical variables in operations without using if statements. I was not able to pinpoint such a function and may be I am on an entirely wrong track but to solve my problem I have devised a possible conversion and I would like to know if it is acceptable or how could it be improved. Here it is, with its justification num_logic = ASC(STR$(logic))\73 STR$() will return F or T, their ascii codes (ASC) are 70 and 84. The integer division by any value from 71 to 83 will return 0 or 1. This conversion to numeric finds its place in conditional operations (ex. inclusion in a summation when a condition must be respected sum(numeric(i)*num_logic(i)) ) or condition summaries (ex1: how many true conditions apply to the case sum(num_logic(i)) ex2. if one condition is false all is false num_logic(1)*num_logic(2)* I would appreciate any comment on that issue and proposed solution. TIA Jacques Paris ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] logical to numeric
The answer is to use INT() (Peter Horsbøll Møller, Spencer Simpson, Lars Nielsen thank you). It is strange because the users guide specifies that the argument should be a numeric _expression_ and that threw me off because if one multiplies two logical variables it fails, requiring numeric values (but these can be contained in variables). Nice to get the explanation that logical variables are treated as special numeric ones (a one byte numeric with values 0 or 1). That applies to some contexts, for ex. in functions like Maximum(), Cos(), Log() but it fails in arithmetic operations (I guess because the variable types are checked before the operation is carried out and that nobody allowed for the logical type to be treated numerically) It is one more example of the niceties MapBasic contains that can documented only by experience. Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jacques Paris Sent: 1 mai 2006 15:04 To: MapInfo-L@lists.directionsmag.com Subject: [MI-L] logical to numeric I have not seen much written on the subject but I was faced with it: how to use logical variables in operations without using if statements. I was not able to pinpoint such a function and may be I am on an entirely wrong track but to solve my problem I have devised a possible conversion and I would like to know if it is acceptable or how could it be improved. Here it is, with its justification num_logic = ASC(STR$(logic))\73 STR$() will return F or T, their ascii codes (ASC) are 70 and 84. The integer division by any value from 71 to 83 will return 0 or 1. This conversion to numeric finds its place in conditional operations (ex. inclusion in a summation when a condition must be respected sum(numeric(i)*num_logic(i)) ) or condition summaries (ex1: how many true conditions apply to the case sum(num_logic(i)) ex2. if one condition is false all is false num_logic(1)*num_logic(2)* I would appreciate any comment on that issue and proposed solution. TIA Jacques Paris ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Determining how many polygons occupy the same area
Two different problems 1 - generating a one-thick mosaics from a set of partially overlapping polygons The principle I would use is simple but must be carefully implemented: -select first polygon and set target -select all over remaining polygons and split -select all over polygons, set target and erase with all fragments just created -proceed to the next polygon forgetting about the already treated one. I have tested another one-shot approach: [select all polygons, set target, select all polygons, split] but that duplicates objects. It is quick and safe but I have not tested it on complex maps. 2 - counting number of overlaps in each fragment That is the easy part. In the same layer, put the original poly map and the mosaics map. One column of mosaics must be numeric (e.g. polyg_count smallint) Update mosaics set polyg_count=searchpoint(frontwindow(), centroidx(obj), centroidy(obj))-1 Jacques Paris PS I have had lots of problems some years back writing a mosaics program because of left over splinters between objects due to slight changes in geometry resulting from splits and erases. I am wandering if the one-shot approach I mentioned followed by a pruning of identical objects would not a more efficient and secure way to do it (for example by using skimall on my site after the global split). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan Silvester Sent: 21 avril 2006 10:10 To: mapinfo-l@lists.directionsmag.com Subject: [MI-L] Determining how many polygons occupy the same area Dear List, Does anybody know how I can work out how many polygons cover the same area? I have a layer of polygons that overlap one another in various places. I need to cookie cut them into one another so I am left with a layer of smaller polygons and determine how many of those occupy exactly the same area. The example diagram below shows the idea I have at the moment whereby 2 polygons overlap one another, and get split to produce 4 polygons, but I do not know quite how to go about it? Incidentally if there is an easier way of doing this, all suggestions greatly received. Regards Alan ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Settle a bet - Is MapBasic Programming or Scripting?
I am late getting into the fray because I expected to see it coming to the surface much before now, or I may have overlooked it (my apologies in that case). In very simple terms I would equate scripting to MapBasic in the MapBasic Window or in a WOR (MB_WOR) and programming to a MB application (MB_MBX). I know that there were some attempts (who has heard of them or remembers them?) at introducing unpredictability or interactivity in theatre plays. Their scripts were written including variants at some points. But it did not really caught up. I like that origin of the term from the theater. Even if it is written with elements of a programming language, a script is a linear development where each command is interpreted sequentially one after the other and will work only for some parent software. MB_WOR needs MI to work, and will do not a thing without MI. A non-linear package of instructions requires an intermediate step to transform its complex flowchart into a package of instructions that some software can understand (MB compiler to transform a .MB into a .MBX) or that some operating system can treat as stand alone program (a VB program becomes a .EXE). The question of the distance between a programming language and pure machine language is quite beyond what I think the basic difference between scripting and programming is in fact. Jacques Paris ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Creating new MI Line styles tool
Do not tell anyone but the same problem was raised on the mapinfo_fr list this week and I solved it by putting the LineEdit.exe file on one of my download lists. Go to www.paris-pc-gis.com/decharge.htm and you will find it at the bottom of Fichiers d'autres origines. I was not expecting much requests and I put it on the French page only; sorry about it but I am sure you will find it. Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Pease Sent: 1 février 2006 16:12 To: mapinfo-l@lists.directionsmag.com Subject: [MI-L] Creating new MI Line styles tool Im sure I recall the availability of a tool to create new MI line styles. Ive searched the Directions site but couldnt find anything. Could someone direct me to such a tool if one exists please. Thanks Doug Pease GIS Officer Livingstone Shire Council PO Box 600 Yeppoon 4703 Phone 49399957 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the originator of the message. This footer also confirms that this e-mail message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Livingstone Shire Council. ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] deleting or isolationg duplicate records
Do you mean that www.paris-pc-gis.com/download.htm does not work? Skimall.mbx is in the PPCC section jacques paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Gagnon Sent: 20 janvier 2006 12:11 To: Mapinfo List Subject: [MI-L] deleting or isolationg duplicate records Hey everybody I posted this message about 6 months ago.. and I fixed my problem. Now I just can't rmember how I did it. So here's my question again Is there a mbx app. that could help me sort out duplicate records in a table. I look on the directions mag data base. I found a tool from Jacques Paris but the link is broken and I can't find it on his web site. In Mapinfo 8.0 there's a tool for that, but I have 7.0 TIA Eric Gagnon -- Eric Gagnon,B.Sc., GIS Specialist [EMAIL PROTECTED] 47°02'57N 67°44'11W ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] flow charts?
I have added quite recently Strings2Stripes.mbx that would create stripes with widths proportionate to values of a column and based on lines or polylines, to the BETA section of www.paris-pc-gis.com/download.htm Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mari Pitkäaho Sent: January 17, 2006 05:49 To: MapInfo-L@lists.directionsmag.com Subject: [MI-L] flow charts? Dear list, does anyone know of a tool for making flow charts in MapInfo? I am looking for something in the line of the Spider Graph tool, but with the possibility to assign a value to the line (ie. amount of people travelling a set distance, thick line = many people, thin line = few people etc.). I am currently working with MapInfo 6.5 and can not use MapBasic. Is this feature possibly included in the newer versions or is there a download for this somewhere? Many thanks, -Mari ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: [MI-L] Ghana National (War Office Spheroid) UTM coordinates
It may be a problem of transcription but there is some thing strange in that line: False Easting: 274319.51 m (90,000 Gold Coast Feet) with 1 Gold Coast foot = 0.3047997101815 m Perhaps it is 900,000 Gold Coast feet? Jacques Paris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sam Knight Sent: January 5, 2006 14:19 To: MAPINFO-L Subject: re: [MI-L] Ghana National (War Office Spheroid) UTM coordinates Hello Karl, The EPSG database (http://www.epsg.org) lists off some different parameters than you have listed there. The Molodensky parameters for the datum shift match up exactly, but for the system itself, under code 2136 it lists: Official Name: Ghana National Grid Datum: Accra (on War Office ellipsoid) Projection: Transverse Mercator Origin Latitude: N 4° 40' 0 Central Meridian: W 1° 0' 0 Scale Factor: 0.99975 False Easting: 274319.51 m (90,000 Gold Coast Feet) False Northing: 0 m (0 Gold Coast Feet) with 1 Gold Coast foot = 0.3047997101815 m Then for the War Office ellipsoid, it lists: Semi-major axis (a) of: 6378300 m Inverse Flattening: 296 (which calculates to a semi-minor (b) of 6356751.69 m) I hope that helps. Regards, Sam Knight Applications Specialist Blue Marble Geographics [EMAIL PROTECTED] Ph: 800-616-2725 ext. 24 Ph: 207-582-6747 ext. 24 Fax: 207-582-7001 http://www.bluemarblegeo.com and http://www.beyondgeo.com -- Original Message -- FROM: Karl K [EMAIL PROTECTED] TO:mapinfo mapinfo-l@lists.directionsmag.com DATE: Thu, 5 Jan 2006 08:50:23 -0800 (PST) SUBJECT: [MI-L] Ghana National (War Office Spheroid) UTM coordinates Hi everyone. Has anyone put together the projection parameters for the Ghana National (War Office Spheriod) UTM coordinates that they could send to me? Most appear to be straightforward, but I'm not too sure about what to do with the local datum shift info. See details below. Thanks for your help! Karl The Ghana National (War Office Spheroid) UTM coordinates in meters uses the following projection parameters: Spheroid Semi-major axis (a) Semi-Minor (b) WGS 846378137.6356752.3142 Ghana National6378306.06486356757.9242 Local datum shift applied: Delta X :-199 Delta Y : 32 Delta Z : 322 UTM central meridian = 1° W False Easting : 274,320 False Northing : -515,883 Scaling factor : 0.99975 McElhanney Consulting Services Ltd. L100 - 780 Beatty Street 450 - 999 8th Ave SW Vancouver, BC Canada Calgary, AB Canada V6B 2M1T2R 1J5 Tel (604) 683-8521 Tel (403) 612-8521 - Yahoo! DSL Something to write home about. Just $16.99/mo. or less ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] new app: Strings2Stripes
Originally designed to transform 2-node lines in rectangles centered on them and of a given width. Expanded to do the same with polylines but with nuances: corners at the bends are flat, rounded or sharp. And, surprise! With the round corners you get MI buffers but with flat extremities, flush with end points. Then adapted to continuous segment sets where each segment carries its one value and is adjacent to the next one. And you get a way to map the variations of a variable along a path. If you want to play with it, I recommend you read the documentation (the pdf file can be accessed directly from the application menu) to understand all the choices that are available. And I wish you make it suffer to make it stronger (if I can correct the errors you will find) and that you will invent ways to use it that may help reveal possible improvements/expansions. Because it is only a BETA and it needs you Available at www.paris-pc-gis.com/Beta/beta.htm Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
[MI-L] a new application(s)
It has been some time I have not added on our site some files from other origins. Today, I have attached a couple of them from the same author, Lorne Ketch. They deal with essentially the same problem: converting sets of punctual sequential observations into track lines; we have many examples of them such as GPS output, storm observations (very timely, eh!) etc. Track lines can be made of sets of detached but continuous segments with the advantage that all the tabular data is preserved (the last observation data can be stored in an optional extra point), or as polylines easier to handle but without significant information attached to it. In both cases the applications can handle multiple track lines in the same file if a break column can be used to detect the beginning of a new set. They work in two different environments. One is an automated Excel book; the data is inserted in one worksheet, some parameters added (like the coordsys, the choice of output structure) and a pair of MID/MIF files is produced, ready for import in MI. The other is a MBX application that starts with a MI table of points or with a DBF data set (similar to what could be input in the XLS application) and produces a MI table of polylines or of sets of continuous segments (if one starts with a DBF file, he can also get a table of points). I know that Lorne prefers the XLS solution (it is so well written I never thought Excel was running it); it certainly is a very good tool for learning all about track line concepts and constraints. I am more familiar (I worked a little bit on it) with the all-MapInfo solution that hides so much of what is happening behind the scene and of course it is my favorite. To you to decide which one you prefer. Available at www.paris-pc-gis,com/download.htm in the files from other origins section, way at the bottom of the list. ___ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l
RE: MI-L MapBasic opening Excel
Jorge, I like your solution but for it to work properly, it needs a small correction in the run program command that should read Run Program executable_path + + chr$(34)+ file_path + file_name +chr$(34) I do not know if a path containing spaces caused the trouble but with the quotation marks it works in all circumstances. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Jorge Gil [mailto:[EMAIL PROTECTED] Sent: October 27, 2005 10:42 To: [EMAIL PROTECTED]; MapInfo-L@lists.directionsmag.com Subject: RE: MI-L MapBasic opening Excel Hi Mike, I personally use of the windows shell32 function FindExecutable which returns the path to the program associated with a file type. The function is not restricted to Excel files, it opens any file type with any associated program. I also use it for PDF and other file types. Here's the code: The first function calls the windows API, the second is a custom MapBasic function to interface with it. Declare Function FindExecutable Lib shell32.dll Alias FindExecutableA (ByVal lpFile As String, ByVal lpDirectory As String, lpResult As String *256) As Integer Declare Function FindAndExecute (ByVal file_path As String, ByVal file_name As String) As Logical Function FindAndExecute (ByVal file_path As String, Byval file_name As String) As Logical Dim file_operation As Integer Dim executable_path As String *256 file_operation = FindExecutable(file_name, file_path, executable_path) If file_operation 32 Then executable_path = LTrim$(RTrim$(executable_path)) Run Program executable_path + + file_path + file_name FindAndExecute = True Else Note Unable to find a program associated with that file type. FindAndExecute = False End If End Function Regards, Jorge ___ Jorge Gil Simulation Developer SPACE SYNTAX D +44 (0) 20 7940 1881 [EMAIL PROTECTED] www.spacesyntax.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 25 October 2005 19:20 To: MapInfo-L@lists.directionsmag.com Subject: MI-L MapBasic opening Excel Hello all, I have a MapBasic app writing out a comma delimited file, then launching Excel, where a macro opens and formats the data. Here is the mb code: sReportXLS = myreport.xls sRunline = C:\Program Files\Microsoft Office\Office11\Excel /e + chr$(34) + sReportXLS + chr$(34) Run Program sRunline My, question: is it possible to obtain the machine's Excel.exe path, rather than having it hardwired? I want to be able to handle unexpected Excel setups. Thanks, Mike - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 18495 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 18502
MI-L MapBasic: fileopendlg$() and filesaveasdlg$()
I am certainly a very late bloomer in the way I am trying finally to do certain standard things and discovering some problems. I am using version MB6.5 to build a dialog box with lots of controls most of them having their own handlers. One would be a button launching the procedure to record the user choice for the table to be treated with lots of checks, the other symmetrical for saving the output. I just discovered that in the context of handlers (what does appear to me to be a mere sub) fileopendlg$() and filesaveasdlg$() cannot close when they should return an empty string (no choice + OK). An empty string can be detected with the traditional approach of file_name=file...dlg$() + if file_name= then In a handler situation, it is only when cancel is used that the return value would be analyzed. I have used the file... functions in many normal subs without encountering this behavior. Can anyone shed any light on that problem (confirmation, corrections to it since 6.5, workarounds ...) ? Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 18505
MI-L MapBasic: control radiogroup out off contol
You may have discarded my first message because you did have the slightest idea of the problem or knowledge of the context (MapBasic6.5). Here is another one that let me flabbergasted. It is in the same context of building a dialog box with plenty of radiogroups. Each one should be disabled (except for the first one) and with no pre-selection (value 0 for all). Here are some strange things I noticed: 1 - the value of 1 was assigned to some 2 - a message normally sent via its handler when activating a certainly control would appear before the dialog is displayed 3 - some controls would be enabled. I have found a way to avoid these problems: reordering the order of the control commands within the dialog definition lines of code. But if that allowed me to move on, it left me with a very sour taste because I have no idea of the why and thus I am unable to prevent it from happening again. Does anyone have any idea of what is happening there? Has it been corrected since version 6.5? Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 18507
RE: MI-L ESRI true type fonts
One can view most of these symbol-fonts in the displays I prepared some time ago at www.paris-pc-gis.com/MI_Enviro/TTFsymbols/ttf4mapping.htm Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Driver, Greg 9434 [mailto:[EMAIL PROTECTED] Sent: July 13, 2005 08:37 To: MapInfo-L (MapInfo Gurus) Subject: MI-L ESRI true type fonts Here's a link to some ESRI true type fonts that can be used within MapInfo - http://moorstation.org/typoasis/designers/esri/index.htm http://moorstation.org/typoasis/designers/esri/index.htm It includes fonts for crime analysis, cartography, environmental icons, transportation and a few others. I think I'm right in saying that you can just copy the .ttf files into the Fonts folder under the Windows directory, or select Fonts via the Control Panel and use the 'Install New Font' option under the File menu to install the copied fonts. If MapInfo is running you'll need to exit and start it again before the fonts will become available in the Symbol Style dialog box. Greg Driver (Thanks to Ton Brouwer www.gispoint.com www.gispoint.com who posted the link to the CRIMEMAP mailing list) Internet communications are not secure and therefore Surrey Police does not accept legal responsibility for the contents of this message. This email and any attachments may be confidential. They may contain privileged information and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and delete the message and any attachments from your computer, do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Surrey Police. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Surrey Police reserves the right to monitor all email communications through their networks. - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 17131
RE: MI-L ESRI true type fonts
I do not know how you would interpret the following statement in the header for the ESRI Cartography ttf: Copyright \00AE 1996 ESRI, Inc. All rights reserved. I am not a specialist of those rights. In my project on TTF symbols, I resolved to present them while indicating where I found them, but not distributing them. I let everyone with his interpretation but I will take no risks. Me chicken, eh! Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Flavio Hendry [mailto:[EMAIL PROTECTED] Sent: July 13, 2005 10:16 To: Jacques Paris; Driver, Greg 9434; MapInfo-L (MapInfo Gurus) Subject: RE: MI-L ESRI true type fonts hi jacques, greg what about copyright issues? no problems reditributing those fonts i.e. to our clients? Mit freundlichem Gruss / Best Regards Flavio Hendry TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual Mit freundlichen Gruessen / Kind Regards mailto:[EMAIL PROTECTED] TYDAC AG - http://www.tydac.ch Geographic Information Solutions Luternauweg 12 -- CH-3006 Bern Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 17137
RE: MI-L Linking cloned windows
There is also for the pre 7.8 user, sync-342 available at http://www.directionsmag.com/files/index.php/view/294 Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Ian Maxfield [mailto:[EMAIL PROTECTED] Sent: July 11, 2005 06:45 To: mapinfo-l@lists.directionsmag.com Subject: MI-L Linking cloned windows Hello all, Does anyone know if it is possible to link a cloned window? What I would like to do is to clone a view and for both the windows to look identical as I pan across one of the screens. At present I can pan in one screen, but the other will remain static. Your help is much appreciated, Ian Maxfield PAIP Data Control Officer GIS Team ICT Finance Resources Tel: (01275) 888761 mailto:[EMAIL PROTECTED] * PRIVACY AND CONFIDENTIALITY NOTICE * The information contained in this email transmission is intended by North Somerset Council for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this email transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email. Any views expressed within this message or any other associated files are the views and expressions of the individual and not North Somerset Council. North Somerset Council takes all reasonable precautions to ensure that no viruses are transmitted with any electronic communications sent by us, however we can accept no responsibility for any loss or damage resulting directly or indirectly from the use of this email or any contents or attachments. Website\t\t www.n-somerset.gov.uk Main switchboard\t 01934 88 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 17086
RE: MI-L Drop and replace all columns?
If you were trying to do that operation using the modify structure menu command, you will find that you cannot remove all the columns. MI requires that at least one column remains in the structure. I do not know if that constraint would exist programmatically but if you get in trouble with the suggested code, I would simply start by adding the first new column (or any dummy column) before deleting all the old ones (and deleting the dummy after having added the new ones) Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Terry McDonnell [mailto:[EMAIL PROTECTED] Sent: June 21, 2005 04:45 To: mapinfo-l@lists.directionsmag.com Subject: RE: MI-L Drop and replace all columns? Ross, I've not done this programmatically before but, if I did, below is how I'd do it. Not sure whether the Obj column is protected in a drop so I've put the test in for it. Of coursre, you'd well back up your table before trying it! HTH Terry ___ Dim lnNumCols, lnColNum As SmallInt lcColName, lcCol as String Open Table YourTable lnNumCols = TableInfo( YourTable, TAB_INFO_NCOLS) For lnColNum = 1 to lnNumCols lcCol = Col + Rtrim$( Str$( lnColNum)) If Ucase$( lcColName) OBJ then lcColName = ColumnInfo( YourTable, lcColName, COL_INFO_NAME) Alter Table YourTable Drop lcColName End If Next Alter table YourTable Add NewCol ... Etc. -Original Message- From: Ross Nixon [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 04:01 To: Terry McDonnell Subject: MI-L Drop and replace all columns? I want to Alter a table by dropping all existing columns (without losing the objects) and add several new columns. Can I do this in one or two mapbasic Alter Table statements? Thanks, Ross Nixon Manawatu Aerial Photo Services P.O. Box 75 Palmerston North www.forestrymaps.co.nz Ph/Fax. 06 355 1431 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16847 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16849
RE: MI-L MapBasic Text object question
Not knowing if there has been any meaningful development since 6.50 in the area of text objects, I would consider that question as the perfect source of frustration for MB programmers. You are right, the MBR of a text object enclose the line if any. I ran a little test that seems to indicate there could be a way to rebuild the text rectangle itself. I made the assumption that the other extremity of the line (the one not on the MB) is the centroid of the text itself. If Xmin (with the line end) CentroidX(text_object) then Xmini of text object = Xmax - 2 *( Xmax - CentroidX) . Same principle in the Y direction. I have noted two fascinating thing: 1 - the centroidx/y() functions are not affected by the existence of a line and 2 - the Xmax of a text object (with or without a line) may not correspond to the actual right side end of the text rectangle. I have discussed that last point at length (www.paris-pc-gis.com/d_a/da_start.htm) where I have shown that the extremity of a text object is basically irrelevant in most cases and should not be given any credibility MI does not use that information to display the text A last remark, my suggestion should be tested to take into account slanted text objects. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Canfield, Andrew [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 17:26 To: mapinfo-l@lists.directionsmag.com Subject: MI-L MapBasic Text object question To all who may know, Using Mapbasic how do I get the minimum bounding rectangle for just the text of a text object when it has an arrow pointing to something. Using MBR() or using ( ObjectGeography(Lyr.Obj,1), ObjectGeography(Lyr.Obj,2), ObjectGeography(Lyr.Obj,3), and ObjectGeography(Lyr.Obj,4) to create a rectangle ) both yield the same thing. They give me the MBR for the entire entity including the arrow. I need the MBR of just the text. Does anyone know how I can accomplish this? Thank you, Andy - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16833 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16834
RE: MI-L Buffer greater than default resolution
Set Resolution node_limit Node_limit is according to MapBasic reference guide version 6.5 a smallint value between 2 and 1,048, 570 (inclusive); default is 100. Funny eh! I thought a smallint had values from -32767 to +32767 (inclusive). What should I believe? Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: David Reid [mailto:[EMAIL PROTECTED] Sent: May 9, 2005 02:19 To: MapInfo-L@lists.directionsmag.com Subject: MI-L Buffer greater than default resolution Greetings List, Is there a way, perhaps using Mapbasic, that one may create a buffer object with a resolution (smoothness/segments per circle), greater than the maximum 100 available using the buffer tool. Yep, I want to a create a 360deg azimuth as part of a logo or graphic and in a non-earth inches table. Thanks for your feedback, David Reid -- Outgoing mail is certified Virus Free Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.6 - Release Date: 05/06/2005 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16388 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16391
RE: MI-L MapperInfo(wn, MAPPER_INFO_DISPLAY_DMS) behavior change
Bill, The Military Grid system mention was added in the Help v7.0 Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Bill Thoen [mailto:[EMAIL PROTECTED] Sent: May 2, 2005 12:13 To: MapInfo-L Subject: MI-L MapperInfo(wn, MAPPER_INFO_DISPLAY_DMS) behavior change I no longer have access to MapInfo tech support, so I'm going to try this question here. In MapBasic 6.0 the function MapperInfo(wn, MAPPER_INFO_DMS) returned a logical, but in 7.0 it could return two kinds of TRUE. It still returns a FALSE (0) for decimal degrees as it always did, but now if it returns a TRUE of 1, that means degrees-minutes-seconds, while a TRUE of 2 means Military Grid system. What I need to know is when did this change happen? Was it in 6.5 or 7.0? - Bill Thoen - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16331 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16334
MI-L ctrl+M and MapBasic Window
I just found some interesting behavior involving the choice of short cut and the MapBasic window. I just had an app that was using Ctrl+M as a short cut. When that app was loaded (as an item or sub-menu (two different versions) ) in the windows or in the tools menu (two different versions) , if I wanted to run something from the MapBasic window (via enter) the app was automatically run. I had to unload the app to be able to use the MBWindow. The same application with a Shift+M would not generate the same problem. How come enter in the MBWindow becomes Ctrl+M ??? MI 6.5 + Windows2000 and MI7.0 +Windows XPFamily Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15993
MI-L format$() and local format can make MI crash
After many explorations and discussions (my thanks particularly to Eric Blasenheim, MI Corp) I have been able to understand why a call to the format$() function after a 'set format number local ' will make MI crash. It all depends if the thousands separator is specified in the format$() pattern (that would be the ,# part of the pattern that can be omitted if no separator is wanted); if it is present, then the grouping pattern in the Windows regional parameters should be selected accordingly. There is still a question mark, Eric telling me that the grouping pattern should be 123456789, I telling him that it should be 123 456 789. Whatever be the right pattern to choose (your votes will be tallied !!!), we have now an explanation for the crashes in these conditions (set format...local + format$() with thousand separators). If that happens to you, you should know where to look. Incidentally, that situation seems to have always existed in MI . a division by zero !!! Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16005
MI-L sub-maximized windows
Like several among you, I have encountered several situations where I would have liked to get the largest mapper as possible without exceeding the visible useable area of the MI window (= without getting the scroll bars on the MI windows and thus losing space) while not maximizing the mapper. I named that objective Mapper Sub_Maximization. Incidentally, it applies to any MI document window and should cope with any frontwindow(). I have written a function SetWinSubMax(0 that does that, As I have access to only one machine, I was not able to perform tests on various platforms. I have thus uploaded it as a beta tool for those interested and motivated to test it. I would appreciate very much any feed back to fix/improve it. Accessible at www.paris-pc-gis.com/download.htm in the BETA section Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15957
MI-L re:window handle in w2000
Thanks to all the Sunday permanents who have pointed to me that frontwindow() returns a MapInfo handle while windowinfo(frontwindow(), WIN_INFO_WND) returna a Windows handle. Jacques Paris The question was: If I run the following MB code Declare Function IsWindow Lib user32.dll (ByVal hWnd As Integer) As Integer Dim retval, winhandl As Integer winhandl=frontwindow() retval=iswindow(winhandl) note retval the return value is 0 which means that the handle does not refer to a window. Windows2000 is a platform that supports IsWindow(). Does the problem comes from MI6.5 that I am using? Thanks for any help because IsWindow() is only the tip of the iceberg in my case. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15912
MI-L api time functions
When using the GetFileTime api function, it returns 0:0:0 as the hour of last access, while the creation and last modification hour are non-null. As I treat the 3 time elements in the same manner, it would tend to eliminate a programming flaw. Is it a Windows feature? (Windows 2000) Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15526
MI-L application updates
I have placed recently on our some updated applications: Reg2Plin32.zip and Plin2Reg11.zip (conversion of a region table into unique polyline segments and back into regions) had a problem with the call to the menu into which it was installed (Tools replaced by ID 4). That change would interest mainly those who are using not-English menus. LayScale32.zip solves some problems only recently detected: error in calculated scale when ratio height/width of frame that of window and option fill with contents used for the frame; error in maintaining custom values from one scale to the other. My thanks to Tim Mashford (Victoria Police, Australia) who detected the errors, help me in testing the revised version and who wrote : You should also let Australian and English people know they can change the spelling of Metre and Kilometre in the .ini file. We shouldn't have to suffer just because Americans can't spell! I want to keep away from further discussion on the subject, being an uninvolved outside observer. Reg2Plin32.zip and Plin2Reg11.zip on www.paris-pc-gis.com/download.htm in the PPCC section LayScale32.zip on www.paris-pc-gis.com/download.htm in the MLC section I take the opportunity to send a warning to users with MI under Windows 2000. It seems that Service Pack 5 may be the cause of MI crashing when an application tries to get to the regional settings. It happens with LayScale that uses the Format$() function; if one uses a , (comma) as thousands separator, MI will use the regional settings separator even if the settings are original US (not automatically and only the comma as indicated in my MB guide v6.5). If one experiences such a crash, he can do two things: 1 -not ask for the numerical scale to be displayed, 2- call me with the specifics of the crash. If it turns out to be a major problem, I could add an option for displaying non formatted numeric scale. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 15120
MI-L format$() and windows 2000
With the following setup MI 6.5 build 31 and Windows 2000 v5 (build 2195, service pack 4) MI crashes when using the format$() function. Is that accident a known feature for that setup? Any fix? TIA Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14962
MI-L format$() and windows 2000 (foolow up)
To my original message, I can use the following observation. If I run Set format number 9,999.9 before the function call, there is no crash. If a run the same command with local, then MI crashes. It seems thus that the problem is a windows2000/MI6.5 issue. Has that problem been documented? Jacques Paris Original message: With the following setup MI 6.5 build 31 and Windows 2000 v5 (build 2195, service pack 4) MI crashes when using the format$() function. Is that accident a known feature for that setup? Any fix? TIA Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14962 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14963
RE: MI-L SUM : Thematic mapping on two values
I have experimented with drawing lines with some offset so that coincidental lines will not overlap. That means creating new line styles with one or different offsets from centre and making sure that all polygons are drawn in the same direction (to have the offset always towards the centre) http://paris-pc-gis.com/MI_Enviro/Lines/offset_lines.htm Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com . -Original Message- From: Wallace, Steve [mailto:[EMAIL PROTECTED] Sent: 20-Jan-05 14:01 To: Woody Woodruff; Doug Pease; MapInfo-L@lists.directionsmag.com Subject: RE: MI-L SUM : Thematic mapping on two values The problem with doing this is that MapInfo changed the way they did line thicknesses several versions back. MI Pro used to thicken lines toward the inside of the polygon, which would let you see individual color values. Now they thicken the lines from the centerline, so everywhere polygon edges meet, you can only see one of the color values since they overlap. Sure would be nice if you could choose whether to display thicker lines as either widened down the centerline, or widened away from the outside of the region. -- Steve -Original Message- From: Woody Woodruff [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 09:01 AM To: Doug Pease; MapInfo-L@lists.directionsmag.com Subject: RE: MI-L SUM : Thematic mapping on two values Try adding the same table twice in layer control and then do one thematic map on one column where the region style is a fill, and border is N. The other layer is thematisied on the other col and the border is selected, and the fill is N, This would be manually done in the Styles section afterwards. Save the styles for future use as I believe the default selections are both shaded and have boarders. William Woody Woodruff Zoning Administrator Charter Township of Union, Isabella County, Michigan -84.80947000 43.61095100 2010 S Lincoln Rd, Mt. Pleasant, MI 48858 (989) 772 4600 EXT 41 - FAX (989) 773 1988 Visit our web site at http://www.geocities.com/ctuzoning/index.htm -Original Message- From: Doug Pease [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 5:54 PM To: MapInfo-L@lists.directionsmag.com Subject: MI-L SUM : Thematic mapping on two values Thanks to all who responded to my query which was; I need to be able to thematicise Vegetation polygons on two fields. The polygon fill needs to be coloured on the scientific name field while the polygon border should have a line style based on the density field. Is this possible? The results are; generating a thematic map from the one table to show two criteria seems not to be possible without modifying the table. This method was not suitable in this case. It would also appear that it is not possible to generate two thematic maps from the one table based on different criteria, and display them in the same window. What I ended up doing was generating a thematic to solid fill the polygons based on a criteria and then added a number of query results to generate the border styles based on another criteria. Slow and tedious but it worked. Doug Pease GIS Officer Livingstone Shire Council PO Box 600 Yeppoon 4703 Qld Australia Ph07 49399957 Fax 07 49393290 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the originator of the message. This footer also confirms that this e-mail message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Livingstone Shire Council. - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14953 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14954 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14955
RE: MI-L Custom labeling using an Expression
Justification works only on multiple line labels and applies then to the relative position of the lines within a label.. For single line labels, the position of the text (anchor point) is calculated (with the specified font) by positioning the centre of the string on the (possibly) offset centroid of the labelled object Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Peter Horsbøll Møller [mailto:[EMAIL PROTECTED] Sent: 15-Dec-04 03:26 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: MI-L Custom labeling using an Expression Hi Philip, I don't think that you can set the justification in the expression unless you want to play around with putting a number of spaces in front of the text in each line. The justification is controlled by the placement of the label. If you choose to place the label to the left of the insertion point the text is automatically right justified 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 11:41 PM To: [EMAIL PROTECTED] Subject: MI-L Custom labeling using an Expression Group, Using an expression when doing custom labeling from a table, I want to be able to use the Justification function feature like (Align Left). How do I do this when creating an expression? Below is an example of my expression. DESCRIPTION+Chr$(13)+Anchor1+ +Anchor1_GLA_Text+Chr$(13)+Anchor2+ +Anchor2_GLA_Text+Chr$(13)+Anchor3+ ++Anchor3_GLA_Text+Chr$(13)+Anchor4+ +Anchor4_GLA_Text+Chr$(13)+Anchor5+ +Anchor5_GLA_Text Thanks Philip Lesnik Research Systems Analyst, Market Research General Growth Properties, Inc. 110 N. Wacker Drive BSC 3-13 Chicago, IL 60606 312-960-2998 312-960-5519 (fax) [EMAIL PROTECTED] - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14555 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14557 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14564
MI-L Raster Image Registration
I had very little success about my attempt at documenting the registration of a raster image; the use of labels to identify the reference points is a kind of a dead end because MI will not read from the TAB file those labels (error known since ever, and never tackled) I have written a small app that helps in documenting such a registration: Rrp_vis.mbx (raster registration points visualisation) It creates a table of the registration points from the data stored in the TAB file and using the coordsys of the topmost mapper (it should be that used in the registration). A second (optional) table can also store the pixel errors (picked up by the user from the registration window) and represent them as circles with radiuses proportionate to the errors. As the app allows also for saving the registration TAB file under another name, these three files (under the same name) document fully the registration and several sets of the kind can record various registrations of the same image. Available on www.paris-pc-gis.com/down.htm Comments (always welcome) at [EMAIL PROTECTED] - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14376
RE: MI-L resizing Message Window
Here is a WOR that will do the trick !Workspace !Version 650 !Charset WindowsLatin1 dim w as float dim h as float dim x as float dim y as float set paper units in h=3.5 w=3.5 set window 1011 max x=windowinfo(1011,4)-w y=windowinfo(1011,5)-h set window 1003 position (x,y) width w height h print W = +str$(w)+ h = +str$(h) set window 1011 restore undim x undim y undim h undim w Notice that within MI, the only ting that counts is the position in paper units in this case not in pixels. The print is only required to make sure that the message window will appear for verifying the position. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Christophe Brabant [mailto:[EMAIL PROTECTED] Sent: 26-Nov-04 07:44 To: MapInfo Help Subject: MI-L resizing Message Window Hi I want to set position and size of the Message Window, different than the defaults. (Set Window ...) And I want ta place this window into the bottom right corner of the screen too. How should I calculate the position x and y, depending of the size of the screen and the video resolution used ? (it should work with 21 or 17 inches screens, and with 1024x768 and 1600x1400 etc...) Thank you - Christophe - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14248
MI-L raster labels
In the raster registration requester, each reference point can receive a label (by default it is pt1. pt2,...). In my old 6.5 , the custom labels are properly saved in the tab file but they are not reloaded in the registration requester. Is it the normal behaviour? Has it been changed since 6.5? Is there some setting to apply? Thank you Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14090
MI-L temporary retirement
This is my last message to the list before I close down for 10 weeks, having decided to take a retirement trip with my wife, like some still take honeymoon trips. Our site will survive by itself; I hope there will be no problem and that it will continue to be interesting without new input (still around 1200 visitors/week even without much novelties over the last few months). I will be looking at my e-mail box when I find a friendly cafe; if you want to get in touch with me, you could take your chance. Thanks to all for your support and your appreciation. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12956
RE: MI-L donut polygons
If you export a two-non-overlapping-polygon region, you will get exactly the same MIF structure. The answer to the original question is that there is no way to find in a MIF file if a region contains a donut or not. MI does not seem to use that concept; it is only when it builds a region for display that the donut will appear. The question about identifying a donut-region has been discussed several times on this list. I have not registered a particularly efficient way to deal with it. One possibility is to explode a multi-polygon region into its constituent polygons and compare the sum of their areas to the area of the original region. If sumoriginal, there is a donut situation (but that does not identify where the donut is) Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Nicolas Muszynski [mailto:[EMAIL PROTECTED] Sent: 12-Aug-04 10:19 To: [EMAIL PROTECTED] Subject: RE: MI-L donut polygons All you have to do is define a region with 2 regions and list them one after the other with the number of nodes, if you export a doughnut you will see in the MIF file the following structure: Region 2 10 -0.203947 0.730263 -0.019737 0.736842 0.217105 0.631579 0.388158 0.526316 0.763159 0.230263 0.953947 -0.598684 -0.322368 -0.644737 -0.980263 0.144737 -0.736842 0.447368 -0.203947 0.730263 8 -0.039474 0.328947 -0.256579 0.171053 -0.013158 -0.098684 0.388158 -0.098684 0.210526 0.138158 0.098684 0.230263 0.026316 0.342105 -0.039474 0.328947 Pen (1,2,0) Brush (1,0,16777215) Center 0.54258 0.046052 Hope this helps, Nicolas Muszynski -Original Message- From: Tamar Bakker [mailto:[EMAIL PROTECTED] Sent: 12 août 2004 07:35 To: [EMAIL PROTECTED] Subject: MI-L donut polygons Hello listers, I'm importing donut(island) polygons into MapInfo. Because I want to generate a MIF file with donut polygons, I would like to know how the converter in MapInfo decides if a polygon is just a normal multipart polygon or if it's a polygon with holes in it. I can't recognise anything that says it's a donut polygon. Or does anyone know a fast equation that calculates if all the nodes of a certain polygon are situated within another polygon? Does anyone know? Thanks a lot greetings Tamar - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12940 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12943 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12944
RE: MI-L How do you rename a window
Set window frontwindow() Title Paul's Window You can rename any window and do a lot more things of that nature with WinMastr that you will find on www.paris-pc-gis.com/download.htm in the MLC section. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11-Aug-04 17:47 To: [EMAIL PROTECTED] Subject: MI-L How do you rename a window Group, How do you rename a window. Example: Renaming a Layout window to say Paul's Window. Philip Lesnik Research Systems Analyst, Market Research General Growth Properties, Inc. 110 N. Wacker Drive BSC 3-13 Chicago, IL 60606 312-960-2998 312-960-5519 (fax) [EMAIL PROTECTED] - +++ Notice: This e-mail including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. '' 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. +++ - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12932 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12935
RE: MI-L Changing projections with MapBasic
You are talking about two domains that do not communicate. The global one is used for the internal working of MapInfo and is accessed by the MapBasic window. The application domain is totally independent and several coordsys can thus exist in parallel. If you were to add at the end of your NewCoord sub print centroidx(selection.obj) and open a table and select one object before running the mbx, you will see that the measure is in the new coordsys, but that the global one has not changed. That may indeed look strange given the fact that it is said that the run command is processed outside the application domain... But if you were to run from the MB window the following lines Dim a as string a=coordsys$() run command set +a the global coordsys will be changed One way to do it without writing it each time would be to prepare a wor and use a run application fullpath\changeglobalcoordsys.wor. That wor would look something like !Workspace !Version 600 !Charset WindowsLatin1 Dim a as string a=set +chooseprojection$(,1) run command a undim a You can of course use that wor-based function from within a compiled mbx with the run application Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Nicolas Muszynski [mailto:[EMAIL PROTECTED] Sent: 6-Aug-04 12:00 To: [EMAIL PROTECTED] Subject: MI-L Changing projections with MapBasic Hello, I am trying to make a very simple MapBasic program to change the Global MapInfo projection, the equivalent of typing: Set Coordsys Earth projection (whatever the projection may be) In the MapBasic Window. When I execute the line: Run Command Set Coordsys Earth projection whatever the projection may be It changes the current application Projection but does not change the global Mapinfo projection. The reason I want to do this is that when objects are labelled with the function CentroidX or CentroidY they automatically take the Global MapInfo Projection and do not use the table projection, Layout Projection or map projection. The same happens when you want to update a column with the same CentroidX or CentroidY Functions. I included the program below for reference, Include MapBasic.def Declare Sub Main Declare Sub NewCoord Sub Main Dialog Title Set a Global Projection Control StaticText Title Choose a Projection Control Button Title Choose Projection Calling NewCoord End Sub Sub NewCoord Dim NewSys as String NewSys=ChooseProjection$(,True) NewSys=Set + NewSys Dialog Remove Note NewSys Run Command NewSys End Sub Thank you for taking the time to at least read, Nicolas Muszynski - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12867 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12872
RE: MI-L A Problem with Cursors of Beers
Bill, Can we guess that in select ... into is a simple alias for selection that is a unique table? If you use into, selection as a table name is not available anymore (even if selectioninfo() is). I guess that as result exists as a distinct table only when committed, if not it remains a single alias for selection; the last selection replaces the previous one even if you change the name. There is some logic in it, it may not be the expected one, but it seems to me it WAD. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Bill Thoen [mailto:[EMAIL PROTECTED] Sent: 1-Aug-04 12:01 To: MapInfo-L Subject: MI-L A Problem with Cursors of Beers This is a problem for MapBasic programmers and it involves MapInfo swicthing one selection cursor with another. In this case it switched a pint of Bass for a LoveInnaCanoe brand. Horrors! But what's going on here? If you create one temporary table with a selection, you don't want a subsequent selection overwriting the first when you specify a different result table. But that's exaclty what's happening in the short application below. Does anyone know why this is, and if there's a workaround? ' Beer.mb ' Demonstrates a bug in selection cursors. They are not persistent! Dim i As Integer Close All Print Chr$(12) ' Set 'em up and display them... Create Table BEERS ( name Char(40) ) File ApplicationDirectory$() Beers.tab Insert Into BEERS (name) Values (Guinness) Insert Into BEERS (name) Values (Bass) Insert Into BEERS (name) Values (Molson BarleyPop) Insert Into BEERS (name) Values (Red Hook) Browse * From BEERS ' Create a selection into a cursor Select * From BEERS Where rowid = 2 Into BEER2 NoSelect Print Beer 2 is BEER2.name ' Create another one Select * From BEERS Where rowid = 3 Into BEER3 NoSelect Print Beer 3 is BEER3.name ' So what's happened to BEER2 ??? Print Ha! Beer 2 is now BEER2.name ' --- end - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12814 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12815
RE: MI-L Obtaining Thematic details using Mapbasic
The direct answer is simple: use windowinfo(frontwindow(),15) with the thematic map as foremost window. That will give you a string with all the info to clone the window. The shade statement will contain every thing you need. The complete answer is complex because the extraction of the detailed info (type of thematic, values or value ranges, style attributes) depends on the thematic itself and in small part on the MI version. I have used that technique for FixShade (range thematic) and IVT (Individual Value Thematic) but I am not yet sure that I covered all situations (certainly no check made passed version 6.5) Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Ben Crane [mailto:[EMAIL PROTECTED] Sent: 28-Jul-04 04:01 To: [EMAIL PROTECTED] Subject: MI-L Obtaining Thematic details using Mapbasic Hi all, I thought I'd use a seperate email for this one instead of piggy-backing off my earlier ones. Can you use mapbasic to query information about thematic maps, eg. Colours used in the range, values, symbols styles, etc? This includes querying legend layers created from the thematic maps? If not, has anyone found a way around it and managed to obtain this information another way? Regards Ben __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12766 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12772
RE: MI-L What version of MI introduced the Tools menu
The menu Tools was defined for backwards compatibility since version 300 (a buttonpad existed all along) and appeared in the menu bar in version 4.5. However in version 5.0 it seems to have been revamped. I have documented all these changes (versions 3 to 6.5) in various documents available at www.paris-pc-gis.com/abc/abc_main_en.htm in Available compilations Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Doyle, Peter W [mailto:[EMAIL PROTECTED] Sent: 15-Jul-04 02:29 To: [EMAIL PROTECTED] Subject: MI-L What version of MI introduced the Tools menu Greetings List, Can anybody tell me what version of Mapinfo Professional introduced the Tools menu option I am thinking it was around version 4.2 / 4.5. Am I close? Regards Peter Doyle Geographical Analysis Data Mobile Coverage Delivery: Service Management Solutions. Ph: 07 3887 1128; Mob: 0418 709 250 Fax: 07 32364383 Email: mailto:[EMAIL PROTECTED] - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12625 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12629
MI-L latest 6.5 version
I have installed the only available patch on MI site that yields a version 6.5 build 31. I am wandering if there is a later version. A French contact mentioned his version 6.51 build 19; could it be a regionalized version? Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12630
MI-L Temp sum: MI6.5 not responding
Thanks for all the very diverse answers. Up to now, some progress but not much. 1 - I have added the Dword MaxFiles (100) and it seems that it help the edit function, but the sql is still going in rounds. 2 - My test files contain between 5 and 20 objects; it is thus not a question of very large files, memory leaks etc. 3 - I subscribe to the automatic update for Windows 2000. That could be an avenue to explore, but I do not know how to proceed. I have been using MI sporadically over the last 4 months and it would be difficult for me to pinpoint the possibly culprit (up)date. I am considering reinstalling windows2000 with the SP2 patch with which MI was working correctly. I'll update this summary when I get something new. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12631
RE: MI-L GetUserName Api Problem
Jay, Your suggestion is a good one, lpBuffer should not be passed as byval Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Terry McDonnell [mailto:[EMAIL PROTECTED] Sent: 14-Jul-04 11:07 To: [EMAIL PROTECTED] Subject: RE: MI-L GetUserName Api Problem Jay I'm relatively new to MB, and Basic languages, but I refer you top the following passage from help on Functions: Any or all of a function's parameters may be specified as by-value if the optional ByVal keyword precedes the parameter name in the Function...End Function definition. When a parameter is declared by-value, the function's caller can specify an expression for that parameter, rather than having to specify the name of a single variable. However, if a function modifies the value of a by-value parameter, there is no way for the function's caller to access the new value. To my understanding this means (esp. the last sentence) that you won't be able to access the user name as manipulated by the func. (assuming GetUserName DOES alter the passed param). I'm ready to be shot down by more experienced users but, would getting rid of the ByVal switch in your func do the trick? I suppose the dll func would have to be redone though? HTH Terry McDonnell - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12609 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12611
MI-L MI not responding
A short while ago, my MI 6.5 (on windows2000) started to behave strangely; each time I want to edit or do some SQL, it goes to sleep and I have to end the task as it is not responding. I have un-installed and re-installed it, same thing. Un-installed it and installed 7.0, same thing. I went back to 6.5 and even added the patch to no avail. I was wandering if this was a known problem. Is there a way to make a deeper un-install it the case some files/settings are not wiped out properly? Is there some known interferences from other applications, like spybot or other resident programs? Any help will be most welcome because this drawback could be the straw that will break by staying away from full retirement motivation. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12622
MI-L new version of CopyPlus
Having reported to Peter Meier that a problem existed with CopyPlus (an ecw file would not be added to the copied files), he found out that if you open a raster table that references a ECW, MapInfo file locks the ECW file even if you close the table. It doesn't do this for other raster formats such as JPG. CopyPlus opens each table temporarily to check for a few things before copying so when it tried to copy a ECW it came up saying it was locked. Peter sent be a new version, CopyPlus 2.0.7, that does not open raster files before copying them. It is available at www.paris-pc-gis.com/download.htm in the Files from other origins page. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12572
RE: MI-L Changing Layout Units
Curious to know the answer to that one. One thing I know, is that whatever the chosen units, the dimensions of a layout saved in a WOR were (at leats until 6.5) exclusively in inches. -Original Message- From: Simon Roy [mailto:[EMAIL PROTECTED] Sent: 8-Jul-04 13:26 To: Mapinfo-L Subject: MI-L Changing Layout Units Hi, Is it possible to change the units (cm to in) of an existing layout via MapBasic? I tried the Set Coordsys Layout statement, but it does not seem to do anything on an existing layout. The idea is to be able to toggle between inches and centimeters with a click of a mouse. Thank you Simon - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12520
RE: MI-L numbering the objects
You must have a column (type integer) and update it using the internal variable ROWID Update your_table set column_ID=ROWID Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: abhas [mailto:[EMAIL PROTECTED] Sent: 29-Jun-04 00:16 To: Mapinfo-L Subject: MI-L numbering the objects Dear All, I want to add a column to an existing table, The new column should contain ID number, which is to be in a sequence as per the objects in the table. I mean the ID's can be such as..for first object in the table ID=1, for second object in the table ID=2... and so on. One way is to go to the table and add the numbers manually. But the objects are in a large number to be added manually. I will be thankful if I get a simply approach to it. looking forward for a kind reply. with regards, abhas - Original Message - From: Apers Mathieu [EMAIL PROTECTED] To: Mapinfo-L [EMAIL PROTECTED] Sent: Tuesday, June 29, 2004 5:58 AM Subject: RE: MI-L Multiple labels for a single object Thanks to everyone who replied. it looks like the simplest way will be for me to duplicate the table and disaggregate it, which i will do Cheers all Mathieu Apers -Original Message- From: Uffe Kousgaard [mailto:[EMAIL PROTECTED] Sent: Tuesday, 29 June 2004 1:20 AM To: Mapinfo-L Subject: Re: MI-L Multiple labels for a single object From: Jacques Paris [EMAIL PROTECTED] I think that you would need to build a special table just for labelling by exploding (disaggregating) all your regions while keeping real donuts as one region. (option retain holes in regions of the objects | disaggregate menu command ) This function (retain holes) was new in MapInfo 6.5. For earlier versions you can grab a copy of our ToolBox, which will perform the same operation for MI 4.5 - 6.0. Kind regards Uffe Kousgaard www.routeware.dk - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12379 This email with any attachments is confidential and may be subject to legal privilege. If it is not intended for you please reply immediately, destroy it and do not copy, disclose or use it in any way. - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12383 __ Do You Yahoo!? http://bb.yahoo.co.jp/ - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12385 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12392
RE: MI-L Multiple labels for a single object
MI can display labels for each of the multiple sections of a polyline (option in label requester) but it cannot do it for a multiple polygon regions. It is a simple logical restriction associated with the topology of these objects: Mi does not store logical differences between internal polygons defining holes (donut situation) and external ones defining islands (the first kind would not require labelling, the second type would). I think that you would need to build a special table just for labelling by exploding (disaggregating) all your regions while keeping real donuts as one region. (option retain holes in regions of the objects | disaggregate menu command ) Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Apers Mathieu [mailto:[EMAIL PROTECTED] Sent: 27-Jun-04 23:27 To: Mapinfo help forum (E-mail) Subject: MI-L Multiple labels for a single object Hi all i have a small but annoying problem I have a table of objects (polygons) which i label with their respective walk_names my problem is that some of my objects have more than one polygon. I want to label all polygons. I cannot disaggregate the polygon as that will throw out my figures, and i'm stumped. Please help. Cheers Mathieu Apers Mapping Co-ordinator Letterbox Channel | NZPost Ltd Telephone: 09 574 Facsimile: 09 574 4415 E-mail: [EMAIL PROTECTED] This email with any attachments is confidential and may be subject to legal privilege. If it is not intended for you please reply immediately, destroy it and do not copy, disclose or use it in any way. - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12376 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12377
RE: MI-L Changing outer regional boundary lines without changing the inside boundary lines
You will find a solution to this question at www.paris-pc-gis.com/MI_Enviro/mie_start.htm in the Lines / Offset lines section Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Anchors, Deborah M. [mailto:[EMAIL PROTECTED] Sent: 18-Jun-04 16:47 To: [EMAIL PROTECTED] Subject: MI-L Changing outer regional boundary lines without changing the inside boundary lines I am working on some maps which need both regional and locality boundaries. I want to have a heavier line around the regional boundaries, with lighter lines showing the locality boundaries within the regions. I have tried to change the lines after redistricting, but I cannot get differing line heaviness when polygons share lines/boundaries. Is there any way to change the regional boundary lines without changing the lines on individual localities? I use MapInfo Pro 7.0; I use the program every few months (so I am a fairly infrequent user and need something fairly simple and straightforward as a solution). Thank you for your help. Deborah M. Anchors Virginia Department of Juvenile Justice Research and Evaluation Section (804) 225-2960 [EMAIL PROTECTED] - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12292
RE: MI-L returning the coordinates of 2 intersection points of 2 overlapping circles
It is amazing that people want to handle circles as if they were geographic objects. They do not exist in MI with properly defined contours, just a center and a radius, and they are displayed on the fly with some approximation. Hence, my hesitation to the cartesian space solution; the computed points may not exist really as part of the circles. Before Mi will release information about intersection between a circle and another linear object, it internally transform it (them eventually) to polyline(s) and will find the intersections between resulting objects, These are approximation of the circle shape in a polyline with a number of nodes defined by the Set Resolution statement (by default 100 nodes per circle); in this implicit transformation, the original circles are not modified. The coordinates of the intersections will vary thus for different resolutions, and the corresponding points with not be on the circles except if by chance, each intersection will find itself on a node for both convertedtopline circles. One easy approximation will thus be to do the following Dim oint as object Oint=overlap(circle1,circle2) X and y if the intersections would be Objectgeography(oint, OBJ_GEO_LINEBEGINX) Objectgeography(oint, OBJ_GEO_LINEBEGINY) Objectgeography(oint, OBJ_GEO_LINEENDX) Objectgeography(oint, OBJ_GEO_LINEENDY) One must make sure that an object was created (that there is an intersection) either by testing previously that the distance between the two centers is sum of radii, or by error trapping on the objectgeography function. Notice that the overlap function returns an object defined by its end points (the intersections) of the circles, whereas the intersectnodes() will not work on circles; they will have to be to previously converted explicitly to polylines. A last detail. Experiment with two circles and add the results of the operation to the map. Zoom on one of the extremities; you will most probably see that it is not on any of the original circles. As a general conclusion: never consider circles as geographical objects and process them thinking that are precise. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Lawley, Russell S [mailto:[EMAIL PROTECTED] Sent: 11-Jun-04 09:01 To: [EMAIL PROTECTED] Subject: RE: MI-L returning the coordinates of 2 intersection points of 2 overlapping circles Erin, you should look at the intersectsnodes function (if you are using Mapbasic). this will return a polyline for two intersecting ellipses, the start and end points of which will define the coordinates of the two 'crossing points'. (use the objectinfo or objectgeography functions for finding these values from teh line) regards r * 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 messages from or to the BGS. .http://www.bgs.ac.uk * - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12153 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12156
RE: MI-L export table with thematic applied
Thank you for mentioning that application. My first reading of Claude's message was that FixShade would be more appropriate (to be used for range thematic, also available on the site). I have changed the date stamp to end of 2004 on the zip available for download. I put such a stamp on new software when I am not sure of its functionality; I prefer waiting for any feedback from real life users to make suggested improvements or changes. For example, the It's a bit tricky to use comment could indicate a faulty documentation or some design fault. In either case, I could do something; but what exactly? Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Julian Balson [mailto:[EMAIL PROTECTED] Sent: 10-Jun-04 05:41 To: Frank, Claude Cc: [EMAIL PROTECTED] Subject: RE: MI-L export table with thematic applied Claude, It's a bit tricky to use but Jacques Paris has a program called IndiValuThematics in the beta testing section of his website which does exactly what you need: http://www.paris-pc-gis.com/ To use the program you will first have to set the date on your workstation to before 31.12.03 as the program is time stamped to expire on this date. The program can be quite frustrating so here a few tips on how to use it (you will need to go through this exact procedure every time): 1. Open the table you wish to apply the thematic to and apply one of the MapInfo default thematics to the table (do not spend time changing the styles etc - you will lose it!). 2. Define a new IVT template from this thematic (do not spend time changing the styles etc - you will lose it again here!). 3. Run IVT; you can now set all your styles etc. The program will assign these styles to the objects in your table. Note that the table it creates will only contain one column - the one you created a thematic from. The data is easily reapplied using your original table however. Drop me line if you have problems with it. Julian Balson -Original Message- From: Frank, Claude [mailto:[EMAIL PROTECTED] Sent: 09 June 2004 23:12 To: MapInfo-L Subject: MI-L export table with thematic applied anyone ever hear of a tool that will allow you to apply the assign the thematic styles to the layer's actual base properties...so if you had a bunch of regions colored by values, you would be able to convert the actual table's properties to adopt the values of the thematic? thanks, Claude Claude Frank 720-548-5497 Director of Data Publications Platts, a Division of McGraw-Hill, Inc. www.maps.platts.com http://www.maps.platts.com/ www.platts.com http://www.platts.com/ We are pleased to announce the launch of our new website: www.npaconsult.co.uk This Electronic Transmission is intended only for the attention of the addressee. It may contain privileged and confidential information. If you are not the person for whom it is intended, you must not copy, distribute or take any action in reliance on it. If you have received this electronic transmission in error please notify us immediately by telephone, delete the transmission and destroy any hard copies. Nicholas Pearson Associates has used all reasonable efforts to ensure that this message and any attachments are free from viruses. Nicholas Pearson Associates Environmental Planners - Landscape Architects - Ecologists 30 Brock Street, BathBA1 2LN Tel: +44 (0) 1225 445548 Fax: +44 (0) 1225 312387 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12125
RE: MI-L Original layer name
It seems that the name of a thematic layer is that of the original table followed by (x) where x is the distance from the thematic to the original layer (if one thematic (1), if two, the topmost (2), the closest to the thematic (1) ) The actual name of the layer on which the thematic is based can thus be obtained by left$(layerinfo(win_id, layer_no, 1), instr(1,layerinfo(win_id, layer_no, 1),() ) Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Stefan Majtan [mailto:[EMAIL PROTECTED] Sent: 4-Jun-04 04:58 To: MI-list Subject: MI-L Original layer name Dear mappers, is there any way how to get the name (or layer order) of the layer from which the thematic one was derived? I need to know the original layer name from which xxx thematic layer was created. Any help is appreciated. Regards Stefan Majtan -- ** TERRIS GIS Applications Development Grid Analyser - raster GIS for native MapInfo grid Pod zhradkami 24 909 01 Skalica SLOVAKIA http://www.terris.sk ** - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12029 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 12031
RE: MI-L Testing to ensure a string is numeric
Having been away for few days, I have been fascinated by the thread on the subject seen as a whole. I may have missed important at the onset, something like the string is obtained by a ReadControlValue(). If that was true, then the discussion can go on for a while. But why should it be so? In a plain dialog, one could pass the edittext value directly to a properly dim'd variable, then one could ask for confirmation of the value to make sure that it was the good one. Make the user be a little bit more responsible for what he enters, and save the programming for the intelligent parts Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Spencer Simpson [mailto:[EMAIL PROTECTED] Sent: 17-May-04 11:55 To: [EMAIL PROTECTED] Subject: RE: MI-L Testing to ensure a string is numeric No, it will notThere are a couple of ways to implement them, some of which are more efficient than others. The str$(val()) method is the fastest method, but it's not the most robust. For one thing, it works only for integers. However, it's great for quick applications that require only integers. For robust, idiot-proof applications, you need more sophisticated validation routines. It is possible, of course, to write a routine that scans the string for the correct format, but this can be very slow, given that you have to make calls to mid$() for every character in the string. If you've been programming for any length of time, you've probably written one that you can adapt to MapBasic. Or you can write one in a faster language, put it in a DLL, and link to it from MapBasic (scanf is NOT recommended). Another method is to try assigning the string to a MapBasic window variable, and catching any errors. This method is optimal for validating strings that can take non-integer values. run command Dim v_dbl as float ... function good_float (ByVal s as string, f as float) as logical On Error Goto notvalid run command v_dbl=+sval OnError goto 0 f=val(Sval) good_float = true exit function notvalid: resume failure failure: good_float = false end function Hope this helps Spencer -Original Message- From: B. Thoen [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 11:05 AM To: Tim.Nuteson Cc: [EMAIL PROTECTED] Subject: Re: SUM: MI-L Testing to ensure a string is numeric Would that algorithm return the correct result if you fed it a numeric string like '0023456', or are numbers with leading zeros not going to be encountered? On Mon, 17 May 2004, Tim.Nuteson wrote: Thanks to all who responded to my question: How can I ensure that a value entered into an EditText control of a MB dialog is numeric? The simplest solution was offered by Michael Taylor, Martin Highham, and Robert Crossley: If str$(val(teststring)) = teststring then 'numeric Else 'not End If Thanks again, Tim Nuteson Target - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11784 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11788 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11789 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11850
RE: MI-L Labeling Layout Window
WinMastr, located at www.paris-pc-gis.com/download.htm in the MLC section is a way to manage by simple clicks many window settings. WinMastr_StUp restores the selected settings when starting up MI. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: David Reid [mailto:[EMAIL PROTECTED] Sent: 4-May-04 23:31 To: 'Mapinfo help forum (E-mail)' Subject: RE: MI-L Labeling Layout Window Ah, I see as well, you wish to change the Window Title. You can do this via your Mapbasic window, set window frontwindow() Title Your Desired Title You'll need to bring individual windows to the front before you issue that command though. The easiest way to do it would be to download Jaques Paris' Window Master utility. I can't seem to locate it on his site, so you may need to check Directions tool section. HTH, Dave -Original Message- From: Apers Mathieu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 9:46 PM To: 'David Reid' Cc: Mapinfo help forum (E-mail) Subject: RE: MI-L Labeling Layout Window Ah i see...i need to explain with a bit more detail... I know I cannot label objects in the layout window, i want to label the actual window itself. for instance, i have seperate layouts for A4 Landscape, A4 Portrait, A3 Landscape et cetera et cetera - 7 in total. instead of being called Layout 1, Layout 2... I want to call them what they are. Regards Mathieu -Original Message- From: David Reid [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 May 2004 2:42 PM To: 'Apers Mathieu' Subject: RE: MI-L Labeling Layout Window Mathieu, The layout window is not interactive in the sense that you could label objects as you do in the mapper window. This is by design. The layout has no clickable map objects. For labels in the layout, you simply create them with the Text tool, not the labeller tool. Same with the point and line objects, you can use them to draw in the layout window. HTH, David Reid -Original Message- From: Apers Mathieu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 9:36 PM To: Mapinfo help forum (E-mail) Subject: MI-L Labeling Layout Window Hi everyone. I'm trying to label my Layout windows, like you can do with your map windows using the 'Map Window Manager' in the toolsbut that won't label Layout windows. is there an upgrade to this tool or another tool available to do this? Cheers Mathieu Apers Mapping Co-ordinator Letterbox Channel | NZPost Ltd Telephone: 09 574 Facsimile: 09 574 4415 E-mail: [EMAIL PROTECTED] This email with any attachments is confidential and may be subject to legal privilege. If it is not intended for you please reply immediately, destroy it and do not copy, disclose or use it in any way. - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11637 This email with any attachments is confidential and may be subject to legal privilege. If it is not intended for you please reply immediately, destroy it and do not copy, disclose or use it in any way. - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11638 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11639 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11644
RE: MI-L common boundaries
Reg2Plin does that: www.paris-pc-gis.com/download.htm in the PPCC section, and Plin2Reg rebuilds regions from these segments. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Mills, Daniel [mailto:[EMAIL PROTECTED] Sent: 4-May-04 08:59 To: '[EMAIL PROTECTED] ' Subject: MI-L common boundaries Hi all, Is there a way to create polylines of common boundaries between polygons. In essence, i want the polyline of where the polygons touch. TIA Daniel -- Visit our websites www.wrcplc.co.uk and www.wrcnsf.com, as well as www.waterportfolio.com for collaborative research projects. -- The Information in this e-mail is confidential and is intended solely for the addressee. Access to this e-mail by any other party is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on information contained in this e-mail is prohibited and maybe unlawful. When addressed to WRc clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed in the governing WRc client Agreement. - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11636
RE: MI-L mapbasic Update table with custom function
My interpretation is that the expression used to update a column must be written with the MapBasic vocabulary. I deduce that from the fact that update as many other functions can be run from the MapBasic window that does not support any external calls, i.e. calls to custom functions that are not part of the MB set and must be supplied by the user, and the MB window does not allow that. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Cummings, Mike [mailto:[EMAIL PROTECTED] Sent: 26-Apr-04 18:14 To: Mapinfo-L Subject: MI-L mapbasic Update table with custom function I tried to compile this code: Update stable2 Set MTRS = Left$(bm,1)+Twn+Rge+right$(0+sec,2), Corner=strpcorner(location) (Where MTRS, BM, TWN, RGE, SEC, corner Location are fields in stable2 and strpcorner is a custom function) and I get this error message: Subroute Argument location not defined. Why doesn't this work? Shouldn't Mapbasic recognize that location is a field name? - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11530 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11532
RE: MI-L Thematic layers
FixShade on our site does it Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Upinder Mutti [mailto:[EMAIL PROTECTED] Sent: 19-Apr-04 21:36 To: [EMAIL PROTECTED] Subject: MI-L Thematic layers Hi all I'm sure this questions been asked many time before, but here goes: Is it possible to save a thematic map as a seperate layer in MI? Regards Upinder - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11459
RE: MI-L Querying by Border Style
Styleattr(objectinfo(obj,2),1) returns the pen width of the object obj. It has 2 ranges of possible values, 0 through 7 for pixels, 10 for points (in fact 10 + 1/10 of a point) You will have to find what is the thickest border and how it is defined (points or pixels) and to make sure that you apply the condition only to region objects. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Graham Herridge [mailto:[EMAIL PROTECTED] Sent: 7-Apr-04 06:18 To: [EMAIL PROTECTED] Subject: MI-L Querying by Border Style Hi All! I have a series of region objects which all have the same pattern colour but differ in border thickness. How can I extract, for example, all the objects with the thickest border? Thank you very much! Graham Herridge ** The views and comments expressed in this email are confidential to the recipients and should not be passed on to others without permission. This email message does not necessarily express the views of Bath North East Somerset Council and should be considered personal unless there is a specific statement to the contrary. This footnote also confirms that this email message has been checked for all known viruses by the MessageLabs Virus Scanning Service. Making Bath North East Somerset a better place to Live, Work and Visit. ** - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11304
RE: MI-L Using WinExecute with wait
Peter Horsbøll Møller wrote: John Spotten pointed me to Jacques Paris website (http://www.paris-pc-gis.com) where I could find an implementation of the ExecuteAndWait functionality. Unfortunately the link to the site where this example was placed was broken, so I was not able to retrieve this example. Have you fixed it, Jacques ? After consulting with Robert Edwards who wrote those functions and was hosting them on his site, I hade to break the links until these pages are restored on Bob's site. As we developed this section with the idea of sharing the hosting duties, I have, of course, not kept them in an archive. Sorry for the inconvenience. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Peter Horsbøll Møller [mailto:[EMAIL PROTECTED] Sent: 7-Apr-04 15:38 To: [EMAIL PROTECTED] Subject: SUM: MI-L Using WinExecute with wait Original question: How can I use some kind of function that executes an application and waits until this application finishes? Some kind of ExecuteAndWait! Bill Thoen gave me an easy solution: If using a command line I could add the /wait parameter. Why didn't I think of this myself ? John Spotten pointed me to Jacques Paris website (http://www.paris-pc-gis.com) where I could find an implementation of the ExecuteAndWait functionality. Unfortunately the link to the site where this example was placed was broken, so I was not able to retrieve this example. Have you fixed it, Jacques ? The ultimate solution came from Bo Thomsen who had packed the API functions into a simple and easy to use Delphi DLL which very easily could be called from within MapBasic. If anyone is interested, let me know and I'll send you the DLL and sample code - upload it to directionsmag. Bo has allowed it. Thanks Bo. Martin Higham, Mickey Feldman and Ian Thomas also gave me some comments and ideas. Thank you all. Cheers, 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 -Original Message- From: Peter Horsbøll Møller [mailto:[EMAIL PROTECTED] Sent: Friday, 2 April 2004 16:03 To: [EMAIL PROTECTED] Subject: MI-L Using WinExecute with wait Hi, Has anyone tried using some API function to start an application and wait for this application to finish ? I know about the WinExecute but this doesn't wait until the application has finished. There is also a function called CreateProces, but it look quite a bit more complicated, so if anyone had allready implemented this function in MapBasic I'd love to know. Cheers, Peter Horsbøll Møller GIS Udvikler Geographical Information IT COWI A/S Odensevej 95 5260 Odense S. Telefon 6311 4900 Direkte 6311 4908 Mobil 5156 1045 Telefax 6311 4949 E-mail [EMAIL PROTECTED] http://www.cowi.dk - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11237 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11318 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11319
RE: MI-L editing rows
I really do not understand the usefulness of such a procedure and I will not discuss. But I am sure of one thing: there is no blank row in MI; there might be rows with only or 0, but all the variables have a value that is defined. Any use of the whole table would give erroneous results (counts, labels, thematics...) as these blank cases cannot be differentiated from the regular ones with the use of undefined values. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Steve McArthur [mailto:[EMAIL PROTECTED] Sent: 2-Apr-04 07:22 To: [EMAIL PROTECTED] Subject: RE: MI-L editing rows Hi All One trick I use to get a 'row back' is to number a column with the rowid and then add a blank row. The new row is given a number that is between the two rows where the deleted row would have been (eg 10.5) and the whole table is then reordered by this field. You then end up with a blank row where the deleted row was. Steve McArthur LLPG Manager London Borough of Hackney -Original Message- From: Peter Horsbøll Møller [mailto:[EMAIL PROTECTED] Sent: 02 April 2004 13:17 To: Kiersten Taylor; [EMAIL PROTECTED] Subject: RE: MI-L editing rows Hi Kiersten You can't. The grey row indicates that there once was a record here, but it has now been marked as deleted. This means that the record still exists, and that it will not be removed until you pack your table. And you are right that packing the table might result in a relabling. A big problem is that if you have userdefined labels - that is labels that have been positioned manually - they are stored in the workspace with only a connection to the rowid. So if you delete one or several records and pack the table. Every record below the deleted record(s) have had their ROWID recalculated. This will also result in the problem that the ROWID in the workspace will link to wrong records, and therefor lable with wrong values. Userdefined labels are not to be trusted, and should be used as little as possible. I know this is no help ofr you, just information. Sorry that I have no good news this time 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 -Original Message- From: Kiersten Taylor [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 1:50 PM To: [EMAIL PROTECTED] Subject: MI-L editing rows Thank you for all your quick responses, but I am concerned that packing the table will re-label everything. How do I re-enter data into these spaces? LONDON BOROUGH OF REDBRIDGE DISCLAIMER This e-mail contains proprietary confidential information some or all of which may be legally privileged and/or subject to the provisions of privacy legislation. It is intended solely for the addressee. If you are not the intended recipient, an addressing or transmission error has misdirected this e-mail; you must not use, disclose, copy, print or disseminate the information contained within this e-mail. Please notify the author immediately by replying to this e-mail. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states these to be the views of the London Borough of Redbridge. This e-mail has been scanned for all viruses and all reasonable precautions have been taken to ensure that no viruses are present. The London Borough of Redbridge cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments. - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11243 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11245 London Borough of Hackney may exercise its right to intercept any communication on its networks - for more information see http://www.hackney.gov.uk/council/data/email_disclaimer.htm - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11246 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11248
RE: MI-L sum records against their columns
I would have thought that certainly for 12, it should have been sufficient to specify as update expression COL1+COL2+COL3+. I know it is kind of boring but it beats the export + conversion + import(or re-registration) procedure Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Pclifton [mailto:[EMAIL PROTECTED] Sent: 30-Mar-04 20:47 To: Chong, Austin; Mapinfo-L (E-mail) Subject: Re: MI-L sum records against their columns I just did this with 40 columns of data and 9000 records. Couldn't figure out how to do it in MapInfo, so exported the .dbf, loaded into Excel and used the Summation function to get the row totals. Then exported back into a second .dbf and imported into MapInfo. Gary Clifton _ Great Basin Internet Services Webmail (http://greatbasin.net) -- Original Message --- From: Chong, Austin [EMAIL PROTECTED] To: Mapinfo-L (E-mail) [EMAIL PROTECTED] Sent: Wed, 31 Mar 2004 10:56:26 +1000 Subject: MI-L sum records against their columns Hello all... I've got a very tricky question and I am not sure if its possible. I have a table with about 50 records and each records have about 12 columns worth of information. I just added one extra column called grand total. Now, I like to sum the column for the each records and put the new value into the grand total colum... In short, its something like this record 1 = value in column 1 + value in column 2 + value in column 3 + value in column 4 + value in column 5 + and the final value into the grand total column. Many thanks in advance... Regards, Austin --- End of Original Message --- - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11192 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11197
RE: MI-L Number of inflections limited to 16?
If you want a large number of inflexion points (i.e. different colours), I would suggest that you export the grid as a MI cell map tab, re-codify the z values as class values (a regular range thematic is also limited to 16) with a maximum of 256 and run an individual value thematic on these values. The best MIG export tool I know of is the latest version of Grid Analyser (www.terris.com) Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Iain Cowan [mailto:[EMAIL PROTECTED] Sent: 31-Mar-04 08:14 To: '[EMAIL PROTECTED]' Subject: MI-L Number of inflections limited to 16? Dear all, Can anyone tell me whether the number of inflections in the grid appearance dialog box can be increased to greater than 16. This seems to be a very low number considering you might have a range from 0 to 200 and may need to separate at a low interval. Thanks to anyone who can help. Please email me at [EMAIL PROTECTED] Iain ___ This email is confidential. If you are not the intended recipient, please delete it immediately. Material in this message which does not relate to the business of Symonds Group shall be understood as neither given nor endorsed by the company. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ___ - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11199 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11200
RE: MI-L Where to find symbols as BMP's?
If the thread is slipping from BMP to TTF, then most of the references given by Phil would be useful, but not so directly useful as just checking on our site two pdf collections of TTF symbols for cartography; you can see all the symbols (with their keyboard codes) available in some 70 fonts that can be found on the web for download (no commercial fonts, but no guarantee they are all really free for use). www.paris-pc-gis.com/MI_Enviro/mie_start.htm and look for TTF Mapping Symbols By the way, I am always looking to enlarge that collection and making sure that it is correct. If you have anything to offer or say, do not hesitate. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Phil Waight [mailto:[EMAIL PROTECTED] Sent: 24-Mar-04 20:31 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: MI-L Where to find symbols as BMP's? I couldn't agree more that decent / well organised symbol sets (either bitmap or TTF style) seem to be in short supply. My main issue with the current set in MapInfo / MapX is that they are poorly presented / classified, not so much that they couldnt cover most of my or my customer's requirements. When I went searching for standards/symbol sets, I had the same result as you - not much seems to have been done. However, geologists seem to have their act together with good sets and standards. So here are my findings in no particular order. Some of the references below may have sufficient quality graphics that you could turn them into BMPs with some very tedious work. 1.. I dont think I was able to find downloadable TTFs on the ESRI site, but this link http://moorstation.org/typoasis/designers/esri/index.htm has 8 Esri fonts. 2.. Downloading and installing ArcPad (free) gives you sets of free fonts, but it was a while ago and cant comment on the quality. 3.. USGS symbol standards for topo maps are presented here: http://www.mytopo.com/background_topo.cfm, but these are mainly areal fill patterns rather than point symbols - would be nice to have in MI one day though. 4.. Exhaustive geology symbol standards/definitions here ... http://ncgmp.usgs.gov/fgdc_gds/mapsymb/mapsymbpdfs.html These have great detail, but has someone created these region/line/point styles for MapInfo? 5.. This is a good study reference on symbol types and application http://atlas.gc.ca/site/english/learning_resources/carto/symbol.html 6.. This link is referred to in a number of places and so must have had something useful in it at some stage http://www.maps4u.com/ref/symbology/usgs but no longer exists. Possibly the content exists elsewhere now?? 7.. Installing software such as CorelDraw gives you a wealth of fonts. 8.. My last version of LayMan (http://www.acenet.com.au/~pwaight/layman_whatsnew.htm) addressed 2 shortcomings of standard symbol use in MapInfo, organisation (groups symbols by a classification and allows sorting by font name or class) and speed of use (browsing and picking) whilst editing a map. Phil. - Original Message - From: Mickey Feldman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 7:28 AM Subject: MI-L Where to find symbols as BMP's? Hi list, I have literally thousands of bmp's for button glyphs, icons, etc, but very few of them are appropriate symbols for map point data. I'm just looking for ordinary stuff like schools, fire stations, hotels, etc. My googling for this brought up that this same question that was asked a few months back, but apparently the only response pointed to ESRI's TTF symbols. These are OK, but limited and just black and white. I really want bmp's. Surely there must be a collection of these out there somewhere? TIA -- Mickey Feldman [EMAIL PROTECTED] - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11045 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11089
RE: MI-L MapInfo Wildcard?
Shouldn't it simply be %jo% ? Jacques Paris -Original Message- From: Michael Smith [mailto:[EMAIL PROTECTED] Sent: 25-Mar-04 10:11 To: 'MAPINFO-L' Subject: MI-L MapInfo Wildcard? Hi, I am trying to run an sql query of my streets map file to make some changes to the street names. What I would like to do is select any street in my streets table that has a portion of a text string such as find all streets that contain the letters jo. The query would then pull johnson st, jones st, etc. I can't seem to get this working it is looking for exact matches. Select: Roads Where: streetname = jo% This does not work. Does anyone know the correct wildcard or use of the wildcard? Thanks in advance. Mike - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11098 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11103
RE: MI-L Question
Years ago (!!!) Bill Thoen helped me setting INI file handling subs for dealing particularly with language strings, but I have used them in all kind of occasions. You will find everything you need in the MLC_INI_KIT.zip. Go to www.paris-pc-gis.com/mlc/mlc_main.htm in the INI Solution | Notes to developpers. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Lutz Hogen [mailto:[EMAIL PROTECTED] Sent: 23-Mar-04 03:41 To: [EMAIL PROTECTED] Subject: MI-L Question Hi, does anyone know, which is the best (fast) way, to read from und to write into an (*.ini-)File. I would like to put different variables into one file to manage different problems, for example: - sdoc=home/prod/; inumber=127,123,17; sname=Paul Hogen; ... Has anyone an answer to this problem. I would be very happy! Any and all suggestions will be appreciated. Yours sincerely Lutz Hogen [EMAIL PROTECTED] -Town of Aix la Chapelle- Germany - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11032
RE: MI-L Can MapBasic initiate sending out e-mail from MS Outlook?
Until version 6 there was in the file menu a sub menu to send mail. It has disappeared with version 6.5. However in the MENU.DEF of the MapBasic 6.5 the definitions are still there Define M_SENDMAIL_CURRENTWINDOW 114 Define M_SENDMAIL_WORKSPACE 115 that means that one could run menu command 114 to send the current window. In 6.5 it adds a WMF of the current window to a blank message form one must fill up (no way to fill in the address from MapBasic that I know of). Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Sloan Ritchie [mailto:[EMAIL PROTECTED] Sent: 23-Mar-04 16:33 To: [EMAIL PROTECTED] Subject: MI-L Can MapBasic initiate sending out e-mail from MS Outlook? Hi, Does anyone have code examples of a way to send map files via e-mail, using MapBasic scripts? Or is there a MapInfo SendMail command? Sloan RF Engineer ATOS Origin Seattle, WA - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11047 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11049
MI-L sum: MIG fantasies
The problem I submitted to the list was that when I was trying to position exactly a MIG grid during its creation as a thematic map by adding to the data 2 points representing the bounds I wanted, the resulting MIG would contain one more row and column than necessary. It works as designed, simply it is poorly designed for my purpose. My understanding of the way MI generates its MIG is that it takes the Xmin and the Ymax of the point set as the upper left corner of the grid, and it builds the grid from that point with the given cell width until all the points are covered. If (Xmax - Xmin) and (Ymax - Ymin) are multiple of the cell width, the point (Xmax, Ymin) becomes the upper left corner of the last cell and not the lower right corner as I expected, and that explains why there is then an extra column to the right and row to the bottom. Vertical Mapper does not allow for exact positioning of the grid; it simply sets the grid position as a multiple of the cell width. Of course, if you define your cell map from the start with the proper coordinates to match that requirement, you will have a good positioning of the WM grid relative to your cell map. Exact positioning without any constraint on data points or coordinates can be found in Grid Analyser; that MI add-on can generate (version 4 at www.terris.sk) MIG files with exact characteristics specified in a requester and perfectly respected (xmin, xmax, ymin, ymax, cell width) Thanks all who have pointed without necessarily knowing it towards the solution. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10838
MI-L sum : MIG fantasies
I put SUM in the subject but it is a misnomer because SUM = 0 (ziltch) As I had already touched on the subject at least 2 years back and got the same (lack of) reaction I have to choose between two possibilities 1 - that whatever I say is never challenged because I know the subject and nothing has to be added- and that I do not accept 2 - that the MI adventure in GRID-mig files is seen as very unimportant by MI users because MI did not put into it enough energy to make it an interesting tool - and that, I am more inclined to accept. There are those who would say But why worry? VM is there They should however be very concerned about what they will get. In fact what they are already getting (beside a hefty bill, compared to a free GRID) is as unreliable (if differently) relatively to grid registration as I have noted for a MIG. That we are in both cases dealing with images is not a reason to wave off their reliable registration I am willing to drop the issue but not without warning you a last time about those unacceptable poor performances Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10680
RE: MI-L Labelling Tool/PushBurttons with Unreachable Icons
Terry, It would look at first view that there is some discrepancy between the software and the documentation including def files (this icon does not exist in 6.5). I have encountered several such situations while compiling differences between versions (up to 6.5 ...!). In your case, it would seem that new definitions should be added to the end of the ICONS.DEF file because new internal values could not have been added at the end of the transport section, these values having been assigned sequentially without gaps between topics. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Terry McDonnell [mailto:[EMAIL PROTECTED] Sent: 2-Mar-04 06:19 To: [EMAIL PROTECTED] Subject: MI-L Labelling Tool/PushBurttons with Unreachable Icons Greetings, Mappers of the World I want a toolbar button to feature a bus stop symbol. My system uses the London Transport-like symbol of a horizontal line through a circle (like the Tube). I have my own, bespoke .ICO for this. I notice that this is available as the 33rd symbol of the MapInfo Transportation font. But, in the ICONS.DEF file, the definitions only go up to: MI_ICON_TRANSPORT_27 (i.e. only 27 of them, strangely enough) Now the code to generate the button requires an integer Button_ID, as in: . { PushButton | ToggleButton | ToolButton } Calling { procedure | menu_code | OLE methodname | DDE server , topic } [ ID button_id ] [ Icon n [ File file_spec ] ] . So I assume, effectively, I can't specify the icon I want. Help further states: .If the File sub-clause specifies the name of a file containing icon resources, n is an Integer resource ID identifying a resource in the file. Whatever THAT means!! When I label my Bus Stops, on the map, with this symbol, the following MB code is generated: Set Map Layer 1 Display Global Global Symbol (64,16711680,12,MapInfo Transportation,0,0), so that's no problem. Can anyone tell me how I might be able to have my chosen icon on the button. (and, while I'm at it, I can't find any equivalent of the Windows standard button icons for Edit)? TIA Terry - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10666
MI-L MIG fantasies
With MI6.5, a MIG file created by the Grid thematic tool reveals strange things. If MI uses the xmin, ymax as the anchor point for the MIG (upper left corner) the outer point is the multiple in number of cells just above the observed xmax and below ymin from the anchor point. The first strange things is that in the Settings windows of the Grid requester after adjusting for cell size, the grid size is displayed with one less unit (in width as in height) that would be necessary to cover the entire surface. The next strange thing is revealed by some dll calls to the MIG file for info (MiGrid.DLL) These calls return the number of cells as been 1 more than the required number, but with a relatively exact set of coordinates for the region covered. Some tests I ran with an oldie of mine (InfoExMig) and particularly the conversion of the MIG file to a standard MI region TAB, confirm that even if MI tells you that the grid should be say 121x115 cells (settings) while it should be theoretically 122x116, it generates an image of 123x117 cells that do not measure the set value of 1 (in this example) but of 122/123 in width and 116/117 in height. There does not seem to be a way to control this procedure. I have tested one possible solution that of adding a fake extreme point with coordinates 1 cell units more in x, less in y than required. That will stretch the MIG so that the required surface will be covered and that its pixels will correspond exactly to the cell of the cellular map, which is satisfactory even there might be an extra row or column beyond the required area. If it works geographically speaking, I cannot say that the numerical results would be good. The introduction of fake points may have an impact on the interpolation at least in the surrounding areas, except if (not tested) they can be given a zero value and that zeroes can be ignored. I am sure that the grid is defined on the set of points, independently of their z-values. However if zero is an acceptable value for a variable, that approach falls through. I do not believe that one should go to such an iffy extent for finding a way around what I consider a faulty behavior. May be this has been corrected in later versions. I would very much hear about your experience in that area. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10650
MI-L sum: fixed length ascii import
Thanks for all the answers that fell into two groups: FIXED_IM. MB/MBX one of Kevin Mahoney MI utilities of a bygone era One comment pointed at the risk of failure on large files. It should be worthwhile to see if it cannot be improved with what is now known about large file handling with MB. I think I heard something about committing a table from time to time, or even closing MI and restarting it? INDIRECT procedures that require using an external program to import fixed length text and export it in a more appropriate program. Two possibilities Excel and Access Excel: easy to use but limitations in number of cases (lines) up to 65500 with excel 2000, and of variables (256 but if it is to exported in DBF only 255) Access: less obvious to use for non-initiate , practically unlimited number of cases but one index column added in exporting it that must be removed later on. Any problem encountered in specific conditions, with special formats Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10608
MI-L MI: speed of a joint operation
I have a MI table with the geo base and some tabular data, and a DBF table registered in MI; I wille be dealing with tables containing between 10 000 and 100 000 rows. I plan to make several operations involving a joint. Both tables contain a column with unique identifiers. I would like to learn about your experience in that area. I am looking for the setup that will guarantee the fastest execution. I have identified two areas where choices are possible: the type of the identifier and the use of indexes. Should the identifier column be string or integer? Is one faster than the other? Should indexing be done on the identifier columns? Are gains in speed worth the time for spent in indexing and the enlarged IND files? Any input will be appreciated. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10610
MI-L fixed length ascii
Does anyone know about a tool tha would allow ASCII files in a fixed length format to be read or imported in MI I have located atool for exporting fixed length ASCII (Fixed_ed2 on directionsmag site) but not the other way around TIA Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10599
MI-L api call question
If I use FindFirstFile(a, fileinfo). should I expect the LastAccessTime to be different from Today? I tested a file that showed in the Windows Explorer a date from last year, but when I used the above technique, it returned today and when reloading the directory contents, the last accessed was changed to day. A corollary: is the use of FindFirstFile considered as an access to that file? Or is there a way to get that ate without making a recognized access to the file? Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10593
RE: MI-L Network Analysis (Raster)
MapCalc should most probably do it but I was wandering about a built in constraint in that program; it works exclusively with non-projected data. That could have some bearing on the precision of the calculations if there are based on simple raster positions and not on actual distances. One must remember that MapCalc main application is for small scale projects (micro-farming, resource management...) where cell differences in metric size should not be an issue. Does anyone have some experience on this issue? Is it a real drawback at some scale? Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Uffe Kousgaard [mailto:[EMAIL PROTECTED] Sent: 20-Feb-04 05:32 To: [EMAIL PROTECTED] Subject: Re: MI-L Network Analysis (Raster) Mapcalc should be able to do so with raster data: http://www.farmgis.com/products/software/mapcalc/default.asp Kind regards Uffe Kousgaard www.routeware.dk [EMAIL PROTECTED] wrote: Hi everyone, I would like to know whether anyone has done Network Analysis in MapInfo, in particular using raster (grids). In ArcView it is possible to undertake network analysis based on both the vector and raster models if you have the right extensions. I am aware of a package called Routefinder for MapInfo, however on examination it appears to only support the vector model (ie it is geared toward road networks). Using the raster model (ie grids) enables one to use DEM's to generate shortest paths, cost distance type operations, ie the result is predictive rather than using an existing network. Any ideas, or pointers to existing software is much appreciated. Thanks Roger - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10553 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10560
RE: MI-L Ref. : MI-L Install of Version 7.5 and workspace packager - HELP
I have not checked that recently but a wor that contains layout definitions can create problems when moved between different regionalized platforms because some regional terms are used to defined the window attached to a frame by its name. A mapper is called, xyy... map or xyy... carte or xyy... kartta. I have written long ago a tool WorTrans.mbx to make the conversion between 2 languages but I have not distributed it. It works between any 2 of English, French, Spanish and Swedish. One can add its own language. If there was any demand I will install on our site. Just ask Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 19-Feb-04 11:42 To: [EMAIL PROTECTED] Subject: MI-L Ref. : MI-L Install of Version 7.5 and workspace packager - HELP Many thanks to the people answering me about the language change that might cause problems. I should have pointed that it occures even whith workspaces I created with the new english version. Moreover, I had oppened some workspaces in a text editor and all the words already are in english, I suspect the french version of MI (that I had before, you were right) uses english terms in order to avoid the problems you quoted. Unfortunately, it does not seem to be the root of my problems. Thank you again for trying. Laure Dessemontet [EMAIL PROTECTED] 19.02.2004 17:23 Pour : [EMAIL PROTECTED] cc : Objet : MI-L Install of Version 7.5 and workspace packager - HELP Hello all, I appologize for posting this request again, but despite all I have tried, nothing has worked yet. I have just installed version 7.5 in english on my computer in order to get the workspace packager tool. It seems it wasn't such a good idea. Problem 1: All layouts in any of my workspaces now come with blank frames. I have to re-select all maps and legends. First time such a thing happens when I changed version! Problem 2: The workspace packager tool does not work. I get one message saying Error: Could not sucessfully parse workspace and then An error occured while processing the workspace list. If I try a second time a message window opens saying that a working folder cannot be created in my documents and settings location. I cannot browse anywhere to change the destination anyway... I contacted a few friends who have had no such problems when installing the new version and are very happy with the packager tool. Needless to say I already re-installed twice. Has anyone experienced the same and do you know how to solve this? Many thanks Laure Dessemontet - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10532
MI-L radom points within region
I would like to hear comments about the real nature of point patterns that are generated with the procedure that Uffe Kousgaard offers us in its Make_randompoints application. The x,y are created with the RND() function to fit in the MBR of the region that points outside the polygons are dropped. I know already about the no-so-random performance of the RND() function. I could state my question the following way: Once a rectangular (=MBR of a region) random point map has been generated, can we consider any subset of that map (the actual extent of the region) has been also random? Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10462
MI-L list of files in directory
There is an example of how to use various Kernel DLL calls to list files in a set directory. With some adaptations, you can use it for your own purpose. It is located at www.paris-pc-gis.com/mb_r/dll/dll_start.htm in the examplse of the Kerrnel Library section Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10481
RE: MI-L Follow up to Geographic Operator Functionality
I do not think that you can express direction with MI. You have to define by yourself what you understand within distance d in such direction; for example, what will be the aperture of the sector used for the search (45 degrees, 5 degrees ?) ; would the outer limit be along an, or a straight line ??? Once you know what you want you can try the following in the MapBasic window set distance units mi set coordsys table your_table dim o as object dim x as float dim y as float x=centroidx(selection.obj) y=centroidy(selection.obj) o=converttoregion( combine ( combine(createline(x,y,x-2,y+1),createline(x,y,x-2,y-1)) ,createline(x-2,y+1x-2,y-1) )) that will create a triangle based on the selected point directed to the West, 2 mi along the West direction and 2 miles wide at that distance. You can then try to bring all that into a select by replacing all the x and y by centroidbut I do not guarantee there will not be some confusion between the selection.obj and the objects selected by that operation that would be within that triangle.. Looks rather cumbersome but ...that's MI Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Ryan_W [mailto:[EMAIL PROTECTED] Sent: 5-Feb-04 14:42 To: [EMAIL PROTECTED] Subject: MI-L Follow up to Geographic Operator Functionality Fellow Listserv Members, As a follow up to my last question, Geographic Operator Functionality I've included the code. Just to reiterate, I'm trying to locate Ct's that are within 2 miles west of my known point location. Again, how does one 'express' direction? Thanks, RW Distance (-79.386803, 43.670368, CentroidX(urban.obj),CentroidY(urban.obj),mi) 2 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10292
RE: MI-L Border of Raster Image
The Frame is a rectangle object. Select it and change the border style to none. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -Original Message- From: Evan MacDougall [mailto:[EMAIL PROTECTED] Sent: 19-Jan-04 13:12 To: [EMAIL PROTECTED] Subject: RE: MI-L Border of Raster Image I'm working on the same thing at the moment. If you find out a solution, I'd like to know how you did it, too. -Evan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:48 AM To: [EMAIL PROTECTED] Subject: MI-L Border of Raster Image I have a company logo .gif file that I'm opening in MI to put in the layout view. When the frame is drawn to add the .gif, a border appears. How do I fill the frame without receiving a border? -- Philip Lesnik Associate Analyst, Market Research General Growth Properties, Inc. 110 N. Wacker Drive BSC 3-13 Chicago, IL 60606 312-960-2998 312-960-5519 (fax) [EMAIL PROTECTED] -- + Notice: This e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. + - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9984 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9986 - List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9989