comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java @ 3555:b1912514e0f5

s/container.size() == 0/container.isEmpty()/ flys-artifacts/trunk@5149 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sat, 28 Jul 2012 21:48:15 +0000
parents 453d2d0c4258
children 276d9bd3c77d
comparison
equal deleted inserted replaced
3554:9b356ed24411 3555:b1912514e0f5
120 Object context, 120 Object context,
121 CallMeta callMeta 121 CallMeta callMeta
122 ) { 122 ) {
123 FLYSArtifact flys = (FLYSArtifact) owner; 123 FLYSArtifact flys = (FLYSArtifact) owner;
124 List<Facet> facets = flys.getFacets(); 124 List<Facet> facets = flys.getFacets();
125 if (facets == null || facets.size() == 0) { 125 if (facets == null || facets.isEmpty()) {
126 logger.warn("No facets for '" + OUTPUT_NAME + "' given!"); 126 logger.warn("No facets for '" + OUTPUT_NAME + "' given!");
127 return; 127 return;
128 } 128 }
129 129
130 for (Facet facet: facets) { 130 for (Facet facet: facets) {
409 409
410 SimpleFeatureType ft = getBarriersFeatureType( 410 SimpleFeatureType ft = getBarriersFeatureType(
411 "barriers", srs, Geometry.class); 411 "barriers", srs, Geometry.class);
412 412
413 List<SimpleFeature> features = GeometryUtils.parseGeoJSON(geoJSON, ft); 413 List<SimpleFeature> features = GeometryUtils.parseGeoJSON(geoJSON, ft);
414 if (features == null || features.size() == 0) { 414 if (features == null || features.isEmpty()) {
415 logger.debug("No barrier features extracted."); 415 logger.debug("No barrier features extracted.");
416 return; 416 return;
417 } 417 }
418 418
419 FeatureCollection[] fcs = splitLinesAndPolygons(features); 419 FeatureCollection[] fcs = splitLinesAndPolygons(features);
602 String river = artifact.getDataAsString("river"); 602 String river = artifact.getDataAsString("river");
603 String srid = FLYSUtils.getRiverSrid(artifact); 603 String srid = FLYSUtils.getRiverSrid(artifact);
604 String srs = "EPSG:" + srid; 604 String srs = "EPSG:" + srid;
605 605
606 List<RiverAxis> axes = RiverAxis.getRiverAxis(river); 606 List<RiverAxis> axes = RiverAxis.getRiverAxis(river);
607 if (axes == null || axes.size() == 0) { 607 if (axes == null || axes.isEmpty()) {
608 logger.warn("Could not find river axis for: '" + river + "'"); 608 logger.warn("Could not find river axis for: '" + river + "'");
609 return; 609 return;
610 } 610 }
611 611
612 SimpleFeatureType ft = GeometryUtils.buildFeatureType( 612 SimpleFeatureType ft = GeometryUtils.buildFeatureType(

http://dive4elements.wald.intevation.org