I've written an HTMLMAP driver plus a few small shell scripts that might be
useful for others.
The HTLMAP driver creates HTML image maps from area vectors (d.area). This
lets your create images with clickable areas to other URL's. Use it in
step with the CELL driver or paint output to create images.
I've compiled the driver under GRASS 4.3. It might work with 5.0bx, but
I haven't tried yet.
Feedback welcome. If it works for you as well, let me know and I'll submit
it to Marcus for inclusion into the GRASS distribution.
The shell scripts include s.to.poly.sh (creates coarse-grained area vectors
around site data), r.demdma2ll.sh (easy import of DMA-formatted DEM files into
a lat-lon region), some region 'stack' manipulations, et.al.
Code is at
http://www.nyx.net/~tpoindex/grass-stuff/index.html
HTMLMAP sample at
http://www.nyx.net/~tpoindex/grass-stuff/htmlmap.html
(be sure to take a look at the html source. Netscape or IE w/
Javascript enabled required for the demo.)
and of course, it's all under GPL.
-Tom
--
Tom Poindexter
tpoindex@nyx.net
http://www.nyx.net/~tpoindex/
That's sounds useful. It'd be pretty great to put together a module than
can create Scalable Vector Graphics (SVG) files. I've heard of at least
one Java Applet/Plugin that can read/render these in a browser. The SVG
standard can also handle bitmap graphics with the vector layers.
Definite potential here....
--
+----------------------------------------------------+
| Eric G. Miller egm2@jps.net |
| GnuPG public key: http://www.jps.net/egm2/gpg.asc |
+----------------------------------------------------+
On Tue, Mar 14, 2000 at 08:04:46PM -0700, Tom Poindexter wrote:
I've written an HTMLMAP driver plus a few small shell scripts that might be
useful for others.
The HTLMAP driver creates HTML image maps from area vectors (d.area). This
lets your create images with clickable areas to other URL's. Use it in
step with the CELL driver or paint output to create images.
Tom,
your driver is pretty cool! It compiles in GRASS 5 beta7/CVS with
one warning only:
gcc -g -O2 -I/home/neteler/src5/cvs/grass5.0beta/src/include -c connect.c
connect.c: In function heck_connection':
connect.c:99: warning: passing arg 2 of ignal' from incompatible pointer
type
connect.c: At top level:
connect.c:118: warning: imeout' was declared xtern' and later tatic'
But is is working pretty well! If you like, we can add it
into GRASS-CVS.
Find attached an update to add the etc/monitorcap entry
automatically. Now you just compile
src/display/devices/HTMLMAP
and you are ready to use...
Many thanks for writing the new driver!
Markus Neteler
(attachments)
HTMLMAP_update.tar.gz (518 Bytes)
Tom,
It works great. Got it running under both 5.0 and 4.3! Many thanks
to you! I'm adding it to the Solaris binary packages and will get them
posted later today.
Thanks again.
Bruce
(Markus, shoot me the Linux binaries with this when you get a chance)
--
Bruce Byars
GRASS Dev. Team
CAGSR- Baylor Univ.
Tom Poindexter wrote:
I've written an HTMLMAP driver plus a few small shell scripts that might be
useful for others.
The HTLMAP driver creates HTML image maps from area vectors (d.area). This
lets your create images with clickable areas to other URL's. Use it in
step with the CELL driver or paint output to create images.
I've compiled the driver under GRASS 4.3. It might work with 5.0bx, but
I haven't tried yet.
Feedback welcome. If it works for you as well, let me know and I'll submit
it to Marcus for inclusion into the GRASS distribution.
The shell scripts include s.to.poly.sh (creates coarse-grained area vectors
around site data), r.demdma2ll.sh (easy import of DMA-formatted DEM files into
a lat-lon region), some region 'stack' manipulations, et.al.
Code is at
http://www.nyx.net/~tpoindex/grass-stuff/index.html
HTMLMAP sample at
http://www.nyx.net/~tpoindex/grass-stuff/htmlmap.html
(be sure to take a look at the html source. Netscape or IE w/
Javascript enabled required for the demo.)
and of course, it's all under GPL.
-Tom
--
Tom Poindexter
tpoindex@nyx.net
http://www.nyx.net/~tpoindex/
On Wed, Mar 15, 2000 at 11:42:28AM +0000, Markus Neteler wrote:
On Tue, Mar 14, 2000 at 08:04:46PM -0700, Tom Poindexter wrote:
> I've written an HTMLMAP driver plus a few small shell scripts that might be
> useful for others.
But is is working pretty well! If you like, we can add it
into GRASS-CVS.
Thanks for the feedback. Yes, please do include it in CVS.
--
Tom Poindexter
tpoindex@nyx.net
http://www.nyx.net/~tpoindex/
On Wed, Mar 15, 2000 at 08:23:13AM -0700, Tom Poindexter wrote:
I've updated the source on my web page to include Markus' change to the
Gmakefile that adds the HTMLMAP driver to the monitorcap file. I added code
to check if the driver is already defined before adding it.
Also, a minor fix in connect.c to get rid of one warning. I just moved the
'static timeout()' function at the top of the file.
Gmakefile:
$(GISBASE)/driver/HTMLMAP: HTMLMAP
mv HTMLMAP $@
# mv $(GISBASE)/etc/monitorcap $(GISBASE)/etc/monitorcap.tmp
@if egrep '^HTMLMAP' $(ETC)/monitorcap >/dev/null 2>&1 ; then \
echo HTMLMAP already defined in $(ETC)/monitorcap ; \
else \
echo adding HTMLMAP driver to $(ETC)/monitorcap ; \
cat moncap.entry | sed -e s:BASEDIR:$(GISBASE):g >>$(ETC)/monitorcap ; \
fi
--
Tom Poindexter
tpoindex@nyx.net
http://www.nyx.net/~tpoindex/
Tom,
It is in the 4.3 src distribution now. We're making a couple of other quick fixes
and then it's posted on the ftp server. Most likely tomorrow.
Thanks!
Bruce
Tom Poindexter wrote:
On Wed, Mar 15, 2000 at 08:23:13AM -0700, Tom Poindexter wrote:
I've updated the source on my web page to include Markus' change to the
Gmakefile that adds the HTMLMAP driver to the monitorcap file. I added code
to check if the driver is already defined before adding it.
Also, a minor fix in connect.c to get rid of one warning. I just moved the
'static timeout()' function at the top of the file.
Gmakefile:
$(GISBASE)/driver/HTMLMAP: HTMLMAP
mv HTMLMAP $@
# mv $(GISBASE)/etc/monitorcap $(GISBASE)/etc/monitorcap.tmp
@if egrep '^HTMLMAP' $(ETC)/monitorcap >/dev/null 2>&1 ; then \
echo HTMLMAP already defined in $(ETC)/monitorcap ; \
else \
echo adding HTMLMAP driver to $(ETC)/monitorcap ; \
cat moncap.entry | sed -e s:BASEDIR:$(GISBASE):g >>$(ETC)/monitorcap ; \
fi
--
Tom Poindexter
tpoindex@nyx.net
http://www.nyx.net/~tpoindex/
On Wed, Mar 15, 2000 at 08:23:13AM -0700, Tom Poindexter wrote:
On Wed, Mar 15, 2000 at 11:42:28AM +0000, Markus Neteler wrote:
> On Tue, Mar 14, 2000 at 08:04:46PM -0700, Tom Poindexter wrote:
> > I've written an HTMLMAP driver plus a few small shell scripts that might be
> > useful for others.
> But is is working pretty well! If you like, we can add it
> into GRASS-CVS.
Thanks for the feedback. Yes, please do include it in CVS.
Hi Tom, hi all,
thanks for the code! I will upload to CVS now.
Concerning the 4.2.1/4.3 discussion:
- 4.3 is an official release
- we upgrade 4.3 today with Tom's HTMLMAP and other
fixes (a few)
- GRASS 4.3 was developed from 4.2.1 with a few changes and
the change to GPL
- we will create the missing Linux binaries
-> You can choose to use either
- GRASS 5 (partly stable, but new features)
- GRASS 4.3 (stable)
Hope this helps,
Markus Neteler