comparison flys-artifacts/src/main/java/de/intevation/flys/utils/GeometryUtils.java @ 1164:0398c2b8dbaf

Do only create WSPLGEN and barrier facets if the WSPLGEN job has been added to the Scheduler and if there are digitized geometries existing. flys-artifacts/trunk@2701 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 12 Sep 2011 11:40:04 +0000
parents c07e9e9c7482
children eb3ab28d1c21
comparison
equal deleted inserted replaced
1163:2e0739853807 1164:0398c2b8dbaf
153 public static boolean writeShapefile( 153 public static boolean writeShapefile(
154 File shape, 154 File shape,
155 SimpleFeatureType featureType, 155 SimpleFeatureType featureType,
156 FeatureCollection collection 156 FeatureCollection collection
157 ) { 157 ) {
158 if (collection.isEmpty()) {
159 logger.warn("Shapefile is not written - no features given!");
160 return false;
161 }
162
158 Transaction transaction = null; 163 Transaction transaction = null;
159 164
160 try { 165 try {
161 Map<String, Serializable> params = 166 Map<String, Serializable> params =
162 new HashMap<String, Serializable>(); 167 new HashMap<String, Serializable>();

http://dive4elements.wald.intevation.org