Mercurial > dive4elements > river
annotate artifacts/bin/createDatacage.sh @ 8748:36d7bda0b47a
(issue1788) Fix area split if there are no NaN's in the data
The split algorithmn splits in a way that it always creates
at least two datasets. One before the NaN, one after the NaN.
This is broken in case the dataset does not contain any NaN
value as it resulted in two identical datasets. This changed
the display and resulted in a broken area calculation.
I've also added some commented out debug code that was helpful
tracking down this problem.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 08 Jun 2015 16:53:54 +0200 |
parents | 6b8410ba48cb |
children |
rev | line source |
---|---|
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
1 #!/bin/bash |
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
2 |
5250
3ba2917e49d3
Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents:
4065
diff
changeset
|
3 mkdir -p datacagedb |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
4 |
8513
6b8410ba48cb
Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
Tom Gottfried <tom@intevation.de>
parents:
7768
diff
changeset
|
5 DIR=`dirname $0` |
6b8410ba48cb
Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
Tom Gottfried <tom@intevation.de>
parents:
7768
diff
changeset
|
6 DIR=`readlink -f "$DIR"` |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
7 |
5250
3ba2917e49d3
Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents:
4065
diff
changeset
|
8 if [ $# != 1 ]; then |
8513
6b8410ba48cb
Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
Tom Gottfried <tom@intevation.de>
parents:
7768
diff
changeset
|
9 SCHEMA="$DIR/../doc/conf/datacage.sql" |
6b8410ba48cb
Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
Tom Gottfried <tom@intevation.de>
parents:
7768
diff
changeset
|
10 else |
6b8410ba48cb
Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
Tom Gottfried <tom@intevation.de>
parents:
7768
diff
changeset
|
11 SCHEMA="$1" |
5250
3ba2917e49d3
Remove old artifacts-h2.sql and datacage.sql and expect the
Andre Heinecke <aheinecke@intevation.de>
parents:
4065
diff
changeset
|
12 fi |
4065
9d404069f361
Added build script for FLYS release.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 |
8513
6b8410ba48cb
Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
Tom Gottfried <tom@intevation.de>
parents:
7768
diff
changeset
|
14 URL="jdbc:h2:`readlink -f datacagedb`/datacage" |
6b8410ba48cb
Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
Tom Gottfried <tom@intevation.de>
parents:
7768
diff
changeset
|
15 |
6b8410ba48cb
Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
Tom Gottfried <tom@intevation.de>
parents:
7768
diff
changeset
|
16 mvn -e -Dexec.mainClass=org.h2.tools.RunScript exec:java \ |
6b8410ba48cb
Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
Tom Gottfried <tom@intevation.de>
parents:
7768
diff
changeset
|
17 -Dexec.args="-url $URL -script $SCHEMA" |