Revision 2678
Added by harris about 19 years ago
src/spatial/geoserver/point.sld | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|
3 |
<!-- a named layer is the basic building block of an sld document --> |
|
4 |
<NamedLayer><Name>normal</Name> |
|
5 |
<UserStyle> |
|
6 |
<!-- again they have names, titles and abstracts --> |
|
7 |
|
|
8 |
<Title>A boring default style</Title> |
|
9 |
<Abstract>A sample style that just prints out a black line for everything</Abstract> |
|
10 |
<!-- FeatureTypeStyles describe how to render different features --> |
|
11 |
<!-- a feature type for polygons --> |
|
12 |
<FeatureTypeStyle> |
|
13 |
<FeatureTypeName>Feature</FeatureTypeName> |
|
14 |
<Rule> |
|
15 |
<!-- like a linesymbolizer but with a fill too --> |
|
16 |
<PointSymbolizer> |
|
17 |
<Graphic> |
|
18 |
<Mark> |
|
19 |
<WellKnownName>circle</WellKnownName> |
|
20 |
<Fill> |
|
21 |
<CssParameter name="fill">#ff0000</CssParameter> |
|
22 |
</Fill></Mark><Size>7.0</Size></Graphic> |
|
23 |
</PointSymbolizer> |
|
24 |
</Rule> |
|
25 |
</FeatureTypeStyle> |
|
26 |
</UserStyle> |
|
27 |
</NamedLayer> |
|
28 |
</StyledLayerDescriptor> |
|
29 |
|
|
0 | 30 |
src/spatial/mapserver/kruger5.map | ||
---|---|---|
1 |
# |
|
2 |
# Start of map file |
|
3 |
# |
|
4 |
MAP |
|
5 |
IMAGETYPE PNG24 |
|
6 |
NAME KRUGER |
|
7 |
STATUS ON |
|
8 |
SIZE 400 400 |
|
9 |
EXTENT 30.96250 -25.7 32.010399 -22 |
|
10 |
UNITS dd |
|
11 |
SHAPEPATH "data" |
|
12 |
IMAGECOLOR 255 255 255 |
|
13 |
SYMBOLSET "symbols/symbols35.sym" |
|
14 |
|
|
15 |
PROJECTION |
|
16 |
"proj=latlong" |
|
17 |
END |
|
18 |
|
|
19 |
|
|
20 |
WEB |
|
21 |
HEADER templates/header.html |
|
22 |
FOOTER templates/footer.html |
|
23 |
# MINSCALE 50000 |
|
24 |
# MAXSCALE 2550000 |
|
25 |
TEMPLATE 'kruger5.html' |
|
26 |
IMAGEPATH '/var/www/html/mapserver/kruger/data/tmp/' |
|
27 |
IMAGEURL '/mapserver/kruger/data/tmp/' |
|
28 |
END |
|
29 |
|
|
30 |
LEGEND |
|
31 |
KEYSIZE 12 12 |
|
32 |
LABEL |
|
33 |
TYPE BITMAP |
|
34 |
SIZE MEDIUM |
|
35 |
COLOR 0 0 89 |
|
36 |
END |
|
37 |
STATUS ON |
|
38 |
END |
|
39 |
|
|
40 |
# |
|
41 |
# Start Scalebar code |
|
42 |
SCALEBAR |
|
43 |
STATUS ON |
|
44 |
STYLE 1 |
|
45 |
INTERVALS 4 |
|
46 |
SIZE 150 2 |
|
47 |
COLOR 0 0 0 |
|
48 |
OUTLINECOLOR 0 0 0 |
|
49 |
UNITS kilometers |
|
50 |
LABEL |
|
51 |
COLOR 0 0 0 |
|
52 |
SIZE small |
|
53 |
END |
|
54 |
END |
|
55 |
# Start of reference map |
|
56 |
# |
|
57 |
REFERENCE |
|
58 |
IMAGE 'data/raster/knp_bndry_img1.png' |
|
59 |
SIZE 170 160 |
|
60 |
EXTENT 30.96250 -25.7 32.010399 -22 |
|
61 |
STATUS ON |
|
62 |
MINBOXSIZE 10 |
|
63 |
MAXBOXSIZE 150 |
|
64 |
COLOR -1 -1 -1 |
|
65 |
OUTLINECOLOR 128 0 0 |
|
66 |
MARKERSIZE 8 |
|
67 |
MARKER 'star' |
|
68 |
END |
|
69 |
|
|
70 |
#-- Begin layer defs.--------------------- |
|
71 |
LAYER |
|
72 |
PROJECTION |
|
73 |
"proj=utm" |
|
74 |
"zone=36" |
|
75 |
"south" |
|
76 |
"ellps=WGS84" |
|
77 |
"datum=WGS84" |
|
78 |
"units=m" |
|
79 |
"no_defs" |
|
80 |
# |
|
81 |
# OR: |
|
82 |
# |
|
83 |
# "init=epsg:32736" |
|
84 |
END |
|
85 |
NAME BNDRY_KRUGERNP |
|
86 |
TYPE POLYGON |
|
87 |
STATUS DEFAULT |
|
88 |
TRANSPARENCY 0 |
|
89 |
DATA BNDRY_KRUGERNP |
|
90 |
CLASS |
|
91 |
NAME 'Kruger Boundary' |
|
92 |
OUTLINECOLOR 128 128 128 |
|
93 |
COLOR 225 225 185 |
|
94 |
END #-- End class def. |
|
95 |
END #--End Layer def |
|
96 |
|
|
97 |
LAYER |
|
98 |
PROJECTION |
|
99 |
"proj=utm" |
|
100 |
"zone=36" |
|
101 |
"south" |
|
102 |
"ellps=WGS84" |
|
103 |
"datum=WGS84" |
|
104 |
"units=m" |
|
105 |
"no_defs" |
|
106 |
# |
|
107 |
# OR: |
|
108 |
# |
|
109 |
# "init=epsg:32736" |
|
110 |
END |
|
111 |
NAME SOILS_KNPNORTH |
|
112 |
TYPE POLYGON |
|
113 |
STATUS OFF |
|
114 |
DATA SOILS_KNPNORTH |
|
115 |
CLASSITEM "SOIL_ID" |
|
116 |
TEMPLATE "templates/soil.html" |
|
117 |
CLASS |
|
118 |
NAME 'Soil A1' |
|
119 |
EXPRESSION 'A1' |
|
120 |
COLOR 0 0 0 |
|
121 |
END |
|
122 |
CLASS |
|
123 |
NAME 'Other Soils' |
|
124 |
COLOR 225 165 0 |
|
125 |
END #-- End class def. |
|
126 |
HEADER "templates/soil_header.html" |
|
127 |
FOOTER "templates/soil_footer.html" |
|
128 |
TOLERANCE 10 |
|
129 |
DUMP TRUE # allow GML export |
|
130 |
END #--End Layer def. |
|
131 |
|
|
132 |
LAYER |
|
133 |
PROJECTION |
|
134 |
"proj=latlong" |
|
135 |
END |
|
136 |
NAME metacat_points_geocoord |
|
137 |
TYPE POINT |
|
138 |
STATUS DEFAULT |
|
139 |
DATA metacat_points_geocoord |
|
140 |
TEMPLATE "templates/metacat.html" |
|
141 |
CLASS |
|
142 |
NAME 'Datapackage Locations' |
|
143 |
STYLE |
|
144 |
COLOR 255 0 0 |
|
145 |
SYMBOL 'circle' |
|
146 |
SIZE 7 |
|
147 |
END # -- End Style |
|
148 |
END #-- End class def. |
|
149 |
HEADER "templates/metacat_header.html" |
|
150 |
FOOTER "templates/metacat_footer.html" |
|
151 |
TOLERANCEUNITS pixels |
|
152 |
TOLERANCE 30 |
|
153 |
DUMP TRUE # allow GML export |
|
154 |
END #--End Layer def. |
|
155 |
|
|
156 |
LAYER |
|
157 |
PROJECTION |
|
158 |
"init=epsg:32736" |
|
159 |
END |
|
160 |
NAME WATER_BOREHOLES |
|
161 |
TYPE POINT |
|
162 |
STATUS OFF |
|
163 |
TEMPLATE "templates/water.html" |
|
164 |
DATA WATER_BOREHOLES |
|
165 |
CLASS |
|
166 |
NAME 'Water Boreholes' |
|
167 |
STYLE |
|
168 |
COLOR 0 0 255 |
|
169 |
SYMBOL 'circle' |
|
170 |
SIZE 7 |
|
171 |
END # -- End Style |
|
172 |
END #-- End class def. |
|
173 |
HEADER "templates/water_header.html" |
|
174 |
FOOTER "templates/water_footer.html" |
|
175 |
TOLERANCEUNITS pixels |
|
176 |
TOLERANCE 20 |
|
177 |
DUMP TRUE |
|
178 |
END #--End Layer def. |
|
179 |
|
|
180 |
END #-- End Map File |
|
0 | 181 |
src/spatial/metacat_spatialresolver.jsp | ||
---|---|---|
1 |
<!-- |
|
2 |
* '$RCSfile$' |
|
3 |
* '$Author$' |
|
4 |
* '$Date$' |
|
5 |
* '$Revision$' |
|
6 |
* |
|
7 |
* |
|
8 |
* This program is free software; you can redistribute it and/or modify |
|
9 |
* it under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation; either version 2 of the License, or |
|
11 |
* (at your option) any later version. |
|
12 |
* |
|
13 |
* This program is distributed in the hope that it will be useful, |
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
* GNU General Public License for more details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License |
|
19 |
* along with this program; if not, write to the Free Software |
|
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
--> |
|
22 |
|
|
23 |
<%@ page import="org.apache.tools.mail.MailMessage" %> |
|
24 |
<%@ page import="java.io.PrintStream" %> |
|
25 |
<%@ page import="java.io.BufferedReader" %> |
|
26 |
<%@ page import="java.util.StringTokenizer" %> |
|
27 |
<%@ page import="java.io.InputStreamReader" %> |
|
28 |
<%@ page import="java.net.URLConnection" %> |
|
29 |
<%@ page import="java.net.URL" %> |
|
30 |
|
|
31 |
|
|
32 |
<% |
|
33 |
System.out.println("********************************************************"); |
|
34 |
System.out.println("********************************************************"); |
|
35 |
System.out.println("**************** metacat_spatialresolver.jsp*****************\n"); |
|
36 |
|
|
37 |
|
|
38 |
String _request = request.getParameter("REQUEST"); |
|
39 |
_request = (_request!=null)? _request.trim() : ""; |
|
40 |
|
|
41 |
System.out.println("uri: " + request.getRequestURI()); |
|
42 |
System.out.println("request string: " + request.getQueryString()); |
|
43 |
|
|
44 |
|
|
45 |
//URLConnection _conn = new URLConnection("http://geonumericsolutions.com"); |
|
46 |
URL url = new URL("http://nebulous.msi.ucsb.edu:8080/geoserver/wms?"+request.getQueryString()); |
|
47 |
URLConnection c = url.openConnection(); |
|
48 |
BufferedReader in = new BufferedReader( |
|
49 |
new InputStreamReader( |
|
50 |
c.getInputStream())); |
|
51 |
String inputLine; |
|
52 |
|
|
53 |
while ((inputLine = in.readLine()) != null) |
|
54 |
|
|
55 |
if ( inputLine.startsWith("url") ) { |
|
56 |
|
|
57 |
StringTokenizer _st = new StringTokenizer(inputLine, " "); |
|
58 |
_st.nextToken(); // url string |
|
59 |
_st.nextToken(); // equals sign |
|
60 |
String _redirectTo = _st.nextToken(); |
|
61 |
System.out.println("redirecting to: " + _redirectTo); |
|
62 |
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY); |
|
63 |
String newLocn = _redirectTo; |
|
64 |
response.setHeader("Location",newLocn); |
|
65 |
} |
|
66 |
in.close(); |
|
67 |
|
|
68 |
|
|
69 |
%> |
|
70 |
|
|
71 |
<html> |
|
72 |
<head> |
|
73 |
<title>Metacat Spatial Resolver</title> |
|
74 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
|
75 |
<link href="styles.css" rel="stylesheet" type="text/css"> |
|
76 |
</head> |
|
77 |
|
|
78 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/blue_pixel_bg.jpg"> |
|
79 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
80 |
<!--DWLayoutTable--> |
|
81 |
<tr> |
|
82 |
<td width="700" height="20" background="images/blue_pixel_bg.jpg"></td> |
|
83 |
|
|
84 |
</tr> |
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
<tr> |
|
90 |
<td bgcolor="#6699CC"> <table width="700" border="0" cellspacing="0" cellpadding="0"> |
|
91 |
<tr> |
|
92 |
<td> </td> |
|
93 |
<td><td> </td> |
|
94 |
</tr> |
|
95 |
</table> |
|
96 |
</tr> |
|
97 |
</table> |
|
98 |
</body> |
|
99 |
</html> |
|
100 |
|
|
0 | 101 |
src/spatial/rendering/mapbuilder/lib/widget/GetFeatureInfo.js | ||
---|---|---|
54 | 54 |
//alert("GetFeatureInfo .. : \n url="+url); |
55 | 55 |
|
56 | 56 |
if (objRef.infoFormat=="text/html"){ |
57 |
window.open(url,'queryWin','height=400,width=500,scrollbars=yes');
|
|
57 |
window.open(url,'queryWin','height=600,width=800,scrollbars=yes,toolbars=yes');
|
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
} |
src/spatial/rendering/mapbuilder/lib/tool/GetFeatureInfo.xsl | ||
---|---|---|
58 | 58 |
</xsl:choose> |
59 | 59 |
</xsl:variable> |
60 | 60 |
|
61 |
http://sulphur.homelinux.com:7000/cgs/metacat_spatialresolver.jsp<xsl:value-of select="$firstJoin"/>VERSION=<xsl:value-of select="$version"/>&REQUEST=GetFeatureInfo&SRS=<xsl:value-of select="$srs"/>&BBOX=<xsl:value-of select="$bbox"/>&WIDTH=<xsl:value-of select="$width"/>&HEIGHT=<xsl:value-of select="$height"/>&LAYERS=<xsl:value-of select="$queryLayer"/>&FORMAT=<xsl:value-of select="$infoFormat"/>&FEATURE_COUNT=<xsl:value-of select="$featureCount"/>&QUERY_LAYERS=<xsl:value-of select="$queryLayer"/>&X=<xsl:value-of select="$xCoord"/>&Y=<xsl:value-of select="$yCoord"/> |
|
61 | 62 |
<!-- Print the URL --> |
62 |
<xsl:value-of select="$baseUrl"/><xsl:value-of select="$firstJoin"/>VERSION=<xsl:value-of select="$version"/>&REQUEST=GetFeatureInfo&SRS=<xsl:value-of select="$srs"/>&BBOX=<xsl:value-of select="$bbox"/>&WIDTH=<xsl:value-of select="$width"/>&HEIGHT=<xsl:value-of select="$height"/>&LAYERS=<xsl:value-of select="$queryLayer"/>&FORMAT=<xsl:value-of select="$infoFormat"/>&FEATURE_COUNT=<xsl:value-of select="$featureCount"/>&QUERY_LAYERS=<xsl:value-of select="$queryLayer"/>&X=<xsl:value-of select="$xCoord"/>&Y=<xsl:value-of select="$yCoord"/> |
|
63 |
</xsl:if> |
|
63 |
<!--<xsl:value-of select="$baseUrl"/><xsl:value-of select="$firstJoin"/>VERSION=<xsl:value-of select="$version"/>&REQUEST=GetFeatureInfo&SRS=<xsl:value-of select="$srs"/>&BBOX=<xsl:value-of select="$bbox"/>&WIDTH=<xsl:value-of select="$width"/>&HEIGHT=<xsl:value-of select="$height"/>&LAYERS=<xsl:value-of select="$queryLayer"/>&FORMAT=<xsl:value-of select="$infoFormat"/>&FEATURE_COUNT=<xsl:value-of select="$featureCount"/>&QUERY_LAYERS=<xsl:value-of select="$queryLayer"/>&X=<xsl:value-of select="$xCoord"/>&Y=<xsl:value-of select="$yCoord"/>
|
|
64 |
--> </xsl:if>
|
|
64 | 65 |
</xsl:template> |
65 | 66 |
</xsl:stylesheet> |
Also available in: Unified diff
Got the metacat datapackage selection (single point) working.