Changeset 33936 in osm for applications/editors/josm/plugins/seachart/src/render/Rules.java
- Timestamp:
- 2017-12-07T19:16:59+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Rules.java
r33195 r33936 32 32 import s57.S57val.CatHAF; 33 33 import s57.S57val.CatLAM; 34 import s57.S57val.CatLIT; 34 35 import s57.S57val.CatLMK; 35 36 import s57.S57val.CatMOR; … … 1058 1059 case PILPNT: 1059 1060 if (Renderer.zoom >= 14) { 1060 Renderer.symbol(Beacons.LightMinor); 1061 ok = true; 1061 if (hasAttribute(Obj.LIGHTS, Att.CATLIT) && (testAttribute(Obj.LIGHTS, Att.CATLIT, CatLIT.LIT_FLDL))) { 1062 Renderer.symbol(Beacons.Floodlight); 1063 Renderer.symbol(Harbours.SignalStation); 1064 } else { 1065 Renderer.symbol(Beacons.LightMinor); 1066 } 1067 ok = true; 1062 1068 } 1063 1069 break; … … 1066 1072 } 1067 1073 if (ok) { 1074 AffineTransform tr = new AffineTransform(); 1068 1075 if (feature.objs.containsKey(Obj.TOPMAR)) { 1069 1076 AttMap topmap = feature.objs.get(Obj.TOPMAR).get(0); 1070 1077 if (topmap.containsKey(Att.TOPSHP)) { 1071 Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), 1072 getScheme(Obj.TOPMAR), Topmarks.LightDelta); 1078 if (hasAttribute(Obj.TOPMAR, Att.ORIENT)) { 1079 tr.rotate(Math.toRadians((Double)getAttVal(Obj.TOPMAR, Att.ORIENT))); 1080 } 1081 tr.translate(0, -20); 1082 Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), 1083 getScheme(Obj.TOPMAR), new Delta(Handle.BC, tr)); 1073 1084 } 1074 1085 } else if (feature.objs.containsKey(Obj.DAYMAR)) { 1075 1086 AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0); 1076 1087 if (topmap.containsKey(Att.TOPSHP)) { 1077 Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), 1078 getScheme(Obj.DAYMAR), Topmarks.LightDelta); 1088 if (hasAttribute(Obj.DAYMAR, Att.ORIENT)) { 1089 tr.rotate(Math.toRadians((Double)getAttVal(Obj.DAYMAR, Att.ORIENT))); 1090 } 1091 tr.translate(0, -20); 1092 Renderer.symbol(Topmarks.Shapes.get(((ArrayList<TopSHP>) (topmap.get(Att.TOPSHP).val)).get(0)), 1093 getScheme(Obj.DAYMAR), new Delta(Handle.BC, tr)); 1079 1094 } 1080 1095 }
Note:
See TracChangeset
for help on using the changeset viewer.