Skip to content

Commit cde524b

Browse files
committed
Merge branch 'release/v0.5.0'
2 parents 9a1346d + cdb3f27 commit cde524b

File tree

2,387 files changed

+491006
-380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,387 files changed

+491006
-380
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,7 @@ nbactions.xml
5858
/worldwind-gs-geopkg/pom.xml.versionsBackup
5959
/worldwind-gs-wms/pom.xml.versionsBackup
6060
/worldwind-geoserver/pom.xml.versionsBackup
61-
/pom.xml.versionsBackup
61+
/pom.xml.versionsBackup
62+
/worldwind-geoserver/src/test/data_dir/logs/geoserver.log
63+
/worldwind-geoserver/src/test/data_dir/logs/geoserver.log.*
64+
/archive/

.travis.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ before_script:
3131
- chmod +x ./travis/*.sh
3232

3333
script:
34-
# Build WWSK with Maven using the "release" profile (generates javadoc and sources)
34+
# Build WWSK with Maven using the "release" profile (generates javadoc and sources)
3535
## Maven Commands
3636
# -B (--batch-mode) Run in non-interactive model
3737
# -U (--update-snapshots) Forces a check for missing releases and updated snapshots on remote repos
3838
# -P (--activate-profiles <arg>) Comma-delimited list of profiles to activate
39-
- mvn clean install -B -U -Prelease
39+
- mvn clean install -B -U -P release
40+
## Run the JMeter integration tests and output results to the reports folder
41+
- ./travis/run_integration_tests.sh
4042

4143
after_success:
42-
# Create a draft release on GitHub in preparation for deploy
44+
# Conditionally creates a draft release on GitHub in preparation for deploy
4345
- ./travis/create_draft_release.sh
4446

4547
deploy:
@@ -67,5 +69,12 @@ deploy:
6769
skip_cleanup: true
6870
on:
6971
branch: master
70-
#tags: true
71-
72+
73+
# Upload the integration test report(s) to the GitHub pages branch (gh-pages)
74+
- provider: pages
75+
github_token: $GITHUB_API_KEY
76+
local_dir: worldwind-geoserver/target/reports
77+
skip_cleanup: true
78+
on:
79+
all_branches: true
80+
#branch: develop

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img src="https://worldwind.arc.nasa.gov/css/images/nasa-logo.svg" height="100"/>
1+
<img src="https://worldwind.arc.nasa.gov/img/nasa-logo.svg" height="100"/>
22

33
# WorldWindServerKit
44

jmeter/functional_test/GeoServer Functional Tests.jmx

Lines changed: 460 additions & 39 deletions
Large diffs are not rendered by default.

jmeter/wms_test/GeoServer Stress Test.jmx

Lines changed: 130 additions & 38 deletions
Large diffs are not rendered by default.

jmeter/wms_test/ft_biggs_10-19_4326_zoom.csv

Lines changed: 5000 additions & 0 deletions
Large diffs are not rendered by default.

jmeter/wms_test/global_random_0-10.csv

Lines changed: 5000 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
## wms_tile_request.py
3+
## -count Number of requests to generate (default=100)
4+
## -region Bounding box: <minx> <miny> <maxx> <maxy> (negative values must quoted)
5+
## -minlevel Minimum zoom level (zero based)
6+
## -maxlevel Maximum zoom level (zero based)
7+
## -tilesize Tile size in pixels: <width> <height> (default=256,256)
8+
## -level0 columns and rows in level 0: <columns> <rows> (default=2,1)
9+
## -srs Source coordinate reference system (default=4326)
10+
## -srs2 Output coordinate reference system (optional)
11+
## -filter_within Name of the file containing geometries to filter out (optional)
12+
## -output Name of the output file (default=<srs>.csv)
13+
## -output2 Name of the output file (default=<srs2>.csv)
14+
##
15+
## Example: Generate 1000 WMS tile requests in CSV format around Ventura, CA
16+
## python wms_tile_request.py -count 1000 -region "-120" 34 "-119" 35 -minlevel 0 -maxlevel 23 -output ventura.csv
17+
##
18+
## Example: World Wind Java WMS tile requests
19+
## python wms_tile_request.py -count 1000 -region "-120" 34 "-119" 35 -level0 10 5 -minlevel 0 -maxlevel 23 -output ventura.csv
20+
#python wms_tile_request.py -count 100 -region "-180" "-90" 180 90 -minlevel 0 -maxlevel 4 -output global_0-4.csv
21+
#python wms_tile_request.py -count 100 -region "-180" "-90" 180 90 -minlevel 0 -maxlevel 4 -tilesize 512 512 -level0 10 5 -output global_0-4_wwj.csv
22+
#python wms_tile_request.py -count 100 -region "-120" 34 "-119" 35 -minlevel 0 -maxlevel 23 -output ventura_0-23.csv
23+
#python wms_tile_request.py -count 100 -region "-126" 39 "-116" 50 -minlevel 0 -maxlevel 23 -output pnw_0-23.csv
24+
#python wms_tile_request.py -count 100 -region "-120" 30 "-110" 40 -minlevel 7 -maxlevel 12 -output psw_7-12.csv
25+
python wms_tile_request_random.py -count 5000 -region "-180" "-90" 180 90 -minlevel 0 -maxlevel 10 -output global_random_0-10.csv
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
##
3+
## wms_tile_request_zoom.py
4+
## -count Number of requests to generate (default=100)
5+
## -region Bounding box: <minx> <miny> <maxx> <maxy> (negative values must quoted)
6+
## -minlevel Minimum zoom level (zero based)
7+
## -maxlevel Maximum zoom level (zero based)
8+
## -tilesize Tile size in pixels: <width> <height> (default=256,256)
9+
## -level0 columns and rows in level 0: <columns> <rows> (default=2,1)
10+
## -srs Source coordinate reference system (default=4326)
11+
## -srs2 Output coordinate reference system (optional)
12+
## -filter_within Name of the file containing geometries to filter out (optional)
13+
## -output Name of the output file (default=<srs>.csv)
14+
## -output2 Name of the output file (default=<srs2>.csv)
15+
##
16+
## Example: Generate 1000 WMS tile requests in CSV format around Ventura, CA
17+
## python wms_tile_request_zoom.py -count 1000 -region "-120" 34 "-119" 35 -minlevel 0 -maxlevel 23 -output ventura_4326.csv
18+
##
19+
## Example: World Wind Java WMS tile requests
20+
## python wms_tile_request_zoom.py -count 1000 -region "-120" 34 "-119" 35 -level0 10 5 -minlevel 0 -maxlevel 23 -output ventura_wwj.csv
21+
##
22+
#python wms_tile_request_zoom.py -count 100 -region "-120" 30 "-110" 40 -minlevel 7 -maxlevel 12 -output psw_7-12_4326_zoom.csv
23+
#python wms_tile_request_zoom.py -count 5000 -region 7.5 47.5 11 48.5 -minlevel 13 -maxlevel 17 -output desw_13-17_4326_zoom.csv
24+
#python wms_tile_request_zoom.py -count 5000 -region 7.5 47.5 11 48.5 -minlevel 13 -maxlevel 19 -output desw_13-19_4326_zoom.csv
25+
python wms_tile_request_zoom.py -count 5000 -region "-106.6" 31.6 "-105.6" 32.6 -minlevel 10 -maxlevel 19 -output ft_biggs_10-19_4326_zoom.csv
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
#
3+
## wms_request.py
4+
## -count Number of requests to generate (default=100)
5+
## -region Bounding box: <minx> <miny> <maxx> <maxy> (negative values must quoted)
6+
## -minres Minimum resolution
7+
## -maxres Maximum resolution
8+
## -minsize Minimum width and height: <width> <height> (default=128,128)
9+
## -maxsize Minimum width and height: <width> <height> (default=1024,768)
10+
## -srs Source coordinate reference system (default=4326)
11+
## -srs2 Output coordinate reference system (optional)
12+
## -filter_within Name of the file containing geometries to filter out (optional)
13+
## -output_file Name of the output file (default=<srs>.csv)
14+
## -output_file2 Name of the output file (default=<srs2>.csv)
15+
##
16+
## Example: Generate 1000 WMS requests in CSV format around Ventura, CA
17+
## python wms_request.py -count 1000 -region -120 34 -119 35 - -output ventura.csv
18+
##
19+
#
20+
python wms_request.py -count 100 -region "-120" 30 "-110" 40 -minres 0.0001 -maxres .0002 -output psw_7-12_random.csv

scripts/wms_requests/wms_request.py renamed to jmeter/wms_test/scripts/wms_request.py

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
2-
# ******************************************************************************
2+
#
3+
# Original script:
4+
# http://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2010/scripts/wms_request.py
35
#
6+
# ******************************************************************************
47
# Project: 2009 Web Map Server Benchmarking
58
# Purpose: Generate WMS BBOX/size requests randomly over a defined dataset.
69
# Author: Frank Warmerdam, warmerdam@pobox.com
@@ -65,6 +68,8 @@ def Usage():
6568
coordinate_transformation = None
6669

6770
# output files
71+
output_filename = None
72+
output_filename2 = None
6873
output_file = None
6974
output_file2 = None
7075

@@ -104,6 +109,14 @@ def Usage():
104109
filter_within = argv[i + 1]
105110
i = i + 1
106111

112+
elif arg == '-output' and i < len(argv) - 1:
113+
output_filename = argv[i + 1]
114+
i = i + 1
115+
116+
elif arg == '-output2' and i < len(argv) - 1:
117+
output_filename2 = argv[i + 1]
118+
i = i + 1
119+
107120
elif arg == '-srs' and i < len(argv) - 1:
108121
srs_input = int(argv[i + 1])
109122
i = i + 1
@@ -181,9 +194,14 @@ def Usage():
181194
# -------------------------------------------------------------------------
182195

183196
# create output file
184-
output_file = open('./' + str(srs_input) + '.csv', 'w')
197+
if output_filename is None:
198+
output_filename = str(srs_input) + '.csv'
199+
output_file = open('./' + output_filename, 'w')
200+
185201
if srs_output is not None:
186-
output_file2 = open('./' + str(srs_output) + '.csv', 'w')
202+
if output_filename2 is None:
203+
output_filename2 = str(srs_output) + '.csv'
204+
output_file2 = open('./' + output_filename2, 'w')
187205

188206
first = True
189207
while count > 0:
@@ -203,6 +221,7 @@ def Usage():
203221
center_y - height * 0.5 * res,
204222
center_x + width * 0.5 * res,
205223
center_y + height * 0.5 * res)
224+
print '%d; %d; %.8g, %.8g, %.8g, %.8g' % (width, height, bbox[0], bbox[1], bbox[2], bbox[3])
206225

207226
if bbox[0] >= region[0] \
208227
and bbox[1] >= region[1] \
@@ -228,6 +247,7 @@ def Usage():
228247
srs2_width = math.floor(delta_transformed * srs2_height)
229248

230249
if first:
250+
print '%d; %d; %.8g, %.8g, %.8g, %.8g, %d' % (width, height, bbox[0], bbox[1], bbox[2], bbox[3], count)
231251
# Trick to have the command that created the csv file without making jmeter bomb (csv format has no notion of comments)
232252
output_file.write(
233253
'%d;%d;%.8g,%.8g,%.8g,%.8g;wms_request.py -count %d -region %.8g %.8g %.8g %.8g -minsize %d %d -maxsize %d %d -minres %.8g -maxres %.8g\n' \
@@ -242,6 +262,7 @@ def Usage():
242262

243263
first = False
244264
else:
265+
print '%d; %d; %.8g, %.8g, %.8g, %.8g, %d' % (width, height, bbox[0], bbox[1], bbox[2], bbox[3], count)
245266
output_file.write('%d;%d;%.8g,%.8g,%.8g,%.8g\n' \
246267
% (width, height, bbox[0], bbox[1], bbox[2], bbox[3]))
247268
if srs_output is not None:

scripts/wms_requests/wms_tile_request.py renamed to jmeter/wms_test/scripts/wms_tile_request_random.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env python
2+
#
3+
# This script was derived from wms_request.py by Frank Warmerdam
4+
# http://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2010/scripts/wms_request.py
5+
#
26
# ******************************************************************************
37
#
48
# Project: 2009 Web Map Server Benchmarking
@@ -264,25 +268,25 @@ def Usage():
264268
if first:
265269
# Trick to have the command that created the csv file without making jmeter bomb (csv format has no notion of comments)
266270
output_file.write(
267-
'%d,%d,%.10g,%.10g,%.10g,%.10g;wms_tile_request.py -count %d -region %.8g %.8g %.8g %.8g -minlevel %d -maxlevel %d -tilesize %d %d -level0 %d %d\n' \
271+
'%d,%d,%.10g,%.10g,%.10g,%.10g,"wms_tile_request.py -count %d -region %.8g %.8g %.8g %.8g -minlevel %d -maxlevel %d -tilesize %d %d -level0 %d %d"\n' \
268272
% (width, height, bbox[0], bbox[1], bbox[2], bbox[3],
269273
count, region[0], region[1], region[2], region[3], min_level, max_level,
270274
tile_size[0], tile_size[1], level0[0], level0[1]))
271275
if srs_output is not None:
272276
output_file2.write(
273-
'%d,%d,%.10g,%.10g,%.10g,%.10g;wms_tile_request.py -count %d -region %.8g %.8g %.8g %.8g -minlevel %d -maxlevel %d -tilesize %d %d -level0 %d %d\n' \
274-
% (srs2_width, srs2_height, srs2_bbox[0][0], srs2_bbox[0][1], srs2_bbox[1][0], srs2_bbox[1][1],
277+
'%d,%d,%.10g,%.10g,%.10g,%.10g,"wms_tile_request.py -count %d -region %.8g %.8g %.8g %.8g -minlevel %d -maxlevel %d -tilesize %d %d -level0 %d %d"\n' \
278+
% (srs2_width, srs2_height, srs2_bbox[0][0], srs2_bbox[0][1], srs2_bbox[1][0],
279+
srs2_bbox[1][1],
275280
count, region[0], region[1], region[2], region[3], min_level, max_level,
276281
tile_size[0], tile_size[1], level0[0], level0[1]))
277-
278282
first = False
279283
else:
280-
output_file.write('%d,%d,%.10g,%.10g,%.10g,%.10g\n' \
281-
% (width, height, bbox[0], bbox[1], bbox[2], bbox[3]))
284+
output_file.write('%d,%d,%.10g,%.10g,%.10g,%.10g,"level %d"\n' \
285+
% (width, height, bbox[0], bbox[1], bbox[2], bbox[3], level))
282286
if srs_output is not None:
283-
output_file2.write('%d,%d,%.10g,%.10g,%.10g,%.10g\n' \
284-
% (srs2_width, srs2_height, srs2_bbox[0][0], srs2_bbox[0][1], srs2_bbox[1][0],
285-
srs2_bbox[1][1]))
287+
output_file2.write('%d,%d,%.10g,%.10g,%.10g,%.10g,"level %d"\n' \
288+
% (srs2_width, srs2_height, srs2_bbox[0][0], srs2_bbox[0][1],
289+
srs2_bbox[1][0], srs2_bbox[1][1], level))
286290

287291
count = count - 1
288292

0 commit comments

Comments
 (0)