Hi Rob,

MapInfo seem to be a little tight on releasing the
code for this product...so alternatives might be on
the cards! I had to automate 250 maps for our web site
and with no money we had to improvise...the attached
message should have all the details you will need to
get an idea of what we did...

Please note though: this did work but the maintenance
aspect seems to outweigh the benefits in nearly every
category...don't follow this route until you have a
foolproof method of updating the maps as they become
out of date.

Last option would be to sit down with a GIS developer
and try to create a mapbasic program from
scratch...it's fairly easy to generate html tables
from mapbasic and you'll be able to insert images into
the html code as well...the difficulty might come when
you need to create a web map you can click on...I have
thought about sitting down and trying to put one
together..but so far...no time to devote.

Are you based in Australia?

Ben Crane
Wokingham District Council

Note: forwarded message attached.


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

X-Apparently-To: [EMAIL PROTECTED] via web14501.mail.yahoo.com; 09 Nov 2001 03:28:12 
-0800 (PST)
X-Track: 1: 40
Received: from web14606.mail.yahoo.com (216.136.224.86)
  by mta443.mail.yahoo.com with SMTP; 09 Nov 2001 03:28:12 -0800 (PST)
Received: from [194.203.119.130] by web14606.mail.yahoo.com via HTTP; Fri, 09 Nov 2001 
11:28:12 GMT
Date: Fri, 9 Nov 2001 11:28:12 +0000 (GMT)
From: =?iso-8859-1?q?Benedict=20Crane?= <[EMAIL PROTECTED]>
Subject: Fwd: FW: HTML Mapper 
To: [EMAIL PROTECTED]
MIME-Version: 1.0

--0-2022904076-1005305292=:55349

 Note: forwarded message attached. 

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com
--0-2022904076-1005305292=:55349

X-Apparently-To: [EMAIL PROTECTED] via web14608.mail.yahoo.com; 06 Nov 2001 11:27:40 
-0800 (PST)
X-Track: 1: 40
Received: from 194.203.119.131  (EHLO wdc-exchange1.wdc.wokingham.gov.uk) 
(194.203.119.131)
  by mta437.mail.yahoo.com with SMTP; 06 Nov 2001 11:27:38 -0800 (PST)
Received: by wdc-exchange1.wdc.wokingham.gov.uk with Internet Mail Service 
(5.5.2650.21)
        id <WB2R0RG1>; Tue, 6 Nov 2001 19:22:50 -0000
From: Ben Crane <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: FW: HTML Mapper 
Date: Tue, 6 Nov 2001 19:22:50 -0000 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

Message-ID: 
<[EMAIL PROTECTED]>
From: Ben Crane <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, "'[EMAIL PROTECTED]'"
         <[EMAIL PROTECTED]>, "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, 
        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, 
        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: HTML Mapper 
Date: Tue, 6 Nov 2001 19:15:26 -0000 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
        boundary="----_=_NextPart_002_01C166F8.6CB0C050"


------_=_NextPart_002_01C166F8.6CB0C050



Hi all...

I didn't want to post it on the net because I wanted to add attachments to
make it a tad easier.

What Do You Need?

        1.      AutoMate (http://www.unisyn.com/) It's a trial download
(30days)
        2.      MapBasic Program
        3.      A MapInfo Table. 
        4.      A BATCH file with the MapBasic MBX file in it. (AutoMate
will NOT run any application unless it's a EXE, COM, BAT)
        4.      YOU WILL NEED TO KNOW MAPBASIC!

How Does It Work?

        1.      AutoMate enables you to automate a large proportion of
Windows functions...including editing keystrokes.
                Read the Automate_Config_Manager.txt file...It will not make
any sense as yet, but after you download AutoMate and
                play with it, it will make more sense. You will, in a sense,
make the computer YOU...sit back and it'll type anything in, press OK,
                add any data you want to the HTML Mapper as you would have
had to...it just does it for you.

        2.      MapBasic Program: The following MB program has been adapted
to suit AutoMate. It loads a GRID 2500T file, which uses CentroidX and
CentroidY (which you have to add!) to define where to center a new Map
Window. The program uses a simple incremental for::loop to
ensure all 250 grids have sequential numbering (sequential numbering is the
KEY to making this work, I will explain later). You will
need to change the Open Table lines to suit your needs. 

        3.      GRID2500T. You must add Column 1 as a sequential numbering
column. This column must individually number (1...through to ?)
                EACH record. When you run the MB program, it will
automatically number colulmn 1, but you must create the column through Table
Maintenance: call it NUM. You will need to create 2 more columns to hold X
and Y data (use centroidX and centroidY functions to place
coords for each record) 

Mmmm...Not Sure Yet?

        Right: 

        1. AutoMate creates a variable IMAGENUM.
        2. AutoMate passes this variable (IMAGENUM) to the MB program
(Automate_JPG_Maker.MB). In effect, when you run the BATCH
            file (use notepad and type in the path to the MBX file..save as
?.BAT) the MB program "asks" for IMAGENUM.
        3. The MB program opens the GRID2500T table: This table breaks
Wokingham District into 250 squares. We stayed with this
            breakdown. Each Row is individually, sequentially numbered 1 to
250. (IMAGENUM increments 250 times through a loop, passing
            1,2,3...etc into the MB program, which then, using SET MAP
centers the relevant data (Opened using OPEN TABLE command in the MB
program). Each row now has a centroidX and centroidY; bingo...easy to center
a Map view.
        4. The HTML Image Mapper in TOOLS is then opened...and using
keystrokes (simulating the pressing of buttons) I coded in what I would
            have typed in manually, using the constantly incrementing
variable IMAGENUM tagged onto a filename (for saving) in order to name
            all my HTML map/pics sequntially from 1 to 250.
        5. This process is then repeated, but only incrementing the variable
(IMAGENUM), resetting the Map View to the second grid, and running
            the HTML Image Mapper...this repeats for 250 times...and there
you have it...250 images ready for the web.
        
WARNINGS!!!!!

        1.      AutoMate is tempremental at best, please ensure you ONLY
have MapInfo open and AutoMate open.
        2.      Turn off all automated messages...eg. new email message
notes. If these appear, the AutoMate program assumes,
                it the active window and acts on that window and NOT on
MapInfo... = DISASTEROUS consequences (well...almost ;)
                AutoMate can let you specify focus windows...but it 2 has
been unreliable...better to be safe than sorry.
        3.      It MAY...Sorry...IT WILL CRASH!! Don't worry...mine did at
image 107...All you do is reset the IMAGENUM variable to
                108 and then let it go again.
        4.      TEST TEST TEST TEST TEST...I got the program yesterday...put
this thing together yesterday afternoon and spent 6
                hours today making sure it worked! I cannot stress this
enough...when this thing goes wrong, it does it in style...check, double
check,
                triple check...it will save you time.
        5.      All the attachments given here will NEED to be modified to
suit your needs...they will NOT work as they are...I didn't have time to
                change some of the notes in the MB program, so don't read
them...they don't apply :)

Right...I have briefly covered this...If you have any more questions,
technical..or any better ideas than I have (with re: 2 the Image Mapper
Program) please let me know. I hope this helps...Please don't hesitate to
email me if I've confused anyone.:)

Good luck...
Ciao,
Ben Crane
Wokingham District Council...whooopps...Wokingham Unitary! ;)


 <<Automate_Config_Manager.txt>>  <<grid2500T.TAB>>  <<grid2500T.ID>>  
<<GRID2500T.IND>>  <<grid2500T.MAP>>  <<grid2500T.DAT>>  
<<Automate_JPG_Maker.mb>> 

------_=_NextPart_002_01C166F8.6CB0C050
        name="Automate_Config_Manager.txt"
        filename="Automate_Config_Manager.txt"

CREATEVAR: "IMAGENUM","107",0
OPEN: "G:\Data\HIGHWAYS\Maps\ISM\ism.TAB"
OPEN: "H:\BEN\MapInfo_Data\2001_2002 Capital Works =
Programme\2001_2002_Capital_Works.TAB"
START: "C:\Test.BAT","",0,"",0,1,0,""
FOCUS: "Message",0,0,0
SEND: 1,"50",!!IMAGENUM!!
SEND: 1,"50",~
PAUSE: 5 seconds
HOLDDOWNKEY: 0,0,1,0,0
SEND: 1,"50",T
SEND: 1,"50",H
SEND: 1,"50",H
RELEASEKEY: 0,0,1,0,0
HOLDDOWNKEY: 0,0,1,0,0
SEND: 1,"50",A
RELEASEKEY: 0,0,1,0,0
SEND: 1,"50",IMAGE NUMBER : !!IMAGENUM!!
SEND: 1,"50",{TAB}
SEND: 1,"50",=A9Copyright. All Rights Reserved. WDC. LA086134. 2001
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",5
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",h:\ben\test\HtmlMap!!IMAGENUM!!.html
SEND: 1,"50",{TAB}
SEND: 1,"50",t
SEND: 1,"50",s
SEND: 1,"50",e
SEND: 1,"50",n
SEND: 1,"50",m
SEND: 1,"50",{TAB}
SEND: 1,"50",m
SEND: 1,"50",O
SEND: 1,"50",O
PAUSE: 8 seconds
FOCUS: "HTML Image Map created in:",0,0,0
SEND: 1,"50",{TAB}
SEND: 1,"50",~
BEGINLOOP: ""
START: "C:\Test.BAT","",0,"",0,1,0,""
PAUSE: 2 seconds
FOCUS: "Ignore...",0,0,0
VARFUNCS: 0,"IMAGENUM","1","IMAGENUM"
SEND: 1,"50",!!IMAGENUM!!
SEND: 1,"50",~
PAUSE: 8 seconds
HOLDDOWNKEY: 0,0,1,0,0
SEND: 1,"50",T
SEND: 1,"50",H
SEND: 1,"50",H
RELEASEKEY: 0,0,1,0,0
HOLDDOWNKEY: 0,0,1,0,0
SEND: 1,"50",A
RELEASEKEY: 0,0,1,0,0
SEND: 1,"50",IMAGE NUMBER : !!IMAGENUM!!
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",5
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",h:\ben\test\HtmlMap!!IMAGENUM!!.html
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",{TAB}
SEND: 1,"50",n
SEND: 1,"50",m
SEND: 1,"50",{TAB}
SEND: 1,"50",m
SEND: 1,"50",O
SEND: 1,"50",O
PAUSE: 8 seconds
FOCUS: "HTML Image Map created in:",0,0,0
SEND: 1,"50",{TAB}
SEND: 1,"50",~
ENDLOOP: 250

------_=_NextPart_002_01C166F8.6CB0C050



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to