- Timestamp:
- 09/27/11 07:08:12 (8 months ago)
- Location:
- print/trunk/src/main/java/org
- Files:
-
- 15 modified
-
ho/yaml/CustomBeanWrapper.java (modified) (1 diff)
-
mapfish/print/InvalidJsonValueException.java (modified) (1 diff)
-
mapfish/print/InvalidValueException.java (modified) (1 diff)
-
mapfish/print/JsonMissingException.java (modified) (1 diff)
-
mapfish/print/PrintException.java (modified) (1 diff)
-
mapfish/print/ShellMapPrinter.java (modified) (1 diff)
-
mapfish/print/config/layout/ColumnDefs.java (modified) (1 diff)
-
mapfish/print/config/layout/Exceptions.java (modified) (1 diff)
-
mapfish/print/config/layout/LegendsBlock.java (modified) (1 diff)
-
mapfish/print/map/readers/KaMapCacheMapReader.java (modified) (1 diff)
-
mapfish/print/map/readers/KaMapMapReader.java (modified) (1 diff)
-
mapfish/print/map/readers/OsmLayerInfo.java (modified) (1 diff)
-
mapfish/print/map/readers/WMSMapReader.java (modified) (2 diffs)
-
mapfish/print/map/readers/google/GoogleMapTileReader.java (modified) (1 diff)
-
mapfish/print/utils/DistanceUnit.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
print/trunk/src/main/java/org/ho/yaml/CustomBeanWrapper.java
r3789 r3852 43 43 if (prop == null) { 44 44 LOGGER.warn(type.getSimpleName() + ": unknown field '" + name + "' with value '" + value + "'"); 45 PropertyDescriptor prop2 = ReflectionUtil.getPropertyDescriptor(type, name); 45 //PropertyDescriptor prop2 = ReflectionUtil.getPropertyDescriptor(type, name); 46 ReflectionUtil.getPropertyDescriptor(type, name); 46 47 return; 47 48 } -
print/trunk/src/main/java/org/mapfish/print/InvalidJsonValueException.java
r3789 r3852 26 26 */ 27 27 public class InvalidJsonValueException extends PrintException { 28 public InvalidJsonValueException(PJsonElement element, String key, Object value) { 28 /** 29 * 30 */ 31 private static final long serialVersionUID = 1L; 32 33 public InvalidJsonValueException(PJsonElement element, String key, Object value) { 29 34 this(element, key, value, null); 30 35 } -
print/trunk/src/main/java/org/mapfish/print/InvalidValueException.java
r3789 r3852 24 24 */ 25 25 public class InvalidValueException extends PrintException { 26 public InvalidValueException(String name, String value) { 26 /** 27 * 28 */ 29 private static final long serialVersionUID = 1L; 30 31 public InvalidValueException(String name, String value) { 27 32 this(name, value, null); 28 33 } -
print/trunk/src/main/java/org/mapfish/print/JsonMissingException.java
r3789 r3852 26 26 */ 27 27 public class JsonMissingException extends PrintException { 28 public JsonMissingException(PJsonElement pJsonObject, String key) { 28 /** 29 * 30 */ 31 private static final long serialVersionUID = 1L; 32 33 public JsonMissingException(PJsonElement pJsonObject, String key) { 29 34 super("attribute [" + pJsonObject.getPath(key) + "] missing"); 30 35 } -
print/trunk/src/main/java/org/mapfish/print/PrintException.java
r3789 r3852 24 24 */ 25 25 public class PrintException extends RuntimeException { 26 public PrintException(String message) { 26 /** 27 * 28 */ 29 private static final long serialVersionUID = 1L; 30 31 public PrintException(String message) { 27 32 super(message); 28 33 } -
print/trunk/src/main/java/org/mapfish/print/ShellMapPrinter.java
r3789 r3852 107 107 } else { 108 108 final InputStream inFile = getInputStream(); 109 final PJsonObject jsonSpec = printer.parseSpec(FileUtilities.readWholeTextStream(inFile, "UTF-8")); 109 //final PJsonObject jsonSpec = printer.parseSpec(FileUtilities.readWholeTextStream(inFile, "UTF-8")); 110 final PJsonObject jsonSpec = MapPrinter.parseSpec(FileUtilities.readWholeTextStream(inFile, "UTF-8")); 110 111 final OutputFormat outputFormat = OutputFactory.create(printer.getConfig(), jsonSpec); 111 112 outFile = getOutputStream(jsonSpec.optString("outputFormat", "pdf")); -
print/trunk/src/main/java/org/mapfish/print/config/layout/ColumnDefs.java
r3789 r3852 30 30 public class ColumnDefs extends HashMap<String, ColumnDef> { 31 31 /** 32 * 33 */ 34 private static final long serialVersionUID = 1L; 35 36 /** 32 37 * Called just after the config has been loaded to check it is valid. 33 38 * -
print/trunk/src/main/java/org/mapfish/print/config/layout/Exceptions.java
r3789 r3852 29 29 @SuppressWarnings({"RawUseOfParameterizedType"}) 30 30 public class Exceptions extends ArrayList<CellException> { 31 public static class Wrapper extends DefaultCollectionWrapper { 32 public Wrapper(Class type) { 31 /** 32 * 33 */ 34 private static final long serialVersionUID = 1L; 35 36 public static class Wrapper extends DefaultCollectionWrapper { 37 public Wrapper(Class<?> type) { 33 38 super(type); 34 39 } 35 40 36 public Class componentType() {41 public Class<CellException> componentType() { 37 42 return CellException.class; 38 43 } -
print/trunk/src/main/java/org/mapfish/print/config/layout/LegendsBlock.java
r3831 r3852 136 136 } 137 137 } 138 result.add(name); 139 138 140 final PdfPCell cell = new PdfPCell(result); 139 141 cell.setBorder(PdfPCell.NO_BORDER); -
print/trunk/src/main/java/org/mapfish/print/map/readers/KaMapCacheMapReader.java
r3789 r3852 70 70 TileCacheLayerInfo.ResolutionInfo resolution = tileCacheLayerInfo.getNearestResolution(targetResolution); 71 71 72 int tileX = Math.round((minGeoX - tileCacheLayerInfo.getMinX()) / (resolution.value * w)); 73 int tileY = Math.round((minGeoY - tileCacheLayerInfo.getMinY()) / (resolution.value * h)); 72 //int tileX = Math.round((minGeoX - tileCacheLayerInfo.getMinX()) / (resolution.value * w)); 73 Math.round((minGeoX - tileCacheLayerInfo.getMinX()) / (resolution.value * w)); 74 //int tileY = Math.round((minGeoY - tileCacheLayerInfo.getMinY()) / (resolution.value * h)); 75 Math.round((minGeoY - tileCacheLayerInfo.getMinY()) / (resolution.value * h)); 74 76 75 77 // scale, calculated from units used -
print/trunk/src/main/java/org/mapfish/print/map/readers/KaMapMapReader.java
r3789 r3852 64 64 TileCacheLayerInfo.ResolutionInfo resolution = tileCacheLayerInfo.getNearestResolution(targetResolution); 65 65 66 int tileX =Math.round((minGeoX - tileCacheLayerInfo.getMinX()) / (resolution.value * w));67 int tileY =Math.round((minGeoY - tileCacheLayerInfo.getMinY()) / (resolution.value * h));66 Math.round((minGeoX - tileCacheLayerInfo.getMinX()) / (resolution.value * w)); 67 Math.round((minGeoY - tileCacheLayerInfo.getMinY()) / (resolution.value * h)); 68 68 69 69 StringBuilder path = new StringBuilder(); -
print/trunk/src/main/java/org/mapfish/print/map/readers/OsmLayerInfo.java
r3789 r3852 20 20 package org.mapfish.print.map.readers; 21 21 22 import org.mapfish.print.InvalidValueException;23 22 import org.mapfish.print.utils.PJsonArray; 24 25 import java.util.Arrays;26 import java.util.regex.Matcher;27 import java.util.regex.Pattern;28 23 29 24 /** -
print/trunk/src/main/java/org/mapfish/print/map/readers/WMSMapReader.java
r3829 r3852 20 20 package org.mapfish.print.map.readers; 21 21 22 import org.apache.batik.bridge.UserAgent;23 import org.apache.batik.bridge.UserAgentAdapter;24 22 import org.mapfish.print.RenderingContext; 25 23 import org.mapfish.print.Transformer; … … 192 190 */ 193 191 if (maxW / maxH < width / height) { 192 //LOGGER.warn("before width="+width+" height="+height); 194 193 divisor = width / maxW; 195 194 width = maxW; 196 195 height = height / divisor; 196 //LOGGER.warn("after width="+width+" height="+height); 197 197 } else { 198 //LOGGER.warn("before width="+width+" height="+height); 198 199 divisor = height / maxH; 199 200 height = maxH; 200 201 width = width / divisor; 202 //LOGGER.warn("after width="+width+" height="+height); 201 203 } 202 204 } -
print/trunk/src/main/java/org/mapfish/print/map/readers/google/GoogleMapTileReader.java
r3789 r3852 22 22 import java.io.UnsupportedEncodingException; 23 23 import java.net.*; 24 import java.security.InvalidKeyException;25 import java.security.NoSuchAlgorithmException;26 24 import java.text.DecimalFormat; 27 25 import java.util.HashMap; -
print/trunk/src/main/java/org/mapfish/print/utils/DistanceUnit.java
r3789 r3852 181 181 182 182 public static class Wrapper extends EnumWrapper { 183 public Wrapper(Class type) { 183 public Wrapper(Class type) { // do not "fix" this eclipse warning, because it breaks things, Tim 184 184 super(type); 185 185 }
