Calling Existing Thematic Template?

493 views
Skip to first unread message

empirepd

unread,
Jan 22, 2009, 2:58:30 PM1/22/09
to MapInfo-L
Is there a way to call an existing Thematic Map Template that has
already been stored in the Thematic library to apply to a table in
MapBasic or can you only create it on the fly using the Shade command
during a program?

Thanks,
Sam

empirepd

unread,
Jan 26, 2009, 11:04:43 AM1/26/09
to MapInfo-L
Anyone? Thanks.

Maurice34

unread,
Jan 27, 2009, 10:44:47 AM1/27/09
to MapInfo-L
Somebody please
I'm very interested too....
Thanks

On 26 jan, 17:04, empirepd <arcanea.mu...@gmail.com> wrote:
> Anyone? Thanks.

empirepd

unread,
Jan 27, 2009, 6:12:30 PM1/27/09
to MapInfo-L
Does anyone know this? Thanks.

Maurice34

unread,
Jan 28, 2009, 4:22:51 AM1/28/09
to MapInfo-L
You know what: it seems impossible with MapBasic (or perhaps by
reading values from the binary file *.thm....but I do'nt know what is
inside !)

On 28 jan, 00:12, empirepd <arcanea.mu...@gmail.com> wrote:
> Does anyone know this? Thanks.

James Patron Bell

unread,
Jan 28, 2009, 4:33:31 AM1/28/09
to MapInfo-L
From having turned the MapBasic window on in MapInfo and then run an
existing Thematic Map Template the full set of descriptive values and
titles need to be entered. I would suggest that loadding the Template
manually with the MapBasic window open then work on altering the code
as need be.

Yours

James

On Jan 28, 9:22 am, Maurice34 <maurice.na...@agriculture.gouv.fr>
wrote:
> > Does anyone know this? Thanks.- Hide quoted text -
>
> - Show quoted text -

Tony Pilkington

unread,
Jan 28, 2009, 7:08:58 AM1/28/09
to mapi...@googlegroups.com
Maurice, I copy and paste from the relevant .wor file.

Tony

Maurice34

unread,
Jan 28, 2009, 11:32:24 AM1/28/09
to MapInfo-L
Thanks Tony, but...I don't understand what you mean with "the
relevant .wor" ??
I have no .wor, just MapBasic, a table my_table and an existing
template bidule.thm
How to write in MB: "shade my_table with all parameters that you will
found in file_spec\bidule.thm" ?
That's THE question !!

Peter Horsbøll Møller

unread,
Jan 30, 2009, 2:21:08 AM1/30/09
to mapi...@googlegroups.com
I think it has been metioned already.
The solution must be to open the MapBasic window and create the thematic layer manually using the template.
Afterwards you find the Shade statement you are looking for in the MapBasic window.
 
But that is a hardcoded shade statement, there is no connection to the template you used.
 
If you could do like this:
Shade MYTABLE With MYCOLUMN Using Template "bidule.thm"
Should MapBasic just "apply" the values/intervals and colours to the values in the column of the table?

Peter Horsbøll Møller
Pitney Bowes Business Insight - MapInfo
 
2009/1/28 Maurice34 <mauric...@agriculture.gouv.fr>

Maurice34

unread,
Jan 30, 2009, 4:56:25 AM1/30/09
to MapInfo-L
Thanks Peter
Excuse my poor english
I think I understand your answer but my problem is:
- I receive every month a "my_table" with an "my_table.thm" (same name
every times)
- I'm trying to write for users a tool displaying on a mapper this
"my_table" analysed with the appropiate "my_table.thm"
- I know that I can do that "behind the scene" and re-code my tool
every time, but ....
So,: the question is as you said: how to write in MB that I want to
shade "my_table" with "my_column" (always the same name too) using
"my_table.thm" (with the two checkBox options of the dialog box:
"personnalized legend" and "value of individual category" ....sorry,
free translation !!)

Gentreau

unread,
Jan 30, 2009, 5:22:44 AM1/30/09
to mapi...@googlegroups.com

It seems that there is a missing command from the Shade command in MapBasic.
As suggested, it would make sense if you could issue the command

Shade <tablename> Layer <layername> Using Template "templatename.thm"

Is it possible to add that to the roadmap ??

Gentreau.

[Maurice, je peux vous faire la traduction.
En ce moment ce que vous voulez faire n'est pas possible en MapBasic
si le 'template' change chaque mois.
Par contre, ca sera une bonne idée si MapInfo la rajoute dans la prochaine
version.]


-----Original Message-----
From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On
Behalf Of Maurice34
Sent: Friday, January 30, 2009 10:56 AM
To: MapInfo-L
Subject: [MI-L] Re: Calling Existing Thematic Template?


Peter Horsbøll Møller

unread,
Jan 30, 2009, 5:29:57 AM1/30/09
to mapi...@googlegroups.com
Hi,
 
OK, that makes sense.
You can store thematic information a the tables metadata. Maybe you should ask your supplyer to deliver the table in that way in stead. If he does, you can just open the table, and the thematic stored in the metadata will be used when the table is shown in a map.
 
Of course this would require that you data supplyer either has MapInfo Professional 8.5 or newer or that he could programmatically add this information to the metadata. Of course you would also need at least MapInfo Professional 8.5
 
Peter Horsbøll Møller
Pitney Bowes Business Insight - MapInfo
2009/1/30 Maurice34 <mauric...@agriculture.gouv.fr>

Maurice34

unread,
Jan 30, 2009, 7:20:46 AM1/30/09
to MapInfo-L
Thanks to all
I solved my problem by asking my supplyer to send me "my_table.tab"
and a "relevant .wor" as said Tony, not a "my_table.thm"
(nothing else possible, because this supplyer uses a old-fashioned MI
7.0...)

> Is it possible to add that to the roadmap ??
Good idea !! (or perhaps an acute description of what is inside a thm
and somebody here will write the tool thm2shade_parameters.mbx... :D)
Reply all
Reply to author
Forward
0 new messages