org.cts.parser.prj
Class PrjWriter

java.lang.Object
  extended by org.cts.parser.prj.PrjWriter

public final class PrjWriter
extends Object

Author:
Antoine Gourlay, Erwan Bocher, Jules Party

Method Summary
static String formatWKT(String wkt)
          Returns the WKT in parameter into a Human-Readable OGC WKT form.
static String roundToString(double number, double tol)
          Return a String representing the number round to the given tolerance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

roundToString

public static String roundToString(double number,
                                   double tol)
Return a String representing the number round to the given tolerance. If the input double is equal to an integer using the given tolerance, this method return a number without the ".0".

Parameters:
number - the double to transform
tol - the tolerance

formatWKT

public static String formatWKT(String wkt)
Returns the WKT in parameter into a Human-Readable OGC WKT form.

Parameters:
wkt - the OGC WKT String to transform.


Copyright © 2014 IRSTV CNRS-FR-2488. All Rights Reserved.