index.php
2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<HTML>
<HEAD>
<TITLE>PHP WMS Client</TITLE>
<LINK REL='stylesheet' TYPE='text/css' HREF='wms_style.css'>
</HEAD>
<BODY BGCOLOR=#FFFFFF>
<H1>PHP WMS Client</H1>
<P>This client uses the XML capabilities of PHP and standard web application
programming techniques to present an HTML/JavaScript view of
<A HREF='http://www.opengis.org'>OpenGIS</A> Web Map Server (WMS) internet
mapping servers.</P>
<H2>Test Servers</H2>
<P>Our goal is to "do the right thing" with all these servers. It will be
a long hard road.</P>
<?
$servers = array(
array("Refractions USA","http://office.refractions.net/ms/cgi-bin/mapserv?map=/home/httpd/mapserver/html/usa/usa.map&","Good"),
array("Refractions PostGIS","http://mapserver.refractions.net/cgi-bin/mapserv?map=/home/www/mapserv/maps/postgis.map&","OK"),
array("CubeWerx World","http://www.cubewerx.com/demo/cubeserv/cubeserv.cgi?","Bad"),
array("DMSolutions GMAP","http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?","Good")
);
print "<TABLE WIDTH=100% BORDER=1 CELLPADDING=5>";
print "<TR BGCOLOR=#EEEEEE><TH>WMS Site</TH><TH>Online Resource URL</TH><TH>Status</TH></TR>";
foreach ( $servers as $s ) {
$hurl = urlencode($s[1]);
print "<TR><TH ALIGN=CENTER>$s[0]</TH><TD><A HREF='wms.php?onlineresource=$hurl'>$s[1]</A></TD><TD>$s[2]</TD></TR>";
}
?>
<FORM ACTION='wms.php' METHOD='get'>
<TR>
<TH ALIGN=RIGHT>Enter a Server</TH>
<TD COLSPAN=2><INPUT NAME='onlineresource' TYPE='text' SIZE='50'>
<INPUT TYPE='submit' VALUE=' Try Server '></TD>
</TR>
</FORM>
</TABLE>
<H2>To Do List</H2>
<UL>
<LI>Properly handle heirarchical <Layer> objects and provide a
tree-based layer list.
<LI>Enable and disable layer entries appropriately based on the
<ScaleHint> provided for <Layer>s.
<LI>Continue to test against new and unknown WMS servers to obtain maximum
compatibility.
<LI>Aesthetic improvements to the interface. Graphical mode selectors,
rollovers, highlighting. "Themability" of the interface.
</UL>
</BODY>
</HTML>