Revision 2700
Added by harris about 19 years ago
src/spatial/rendering/mapbuilder/available_layers.html | ||
---|---|---|
34 | 34 |
<!-- Layout mapbuilder widgets and HTML --> |
35 | 35 |
<h1>Metacat Spatial Option Demo </h1> |
36 | 36 |
|
37 |
<table border="2">
|
|
37 |
<table border="0">
|
|
38 | 38 |
<tr> |
39 | 39 |
<td valign="top"> |
40 |
<table border="1">
|
|
40 |
<table border="0">
|
|
41 | 41 |
<tr> <td id="locatorMap"/> </tr> |
42 | 42 |
<tr> <td id="mainButtonBar" /> </tr> |
43 | 43 |
<tr> <td id="legend" valign="top"/> </tr> |
... | ... | |
45 | 45 |
</table> |
46 | 46 |
</td> |
47 | 47 |
<td rowspan="2" valign="top" /> |
48 |
<table border="1">
|
|
48 |
<table border="0">
|
|
49 | 49 |
<tr> <!-- |
50 | 50 |
<td align="left" id="mainButtonBar" /> |
51 | 51 |
<td align="right" id="cursorTrack" /> |
... | ... | |
55 | 55 |
</tr> |
56 | 56 |
<tr align="right"> |
57 | 57 |
|
58 |
<table border="1">
|
|
58 |
<table border="0">
|
|
59 | 59 |
<tr> |
60 | 60 |
<td align="left" id="mapScaleText"/> |
61 | 61 |
<td colspan="1"></td> |
62 | 62 |
<td align="right" id="cursorTrack" /> |
63 | 63 |
</tr> |
64 | 64 |
</table> |
65 |
<!-- description and use documentation --> |
|
66 |
<table width="600"> |
|
67 |
<tr><td> This is a demonstration of the Metacat Spatial Option (MSO) |
|
68 |
that shows the ability to select Ecological Markup Language (EML) |
|
69 |
documents stored in the Metacat server: (metacat.nceas.ucsb.edu). |
|
70 |
Additionally, the user may choose to select information for other layers - for |
|
71 |
a qualitative sense of where (spatially) the EML documents exist. |
|
72 |
<br><br> |
|
73 |
1] to select information for layers: zoom in, press the blue info 'i' button, press the 'circled i' (next to desired layer) and point at the feature. |
|
74 |
<br><br> |
|
75 |
* Make sure to position the mouse directly over the feature while selecting it. |
|
76 |
<br><br> |
|
77 |
* EML documents are represented as red dots -- the center of the dot is the geometric center of that EML data package. (a dataset comprising a global |
|
78 |
study will lie at the intersection of the equator and the prime meridian). |
|
79 |
|
|
80 |
</td> </tr> </table> |
|
65 | 81 |
</tr> |
66 | 82 |
|
67 | 83 |
|
src/spatial/rendering/mapbuilder/lib/widget/GetFeatureInfo.js | ||
---|---|---|
70 | 70 |
//alert(selectedLayer); |
71 | 71 |
url=urlNode.documentElement.firstChild.nodeValue; |
72 | 72 |
//alert("selected GetFeatureInfo .. : \n url="+url); |
73 |
alert("selected GetFeatureInfo .. : \n queryLayer="+selectedLayer); |
|
73 |
//alert("selected GetFeatureInfo .. : \n queryLayer="+selectedLayer);
|
|
74 | 74 |
|
75 | 75 |
if (objRef.infoFormat=="text/html"){ |
76 | 76 |
window.open(url,'queryWin','height=600,width=800,scrollbars=yes'); |
src/spatial/rendering/mapbuilder/index.html | ||
---|---|---|
34 | 34 |
<!-- Layout mapbuilder widgets and HTML --> |
35 | 35 |
<h1>Metacat Spatial Option Demo </h1> |
36 | 36 |
|
37 |
<table border="2">
|
|
37 |
<table width="100" border="0">
|
|
38 | 38 |
<tr> |
39 | 39 |
<td valign="top"> |
40 |
<table border="1">
|
|
40 |
<table border="0">
|
|
41 | 41 |
<tr> <td id="locatorMap"/> </tr> |
42 | 42 |
<tr> <td id="mainButtonBar" /> </tr> |
43 | 43 |
<tr> <td id="legend" valign="top"/> </tr> |
44 | 44 |
<tr> <td colspan="3" id="featureList" /> </tr> |
45 |
<tr><td> |
|
46 |
<br> |
|
47 |
<br> |
|
48 |
Upload a Spatial EML Document: |
|
49 |
|
|
50 |
|
|
51 |
<form action="http://sulphur.homelinux.com:7000/cgs/metacat_spatialresolver.jsp" enctype="multipart/form-data" method="post"> |
|
52 |
<input name="file" type="file"> |
|
53 |
<input type="submit" value="upload EML"> |
|
54 |
</form> |
|
55 |
<br> |
|
56 |
* A Spatial EML Document describes and includes a spatial dataset (eg, a .shp or .dxf file). The |
|
57 |
EML must reference the spatial dataset as a file(s). The spatial data file(s) and the EML that references it must be combined in |
|
58 |
a standard Zip file for uploading. |
|
59 |
</td></tr> |
|
45 | 60 |
</table> |
46 | 61 |
</td> |
47 | 62 |
<td rowspan="2" valign="top" /> |
48 |
<table border="1">
|
|
63 |
<table border="0">
|
|
49 | 64 |
<tr> <!-- |
50 | 65 |
<td align="left" id="mainButtonBar" /> |
51 | 66 |
<td align="right" id="cursorTrack" /> |
... | ... | |
55 | 70 |
</tr> |
56 | 71 |
<tr align="right"> |
57 | 72 |
|
58 |
<table border="1">
|
|
73 |
<table border="0" width="600">
|
|
59 | 74 |
<tr> |
60 |
<td align="left" id="mapScaleText"/>
|
|
75 |
<td align="center" id="mapScaleText"/>
|
|
61 | 76 |
<td colspan="1"></td> |
62 |
<td align="right" id="cursorTrack" />
|
|
77 |
<td align="center" id="cursorTrack" />
|
|
63 | 78 |
</tr> |
64 | 79 |
</table> |
80 |
<!-- description and use documentation --> |
|
81 |
<table width="600"> |
|
82 |
<tr><td> This is a demonstration of the Metacat Spatial Option (MSO) |
|
83 |
that shows the ability to select Ecological Markup Language (EML) |
|
84 |
documents stored in the Metacat server: (metacat.nceas.ucsb.edu). |
|
85 |
Additionally, the user may choose to select places in the USA - for |
|
86 |
a qualitative sense of where (spatially) the EML documents exist. |
|
87 |
<br><br> |
|
88 |
1] to select the EML Document: zoom in, press the blue info 'i' button and point to a red dot. |
|
89 |
<br><br> |
|
90 |
2] to select a known place: zoom in, press the blue info 'i' button, press the 'circled i' (next to the USA known places layer selector) and then point to a black dot. |
|
91 |
<br><br><p> |
|
92 |
* Make sure to position the mouse directly over the feature while selecting it. |
|
93 |
<br> |
|
94 |
* Any of these features can be made selectable by a simple configuration change see: <a href="available_layers.html">selectable layers</a> |
|
95 |
<br> |
|
96 |
* EML documents are represented as red dots -- the center of the dot is the geometric center of that EML data package. (a dataset comprising a global |
|
97 |
study will lie at the intersection of the equator and the prime meridian). |
|
98 |
|
|
99 |
</td> </tr> </table> |
|
100 |
|
|
65 | 101 |
</tr> |
66 | 102 |
|
67 | 103 |
|
src/spatial/rendering/mapbuilder/metacat.xml | ||
---|---|---|
30 | 30 |
<Format current="1">image/gif</Format> |
31 | 31 |
</FormatList> |
32 | 32 |
</Layer> |
33 |
|
|
33 | 34 |
<Layer queryable="0" hidden="0"> |
34 | 35 |
<Server service="wms" version="1.1.0" title="wms"> |
35 | 36 |
<OnlineResource xlink:type="simple" xlink:href="http://atlas.gc.ca/cgi-bin/mapserv?map=/home/mapdata/aoc_v3/english/pb_world.map"/> |
... | ... | |
43 | 44 |
</FormatList> |
44 | 45 |
</Layer> |
45 | 46 |
|
46 |
<Layer queryable="1" hidden="0"> |
|
47 |
<Server service="OGC:WMS" version="1.1.1" |
|
48 |
title="metacat document data"> |
|
49 |
<OnlineResource xlink:type="simple" |
|
50 |
xlink:href="../../../../wms" /> |
|
51 |
</Server> |
|
52 |
<Name>topp:metacat_testdata</Name> |
|
53 |
<Title>metacat documents</Title> |
|
54 |
<SRS>EPSG:4326</SRS> |
|
55 |
<FormatList> |
|
56 |
<Format current="1">image/png</Format> |
|
57 |
</FormatList> |
|
58 |
|
|
59 |
|
|
60 |
<!-- |
|
61 |
|
|
62 |
<StyleList> |
|
63 |
<Style current="1"> |
|
64 |
<Name>0xb8d8f6</Name> |
|
65 |
<Title>0xb8d8f6</Title> |
|
66 |
<LegendURL width="16" height="16" format="image/gif"> |
|
67 |
<OnlineResource xlink:type="simple" xlink:href="../../../../wms?VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=topp:metacat_testdata&SPATIAL_TYPE=POLYGON&STYLE=0xb8d8f6&FORMAT=image%2Fgif&SIMPLE=TRUE"/> |
|
68 |
|
|
69 |
</LegendURL> |
|
70 |
</Style> |
|
71 |
</StyleList> |
|
72 |
--> |
|
73 |
|
|
74 |
</Layer> |
|
75 |
<!-- <Layer queryable="1" hidden="0"> |
|
76 |
<Server service="OGC:WMS" version="1.1.1" |
|
77 |
title="terraserver"> |
|
78 |
<OnlineResource xlink:type="simple" |
|
79 |
xlink:href="http://terraserver.microsoft.com/OgcWms.aspx" /> |
|
80 |
</Server> |
|
81 |
<Name>DOQ</Name> |
|
82 |
<Title>terraserver</Title> |
|
83 |
<SRS>EPSG:4326</SRS> |
|
84 |
<FormatList> |
|
85 |
<Format current="1">image/jpeg</Format> |
|
86 |
</FormatList> |
|
87 |
</Layer> --> |
|
88 | 47 |
<Layer queryable="0" hidden="0"> |
89 | 48 |
<Server service="wms" version="1.1.0" title="wms"> |
90 | 49 |
<OnlineResource xlink:type="simple" |
... | ... | |
97 | 56 |
<Format current="1">image/gif</Format> |
98 | 57 |
</FormatList> |
99 | 58 |
</Layer> |
59 |
|
|
100 | 60 |
<Layer queryable="0" hidden="0"> |
101 | 61 |
<Server service="wms" version="1.1.0" title="wms"> |
102 | 62 |
<OnlineResource xlink:type="simple" |
... | ... | |
109 | 69 |
<Format current="1">image/gif</Format> |
110 | 70 |
</FormatList> |
111 | 71 |
</Layer> |
72 |
|
|
112 | 73 |
<Layer queryable="0" hidden="0"> |
113 | 74 |
<Server service="wms" version="1.1.0" title="wms"> |
114 | 75 |
<OnlineResource xlink:type="simple" |
... | ... | |
121 | 82 |
<Format current="1">image/gif</Format> |
122 | 83 |
</FormatList> |
123 | 84 |
</Layer> |
85 |
|
|
124 | 86 |
<Layer queryable="0" hidden="0"> |
125 | 87 |
<Server service="wms" version="1.1.0" title="wms"> |
126 | 88 |
<OnlineResource xlink:type="simple" |
... | ... | |
137 | 99 |
|
138 | 100 |
<Layer queryable="1" hidden="0"> |
139 | 101 |
<Server service="OGC:WMS" version="1.1.1" |
140 |
title="esri places">
|
|
102 |
title="USA known places">
|
|
141 | 103 |
<OnlineResource xlink:type="simple" xlink:href="http://sulphur.homelinux.com:9999/geoserver/wms" /> |
142 | 104 |
</Server> |
143 | 105 |
<Name>topp:places</Name> |
144 |
<Title>esri places</Title>
|
|
106 |
<Title>USA known places</Title>
|
|
145 | 107 |
<SRS>EPSG:4326</SRS> |
146 | 108 |
<FormatList> |
147 | 109 |
<Format current="1">image/png</Format> |
148 | 110 |
</FormatList> |
149 | 111 |
</Layer> |
112 |
|
|
113 |
<Layer queryable="1" hidden="0"> |
|
114 |
<Server service="OGC:WMS" version="1.1.1" |
|
115 |
title="metacat document data"> |
|
116 |
<OnlineResource xlink:type="simple" |
|
117 |
xlink:href="../../../../wms" /> |
|
118 |
</Server> |
|
119 |
<Name>topp:metacat_testdata</Name> |
|
120 |
<Title>metacat documents</Title> |
|
121 |
<SRS>EPSG:4326</SRS> |
|
122 |
<FormatList> |
|
123 |
<Format current="1">image/png</Format> |
|
124 |
</FormatList> |
|
125 |
</Layer> |
|
126 |
|
|
150 | 127 |
</LayerList> |
151 | 128 |
</ViewContext> |
Also available in: Unified diff
Added some documentation and did a little cleanup.