Mercurial > dive4elements > river
changeset 1707:3bf464ec436f
Added a further attribute to the feature type description for barriers.
flys-artifacts/trunk@2953 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 12 Oct 2011 16:52:43 +0000 |
parents | f7813b0c68ff |
children | e99b4bd32cd5 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Wed Oct 12 12:10:50 2011 +0000 +++ b/flys-artifacts/ChangeLog Wed Oct 12 16:52:43 2011 +0000 @@ -1,3 +1,11 @@ +2011-10-12 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java: + Added a further attribute "mark.selected" to the barriers feature type. + This attribute is used in the client, where we are not able to remove it + properly. Reading the GeoJSON string without this attribute is no longer + possible... strange! + 2011-10-12 Felix Wolfsteller <felix.wolfsteller@intevation.de> Added i18n for label of wdiff "pair select" states data.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java Wed Oct 12 12:10:50 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java Wed Oct 12 16:52:43 2011 +0000 @@ -380,9 +380,10 @@ String srs, Class type ) { - Object[][] attrs = new Object[2][]; + Object[][] attrs = new Object[3][]; attrs[0] = new Object[] { "typ", String.class }; attrs[1] = new Object[] { "elevation", Double.class }; + attrs[2] = new Object[] { "mark.selected", Integer.class }; return GeometryUtils.buildFeatureType(name, srs, type, attrs); }