Building dynamic maps using Perl or PHP

Tom Poindexter tpoindex at nyx.net
Tue Nov 14 17:24:01 EST 2000


On Tue, Nov 14, 2000 at 03:38:34PM -0500, Daniel Morissette wrote:
> Stephan Dunning wrote:
> > 
> > My thinking is that I should be able to connect to my database using either
> > Perl or PHP, then pull in my data and join it to the chosen shapefile .dbf,
> > build my mapfile, and display the map for the user.  Does this sound
> > reasonable?  
> > Which is the better laguage to use: Perl or PHP (or another)?


I've been working on Tcl interfaces for mapscript, based on prior work
by Peter deVoil.  The primary sample application is a mapfile viewer (again,
mostly Peter's work), which runs standalone, not using a web server or 
the mapscript cgi program to generate images.  

One problem with the mapscript interface is not being able to effectively
clear the label cache, which is certainly a problem when trying to generate
more than one image at a time.  I've opened up a little more of map.h and 
mapshape.h for Swig, and have re-implemented (now as %addmethods) a mapscript
function to free the label cache.

I've submitted patches to Stephen based on the CVS snapshot; hopefully they'll
make it into 3.3.012 RSN.



-- 
Tom Poindexter
tpoindex at nyx.net
http://www.nyx.net/~tpoindex/



More information about the mapserver-users mailing list