comparison flys-artifacts/src/main/java/de/intevation/flys/exports/MapGenerator.java @ 2082:007a8f5ed9f1

Implemented new module "new map". flys-artifacts/trunk@3598 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 05 Jan 2012 14:29:54 +0000
parents 0318fa6f0844
children 5d158f8ad080
comparison
equal deleted inserted replaced
2081:aa9cc91c8193 2082:007a8f5ed9f1
268 logger.debug("BUILD MAX EXTENT:" + mE); 268 logger.debug("BUILD MAX EXTENT:" + mE);
269 269
270 Element maxExtent = c.create("maxExtent"); 270 Element maxExtent = c.create("maxExtent");
271 maxExtent.setTextContent(mE); 271 maxExtent.setTextContent(mE);
272 272
273 String iE = GeometryUtils.jtsBoundsToOLBounds(this.initialExtent); 273 if(this.initialExtent != null) {
274 logger.debug("BUILD INITIAL EXTENT OF: " + this.initialExtent); 274 String iE = GeometryUtils.jtsBoundsToOLBounds(this.initialExtent);
275 logger.debug("BUILD INITIAL EXTENT: " + iE); 275 logger.debug("BUILD INITIAL EXTENT OF: " + this.initialExtent);
276 Element initExtent = c.create("initialExtent"); 276 logger.debug("BUILD INITIAL EXTENT: " + iE);
277 initExtent.setTextContent(iE); 277 Element initExtent = c.create("initialExtent");
278 initExtent.setTextContent(iE);
279 parent.appendChild(initExtent);
280 }
278 281
279 Element srid = c.create("srid"); 282 Element srid = c.create("srid");
280 srid.setTextContent(this.srid); 283 srid.setTextContent(this.srid);
281 284
282 // TODO zoom levels 285 // TODO zoom levels
283 // TODO resolutation 286 // TODO resolutation
284 287
285 parent.appendChild(maxExtent); 288 parent.appendChild(maxExtent);
286 parent.appendChild(initExtent);
287 parent.appendChild(srid); 289 parent.appendChild(srid);
288 } 290 }
289 291
290 292
291 /** 293 /**

http://dive4elements.wald.intevation.org