Revision: 5879
          http://sourceforge.net/p/jump-pilot/code/5879
Author:   michaudm
Date:     2018-06-17 13:13:29 +0000 (Sun, 17 Jun 2018)
Log Message:
-----------
Add BooleanMajority aggregator, translate I18N for StatisticIndices

Modified Paths:
--------------
    core/trunk/src/language/jump.properties
    core/trunk/src/language/jump_cz.properties
    core/trunk/src/language/jump_de.properties
    core/trunk/src/language/jump_es.properties
    core/trunk/src/language/jump_fi.properties
    core/trunk/src/language/jump_fr.properties
    core/trunk/src/language/jump_hu.properties
    core/trunk/src/language/jump_it.properties
    core/trunk/src/language/jump_ja_JP.properties
    core/trunk/src/language/jump_ml.properties
    core/trunk/src/language/jump_pt.properties
    core/trunk/src/language/jump_pt_BR.properties
    core/trunk/src/language/jump_ta_IN.properties
    core/trunk/src/language/jump_te.properties
    core/trunk/src/language/jump_zh_CN.properties
    core/trunk/src/language/jump_zh_HK.properties
    core/trunk/src/org/openjump/core/ui/plugin/tools/aggregate/Aggregators.java

Modified: core/trunk/src/language/jump.properties
===================================================================
--- core/trunk/src/language/jump.properties     2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump.properties     2018-06-17 13:13:29 UTC (rev 
5879)
@@ -1378,6 +1378,7 @@
 org.openjump.core.ui.plugin.tools.aggregate.Aggregator.DoubleMedian = Median 
(double)
 org.openjump.core.ui.plugin.tools.aggregate.Aggregator.DateMedian = Median 
(date)
 org.openjump.core.ui.plugin.tools.aggregate.Aggregator.StringMajority = 
Majority (string)
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority = 
Majority (boolean)
 org.openjump.core.ui.plugin.tools.BeanshellAttributeCalculatorPlugIn = 
Beanshell Attribute Calculator
 
org.openjump.core.ui.plugin.tools.BeanshellAttributeCalculatorPlugIn.beanshell-expression
 = Beanshell Expression
 
org.openjump.core.ui.plugin.tools.BeanshellAttributeCalculatorPlugIn.check-types-match
 = Check that new attribute type and script return type match.
@@ -2888,7 +2889,7 @@
 org.openjump.sextante.gui.additionalResults.AdditionalResultsPlugIn.Html=Html 
texts
 
org.openjump.sextante.gui.additionalResults.AdditionalResultsPlugIn.Table=Tables
 
org.openjump.sextante.gui.additionalResults.AdditionalResultsPlugIn.Image=Images
 and Plots
-com.vividsolutions.jump.util.Coefficient-of-variation=Coefficient of variation
+com.vividsolutions.jump.util.StatisticIndices.Coefficient-of-variation=Coefficient
 of variation
 com.vividsolutions.jump.util.StatisticIndices.Root-mean-squared=Root mean 
squared
 com.vividsolutions.jump.util.StatisticIndices.25-percentile=25 percentile
 com.vividsolutions.jump.util.StatisticIndices.75-percentile=75 percentile

Modified: core/trunk/src/language/jump_cz.properties
===================================================================
--- core/trunk/src/language/jump_cz.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_cz.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -2891,4 +2891,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_de.properties
===================================================================
--- core/trunk/src/language/jump_de.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_de.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -2883,4 +2883,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_es.properties
===================================================================
--- core/trunk/src/language/jump_es.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_es.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -2862,4 +2862,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band=Capa 
r\xE1ster multibanda: seleccione una banda
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=Calcular
 el perfil de la pendiente
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=Crear un 
perfil topogr\xE1fico a partir de un r\xE1ster, utilizando una l\xEDnea como 
traza. Se puede generar un perfil de pendiente para compararlo con el 
topogr\xE1fico
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=Tiempo de viaje
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=Tiempo de viaje
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_fi.properties
===================================================================
--- core/trunk/src/language/jump_fi.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_fi.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -2860,4 +2860,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_fr.properties
===================================================================
--- core/trunk/src/language/jump_fr.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_fr.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -2869,27 +2869,28 @@
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.use-selected-linstring-as-trace
 = Utiliser la ligne s\xE9lectionn\xE9e pour le profil
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.select-one-linstring = 
S\xE9lectionner une ligne
 com.vividsolutions.jump.workbench.ui.plugin.AddNewLayerViewPlugIn=Ajouter une 
vue
-com.vividsolutions.jump.util.StatisticIndices.Coefficient-of-variation= 
=\#T\:Coefficient of variation
-com.vividsolutions.jump.util.StatisticIndices.Root-mean-squared= =\#T\:Root 
mean squared
-com.vividsolutions.jump.util.StatisticIndices.25-percentile= =\#T\:25 
percentile
-com.vividsolutions.jump.util.StatisticIndices.75-percentile= =\#T\:75 
percentile
-com.vividsolutions.jump.util.StatisticIndices.Skewness= =\#T\:Skewness
-com.vividsolutions.jump.util.StatisticIndices.Kurtosis= =\#T\:Kurtosis
-com.vividsolutions.jump.util.StatisticIndices.Variance= =\#T\:Variance
-com.vividsolutions.jump.util.Frequency.frequency= =\#T\:frequency
-com.vividsolutions.jump.util.Frequency.classes= =\#T\:classes
-com.vividsolutions.jump.util.Frequency.lower-value= =\#T\:lower value
-com.vividsolutions.jump.util.Frequency.mean-value= =\#T\:mean value
-com.vividsolutions.jump.util.Frequency.upper-value= =\#T\:upper value
-com.vividsolutions.jump.util.Frequency.absolute-frequency= =\#T\:absolute 
frequency
-com.vividsolutions.jump.util.Frequency.cumulative-frequency= =\#T\:cumulative 
frequency
-com.vividsolutions.jump.util.Frequency.relative-frequency= =\#T\:relative 
frequency
-org.openjump.core.ui.plugin.raster.HistogramPlugIn.description= =\#T\:Create a 
histogram of frequancy from raster data defining the number of classes
-org.openjump.core.ui.plugin.raster.HistogramPlugIn.max-min-pins= =\#T\:Add 
pins of max and min values to the histogram
-org.openjump.core.ui.plugin.raster.HistogramPlugIn.median-25-75-pins= 
=\#T\:Add pins of median, 25 nd 75 percentiles values to the histogram
-org.openjump.core.ui.plugin.raster.HistogramPlugIn.show-frequency= =\#T\:Show 
a table with  absolute, cumulative and relative frequencies of the classes
-org.openjump.core.ui.plugin.raster.HistogramPlugIn.show-descriptive-stat= 
=\#T\:Show  descriptive statistic values (min, max, etc) of raster cell data
-org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
-org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
-org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+com.vividsolutions.jump.util.StatisticIndices.Coefficient-of-variation = 
Coefficient de variation
+com.vividsolutions.jump.util.StatisticIndices.Root-mean-squared= Moyenne 
quadratique
+com.vividsolutions.jump.util.StatisticIndices.25-percentile = 25 percentile
+com.vividsolutions.jump.util.StatisticIndices.75-percentile = 75 percentile
+com.vividsolutions.jump.util.StatisticIndices.Skewness = Asym\xE9trie
+com.vividsolutions.jump.util.StatisticIndices.Kurtosis = Kurtosis
+com.vividsolutions.jump.util.StatisticIndices.Variance = Variance
+com.vividsolutions.jump.util.Frequency.frequency = fr\xE9quence
+com.vividsolutions.jump.util.Frequency.classes = classes
+com.vividsolutions.jump.util.Frequency.lower-value = valeur minimale
+com.vividsolutions.jump.util.Frequency.mean-value = valeur moyenne
+com.vividsolutions.jump.util.Frequency.upper-value = valeur maximale
+com.vividsolutions.jump.util.Frequency.absolute-frequency = fr\xE9quence 
absolue
+com.vividsolutions.jump.util.Frequency.cumulative-frequency = fr\xE9quence 
cumul\xE9e
+com.vividsolutions.jump.util.Frequency.relative-frequency = fr\xE9quence 
relative
+org.openjump.core.ui.plugin.raster.HistogramPlugIn.description = Cr\xE9e un 
histogramme des fr\xE9quences du raster, \xE9tant donn\xE9 le nombre de classes
+org.openjump.core.ui.plugin.raster.HistogramPlugIn.max-min-pins = Marque les 
valeurs minimale et maximale de l'histogramme
+org.openjump.core.ui.plugin.raster.HistogramPlugIn.median-25-75-pins = Marque 
les valeurs m\xE9dianne, 25 and 75 percentile de l'histogramme
+org.openjump.core.ui.plugin.raster.HistogramPlugIn.show-frequency = Affiche 
une table indiquant les fr\xE9quences absolue, cumul\xE9e et relative de chaque 
classe
+org.openjump.core.ui.plugin.raster.HistogramPlugIn.show-descriptive-stat = 
Affiche les valeurs statistiques repr\xE9sentatives (min, max, etc) de la 
couche raster
+org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band = Couche 
raster multibandes : s\xE9lectionner une bande
+org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile = 
Calculer le profil des pentes
+org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description = Cr\xE9er un 
profil topographique \xE0 partir d'une couche raster en suivant une ligne. Un 
profil des pentes peut \xEAtre g\xE9n\xE9r\xE9 pour comparer avec le profil 
topographique.
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time = Temps de 
parcours
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority = 
Majorit\xE9 (bool\xE9en)
\ No newline at end of file

Modified: core/trunk/src/language/jump_hu.properties
===================================================================
--- core/trunk/src/language/jump_hu.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_hu.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -2879,4 +2879,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_it.properties
===================================================================
--- core/trunk/src/language/jump_it.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_it.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -2864,4 +2864,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band=Livello 
raster multibanda: seleziona una banda
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=Calcola
 il profilo della pendenza
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=Crea un 
profilo topografico dal raster, usando una linea come traccia. Un profilo della 
pendenza puo essere generato e comparato con quello topografico
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=Tempo di 
percorrenza
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=Tempo di 
percorrenza
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_ja_JP.properties
===================================================================
--- core/trunk/src/language/jump_ja_JP.properties       2018-06-17 12:10:51 UTC 
(rev 5878)
+++ core/trunk/src/language/jump_ja_JP.properties       2018-06-17 13:13:29 UTC 
(rev 5879)
@@ -2885,4 +2885,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_ml.properties
===================================================================
--- core/trunk/src/language/jump_ml.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_ml.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -3660,4 +3660,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_pt.properties
===================================================================
--- core/trunk/src/language/jump_pt.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_pt.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -2884,4 +2884,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_pt_BR.properties
===================================================================
--- core/trunk/src/language/jump_pt_BR.properties       2018-06-17 12:10:51 UTC 
(rev 5878)
+++ core/trunk/src/language/jump_pt_BR.properties       2018-06-17 13:13:29 UTC 
(rev 5879)
@@ -2884,4 +2884,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_ta_IN.properties
===================================================================
--- core/trunk/src/language/jump_ta_IN.properties       2018-06-17 12:10:51 UTC 
(rev 5878)
+++ core/trunk/src/language/jump_ta_IN.properties       2018-06-17 13:13:29 UTC 
(rev 5879)
@@ -2883,4 +2883,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_te.properties
===================================================================
--- core/trunk/src/language/jump_te.properties  2018-06-17 12:10:51 UTC (rev 
5878)
+++ core/trunk/src/language/jump_te.properties  2018-06-17 13:13:29 UTC (rev 
5879)
@@ -3390,4 +3390,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_zh_CN.properties
===================================================================
--- core/trunk/src/language/jump_zh_CN.properties       2018-06-17 12:10:51 UTC 
(rev 5878)
+++ core/trunk/src/language/jump_zh_CN.properties       2018-06-17 13:13:29 UTC 
(rev 5879)
@@ -3047,4 +3047,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: core/trunk/src/language/jump_zh_HK.properties
===================================================================
--- core/trunk/src/language/jump_zh_HK.properties       2018-06-17 12:10:51 UTC 
(rev 5878)
+++ core/trunk/src/language/jump_zh_HK.properties       2018-06-17 13:13:29 UTC 
(rev 5879)
@@ -3046,4 +3046,5 @@
 org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band= 
=\#T\:Multiband raster layer: select one band
 
org.openjump.core.ui.plugin.raster.ProfileGraphTool.Calculate-slope-profile=\#T\:Calculate
 slope profile
 org.openjump.core.ui.plugin.raster.ProfileGraphTool.Description=\#T\:Create a 
topographic profile from a raster  using a linestring as trace. A slope profile 
can be generate to compare with the topographic one
-org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
\ No newline at end of file
+org.openjump.core.ui.plugin.edittoolbox.cursortools.Travel-time=\#T\:Travel 
time
+org.openjump.core.ui.plugin.tools.aggregate.Aggregator.BooleanMajority=#T:Majority
 (boolean)
\ No newline at end of file

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/tools/aggregate/Aggregators.java
===================================================================
--- core/trunk/src/org/openjump/core/ui/plugin/tools/aggregate/Aggregators.java 
2018-06-17 12:10:51 UTC (rev 5878)
+++ core/trunk/src/org/openjump/core/ui/plugin/tools/aggregate/Aggregators.java 
2018-06-17 13:13:29 UTC (rev 5879)
@@ -90,6 +90,7 @@
         addAggregator(AttributeType.DATE,     new DateMedian());
 
         addAggregator(AttributeType.STRING,   new StringMajority(true));
+        addAggregator(AttributeType.BOOLEAN,  new BooleanMajority(true));
     }
 
 
@@ -600,5 +601,25 @@
         }
     }
 
+    public static class BooleanMajority extends AbstractAggregator<Boolean> {
+        public BooleanMajority(boolean ignoreNull) {
+            super(AttributeType.BOOLEAN, ignoreNull);
+        }
+        @Override public BooleanMajority clone() {
+            return new BooleanMajority(ignoreNull());
+        }
+        @Override public Boolean getResult() {
+            int countTrue = 0;
+            int countFalse = 0;
+            for (Object value : getValues()) {
+                Boolean b = (Boolean)value;
+                if (b == null) countFalse++;
+                else if (b) countTrue++;
+                else countFalse++;
+            }
+            return countTrue >= countFalse;
+        }
+    }
+
 }
 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to