comparison gnv-artifacts/src/main/java/de/intevation/gnv/raster/IsoPolygonSeriesProducer.java @ 521:1bf058f1a2d1

Generate seabed polygon to "Profilschnitte". gnv-artifacts/trunk@615 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 24 Jan 2010 20:24:03 +0000
parents f7038820df2e
children b1f5f2a8840f
comparison
equal deleted inserted replaced
520:a8f6ca59b26e 521:1bf058f1a2d1
69 while ((current = current.next) != head); 69 while ((current = current.next) != head);
70 // add head again to close shape 70 // add head again to close shape
71 vertices.add(m1*(head.a % width) + b1); 71 vertices.add(m1*(head.a % width) + b1);
72 vertices.add(m2*(head.a / width) + b2); 72 vertices.add(m2*(head.a / width) + b2);
73 ps.addRing(new CompactXYItems(vertices.toNativeArray())); 73 ps.addRing(new CompactXYItems(vertices.toNativeArray()));
74 vertices.clear(); 74 vertices.reset();
75 } 75 }
76 } 76 }
77 77
78 // process open 78 // process open
79 TIntObjectHashMap map = commonOpen.get(key); 79 TIntObjectHashMap map = commonOpen.get(key);
91 while ((current = current.next) != null); 91 while ((current = current.next) != null);
92 // add b from tail 92 // add b from tail
93 vertices.add(m1*(last.b % width) + b1); 93 vertices.add(m1*(last.b % width) + b1);
94 vertices.add(m2*(last.b / width) + b2); 94 vertices.add(m2*(last.b / width) + b2);
95 ps.addRing(new CompactXYItems(vertices.toNativeArray())); 95 ps.addRing(new CompactXYItems(vertices.toNativeArray()));
96 vertices.clear(); 96 vertices.reset();
97 } // for all in common open 97 } // for all in common open
98 } // if map defined for key 98 } // if map defined for key
99 99
100 if (ps.getItemCount() > 0) { 100 if (ps.getItemCount() > 0) {
101 series.add(ps); 101 series.add(ps);

http://dive4elements.wald.intevation.org