comparison flys-artifacts/src/main/java/de/intevation/flys/utils/GeometryUtils.java @ 3306:1b41dc00b1f7

Create shapefile directory instead of shapefile 'file' flys-artifacts/trunk@4992 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Christian Lins <christian.lins@intevation.de>
date Fri, 13 Jul 2012 12:41:44 +0000
parents 96daa8a4c48f
children c1b60f8c3390
comparison
equal deleted inserted replaced
3305:b24920235944 3306:1b41dc00b1f7
282 return null; 282 return null;
283 } 283 }
284 284
285 285
286 public static boolean writeShapefile(File shape, 286 public static boolean writeShapefile(File shape,
287 SimpleFeatureType featureType, FeatureCollection collection) { 287 SimpleFeatureType featureType, FeatureCollection<?, ?> collection) {
288 return writeShapefile(shape, featureType, collection, 288 return writeShapefile(shape, featureType, collection,
289 featureType.getCoordinateReferenceSystem()); 289 featureType.getCoordinateReferenceSystem());
290 } 290 }
291 291
292 292
293 public static boolean writeShapefile(File shape, 293 public static boolean writeShapefile(File shape,
294 SimpleFeatureType featureType, FeatureCollection collection, 294 SimpleFeatureType featureType, FeatureCollection<?, ?> collection,
295 CoordinateReferenceSystem crs) { 295 CoordinateReferenceSystem crs) {
296 if (collection.isEmpty()) { 296 if (collection.isEmpty()) {
297 logger.warn("Shapefile is not written - no features given!"); 297 logger.warn("Shapefile is not written - no features given!");
298 return false; 298 return false;
299 } 299 }

http://dive4elements.wald.intevation.org