[Mapserver-dev] mapserver map file works with html templates only
schut at sarvision.com
Fri May 2 09:30:07 EDT 2003
your question had been better posted on the mapserver-users list
(mapserver-users at lists.gis.umn.edu), in stead of on the mapserver-dev
(developers) list, which is about coding the mapserver program, bugs,
enhancements, etc., not about using it.
Secondly, the answer on your question can be very short: this has already been
implemented. Mapserver is more flexible then you think, and can be used as a
cgi application with templates, or with html forms, or in combination with
php (using the php_mapscript extension for php) or perl or even other
scripting languages. You should really have a good look at the documentation
on the mapserver site, it is too much for email :-)
A good start would be the 'php_mapscript by example howto':
http://mapserver.gis.umn.edu/doc36/phpmapscript-byexample-howto.html . But
have a good look at the other docs as well, and at the wiki pages. There are
lots of examples of what you are asking for.
On Friday 02 May 2003 15:11, Joseph Rodrigues wrote:
> Hi All,
> I am a user at this time and is building an application using Mapserver.
> The problem I am facing has to do with the fact that Mapserver seems to
> work with
> HTML templates only in the mapfile (demo.map) for example.
> This creates a problem when passing parameters to scripting languages
> such as PHP.
> Since Mapserver uses a few html pages to display its results example
> demo.html, header_demo.html and footer_demo.html etc, one cannot pass
> parameters directly to a PHP script. This appears to be due to the fact
> that the results you see are really 3 html pages one of which is the
> Template html file.
> What I want to do is have a user click on my map and sent the value of
> the click to a script eg.php to do some processing. But sine Mapserver
> only interacts with html, this is acheived indirectly by calling another
> page next.
> Hope this is not too confusing but my point is: HOW DOES ONE GET
> MAPSERVER TO USE PHP OR OTHER SCRIPT FILES AS HEADER.PHP, FOOTER.PHP,
> TEMPLATE.PHP INSTEAD OF HEADER.HTML, TEMPLATE.HTML ETC. ???
> If this feature could be done it would make interacting with Mapserver
> more friendly.
> Thank you
> Mapserver-dev mailing list
> Mapserver-dev at lists.gis.umn.edu
Vincent Schut (schut at sarvision.com)
Wageningen, The Netherlands
More information about the mapserver-dev