Please correct me if I am incorrect in saying that Thematic Maps will dynamically change the object (colour) style when the values changes, live. To me, the Thematic mapping feature is a tool that automatically colour codes my spatial data in relation to a particular parameter. How much more automated do you want? Regardless of definition of whether or not thematic mapping is automatic or manual you will need to pre-define what colours to use. As with Steve Nabors's example with coding the colours are manually predefined somewhere. With a thematic map, once it is created and setup, the colours are set dynamically. So when a parameter changes, the colour of your point will also change (as long as the thematic map is actively visible set in the layer control). So a thematic map will indeed "change the color of a symbol automatically according with some parameters in the table associated with this object". You can save the thematic map as part of a workspace file. Everytime you open the workspace (as opposed to the table) it will "automatically" create the thematic map for you based on your settings (column parameters) without you haveing to create it or set it up. Alternatively you can save the thematic template. This will also save your colour settings. With this you can imagine thematic mapping to be 2 steps. Pick out your template, and choose which column to use to distinguish the parameters. Again, how much more automated do you want it to be? Saving a template is 2 steps. Choose Template, Choose Column Parameter Saving a workspace is just 1 step: Open Workspace Either way the colour will change according to the value of the parameter set in the thematic map. - Steve
PS Nice coding Steve, but that won't change the colours dynamically when the value changes =) On 9/15/05, Nabors, Steve <[EMAIL PROTECTED]> wrote: > > No utilities or automation built into MI Pro that I know of. > Not without writing some mapbasic code. Here is a sample of that. > > > > 'Global variables and constants > Dim mysymbol as Symbol > Declare Sub Main > Declare Sub GetSymbology > Declare Sub Process_Symbology > > Sub Main > Open Table "XXX.tab" As thetab 'where XXX.tab is the table you > want to process the symbology > Call GetSymbology > End Sub > > Sub GetSymbology > Dim I as integer > For i = 1 to 2 > If i = 1 then 'clients > Select obj From thetab Where client = 1 > mysymbol = MakeSymbol(56,BLUE,12) 'blue > cross > End If > If i = 2 then 'non-clients > Select obj From thetab Where client = 2 > mysymbol = MakeSymbol(56,RED,12) 'red > cross > End If > > If SelectionInfo(Sel_Info_Nrows)>0 then > Call Process_Symbology > End If > Close Table Selection > Next > End Sub > > Sub Process_Symbology > ' note mysymbol > Dim myobj As Object > Dim x as integer > Fetch First From selection > loop1: > myobj = Selection.obj > x = Selection.rowid > ' note x > > If ObjectInfo(myobj, OBJ_INFO_TYPE) = OBJ_POINT > Then > Alter Object myobj > Info OBJ_INFO_SYMBOL, mysymbol > Update selection > Set obj = myobj > Where RowID = x > Else > Note "Error NPO : The selected object is > not a point." > End If > fetch next from selection > if not eot(Selection) then goto loop1 > end if > loopend: > End Sub > > > > > -----Original Message----- > From: Richard Berroa [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 14, 2005 11:20 AM > To: [email protected] > Subject: MI-L Question > > > > Dear friends, > > I need to know if is possible in MapInfo Professional or if there is any > utility to change the color of a symbol automatically according with > some parameters in the table associated with this object. > > For example, if I have a mappeable table of business points with a field > named "client" that indicate with a "1" if is client and "2" if is not a > client, I need to know if I can program the software for the number 1 > use the blue color and for the number 2 use red color and if a change of > number is made in the table it could be reflected in the color of the > object too. I know that it's possible manually using the Thematic Map > function but I need to know if it is possible do automatically. > > > > Thanks, > > > > Richard. > > > > > > > > > ______________________________________________________________________ > This e-mail has been scanned by MCI/MessageLabs Managed Email Service. > > --------------------------------------------------------------------- > List hosting provided by Directions Magazine | > www.directionsmag.com<http://www.directionsmag.com>| > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Message number: 17866 > >
