Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java @ 499:e065a72f6b62
Clip "Horizontalschnitte" against given clipping polygon.
gnv-artifacts/trunk@579 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 19 Jan 2010 23:01:24 +0000 |
parents | 4080b57dcb52 |
children | efab67e68bba |
comparison
equal
deleted
inserted
replaced
498:4080b57dcb52 | 499:e065a72f6b62 |
---|---|
534 } | 534 } |
535 | 535 |
536 // produce JTS compatible polygons | 536 // produce JTS compatible polygons |
537 | 537 |
538 JTSMultiPolygonProducer jtsmpp = new JTSMultiPolygonProducer( | 538 JTSMultiPolygonProducer jtsmpp = new JTSMultiPolygonProducer( |
539 polygon, | |
539 boundingBox.getMinX(), boundingBox.getMinY(), | 540 boundingBox.getMinX(), boundingBox.getMinY(), |
540 boundingBox.getMaxX(), boundingBox.getMaxY()); | 541 boundingBox.getMaxX(), boundingBox.getMaxY()); |
541 | 542 |
542 int numRegions = new Vectorizer(intRaster, numSamples) | 543 int numRegions = new Vectorizer(intRaster, numSamples) |
543 .process(jtsmpp); | 544 .process(jtsmpp); |
571 isoPalette = paletteManager.getLevel(numIso); | 572 isoPalette = paletteManager.getLevel(numIso); |
572 intRaster = raster.toIndexed(isoPalette); | 573 intRaster = raster.toIndexed(isoPalette); |
573 } | 574 } |
574 | 575 |
575 JTSMultiLineStringProducer jtslsp = new JTSMultiLineStringProducer( | 576 JTSMultiLineStringProducer jtslsp = new JTSMultiLineStringProducer( |
577 polygon, | |
576 boundingBox.getMinX(), boundingBox.getMinY(), | 578 boundingBox.getMinX(), boundingBox.getMinY(), |
577 boundingBox.getMaxX(), boundingBox.getMaxY()); | 579 boundingBox.getMaxX(), boundingBox.getMaxY()); |
578 | 580 |
579 numRegions = new Vectorizer(false, intRaster, numSamples) | 581 numRegions = new Vectorizer(false, intRaster, numSamples) |
580 .process(jtslsp); | 582 .process(jtslsp); |