From 94ae08701bbd7585a0b7e5a92d1975965a503c03 Mon Sep 17 00:00:00 2001 From: Dennis Kao <ulysseskao@gmail.com> Date: Wed, 15 Jan 2014 11:28:52 +0800 Subject: [PATCH] Merge branch 'origin/2.1.x' --- xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/util/GeomUtil.java | 15 +++++---------- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/util/GeomUtil.java b/xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/util/GeomUtil.java index 8cd89e4..2a13867 100644 --- a/xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/util/GeomUtil.java +++ b/xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/util/GeomUtil.java @@ -7,24 +7,19 @@ * Created by IntelliJ IDEA. * User: Ulysses * Date: 2007/6/15 - * Time: �W�� 01:20:20 * To change this template use File | Settings | File Templates. */ -public final class GeomUtil -{ - public static double convertLogicalValue(double value) - { +public final class GeomUtil { + public static double convertLogicalValue(double value) { return value / 1000.0 + 2147483.648; } - public static Coordinate convertLogicalCooridate(Coordinate value) - { + public static Coordinate convertLogicalCooridate(Coordinate value) { return new Coordinate(convertLogicalValue(value.x), convertLogicalValue(value.y), convertLogicalValue(value.z)); } - public static Envelope convertLogicalEnvelope(Envelope value) - { + public static Envelope convertLogicalEnvelope(Envelope value) { return new Envelope(convertLogicalValue(value.getMinX()), convertLogicalValue(value.getMaxX()), - convertLogicalValue(value.getMinY()), convertLogicalValue(value.getMaxY())); + convertLogicalValue(value.getMinY()), convertLogicalValue(value.getMaxY())); } } -- Gitblit v0.0.0-SNAPSHOT