comparison flys-backend/ChangeLog @ 765:763c4137d6e1

Added classification of annotation types. Needs testing! flys-backend/trunk@2162 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 19 Jun 2011 12:26:12 +0000
parents e09f00ecb915
children aa9e3da95c31
comparison
equal deleted inserted replaced
764:e09f00ecb915 765:763c4137d6e1
1 2011-06-14 Sascha L. Teichmann <sascha.teichmann@intevation.de> 1 2011-06-19 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2
3 Added classification of annotation types. Needs testing!
4
5 * doc/annotation-types.xml: New. Rules to classify the different
6 types of annotations. The classification works like this:
7
8 There are unique types like 'Bruecke', 'Pegel' and so on.
9 They are defined in the /annotation/type section and
10 identified by their name. One of the types can be set
11 as the default type if no rule applies.
12
13 In the /annotation/pattern section are two types of pattern.
14
15 1 - file pattern: If a KM file is opened its filename is
16 matched against the regular expressions of these
17 patterns. If a match is found the corresponding type
18 is used as the default type in the open file.
19 If no match is found the global default type is used
20 as the default type.
21
22 2 - line patterns: For each line of an open KM file these
23 patterns are applied to find a match. If a match is
24 found the corresponding type is used as the type of
25 the annotation. If no match is found the default
26 file default is assumed to be the right type. For
27 the file default see 1.
28
29 * src/main/java/de/intevation/flys/importer/Importer.java:
30 To activate the annotation type classification set
31 the system property
32
33 'flys.backend.importer.annotation.types'
34
35 to the path of a XML looking like the annotation-types.xml
36 file. If the system property is not set no classification
37 is done.
38
39 * src/main/java/de/intevation/flys/importer/AnnotationClassifier.java:
40 New. Implements the classification.
41
42 * src/main/java/de/intevation/flys/importer/AnnotationsParser.java,
43 src/main/java/de/intevation/flys/importer/InfoGewParser.java,
44 src/main/java/de/intevation/flys/importer/ImportRiver.java:
45 Looped through the annotation type classification.
46
47 2011-06-18 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2 48
3 * src/main/java/de/intevation/flys/model/River.java: 49 * src/main/java/de/intevation/flys/model/River.java:
4 Added method to find gauge by a position lying in its range. 50 Added method to find gauge by a position lying in its range.
5 51
6 2011-06-14 Sascha L. Teichmann <sascha.teichmann@intevation.de> 52 2011-06-14 Sascha L. Teichmann <sascha.teichmann@intevation.de>

http://dive4elements.wald.intevation.org