Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/MapGenerator.java @ 8746:e701ef544ffa
Avoid writing defect mapfiles for layers without extent.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 05 Jun 2015 16:53:07 +0200 |
parents | 76a2268942c6 |
children | f5e126739c36 |
comparison
equal
deleted
inserted
replaced
8745:787dff3fd634 | 8746:e701ef544ffa |
---|---|
304 String mE; | 304 String mE; |
305 if (this.maxExtent != null) { | 305 if (this.maxExtent != null) { |
306 mE = GeometryUtils.jtsBoundsToOLBounds(this.maxExtent); | 306 mE = GeometryUtils.jtsBoundsToOLBounds(this.maxExtent); |
307 } else { | 307 } else { |
308 log.error("Layer without extent. Probably no geometry at all."); | 308 log.error("Layer without extent. Probably no geometry at all."); |
309 mE = "0 0 0 0"; | 309 mE = "0 0 1 1"; |
310 } | 310 } |
311 | 311 |
312 Element maxExtent = c.create("maxExtent"); | 312 Element maxExtent = c.create("maxExtent"); |
313 maxExtent.setTextContent(mE); | 313 maxExtent.setTextContent(mE); |
314 | 314 |