/** * Get the XY tolerance of the spatial reference * * @return The XY tolerance of the spatial reference as double. */ abstract double getTolerance(int semantics);
/** * Get the XY tolerance of the spatial reference * * @return The XY tolerance of the spatial reference as double. */ abstract double getTolerance(int semantics);
static double calculateToleranceFromGeometry(SpatialReference sr, Envelope2D env2D, boolean bConservative) { double gtolerance = env2D._calculateToleranceFromEnvelope(); double stolerance = sr != null ? sr .getTolerance(VertexDescription.Semantics.POSITION) : 0; if (bConservative) { gtolerance *= 4; stolerance *= 1.1; } return Math.max(stolerance, gtolerance); }
static double calculateToleranceFromGeometry(SpatialReference sr, Envelope2D env2D, boolean bConservative) { double gtolerance = env2D._calculateToleranceFromEnvelope(); double stolerance = sr != null ? sr .getTolerance(VertexDescription.Semantics.POSITION) : 0; if (bConservative) { gtolerance *= 4; stolerance *= 1.1; } return Math.max(stolerance, gtolerance); }
double calculateZToleranceFromGeometry(SpatialReference sr, Geometry geometry) { Envelope1D env1D = geometry.queryInterval( VertexDescription.Semantics.Z, 0); double tolerance = env1D._calculateToleranceFromEnvelope(); return Math .max(sr != null ? sr .getTolerance(VertexDescription.Semantics.Z) : 0, tolerance); }
static double calculateZToleranceFromGeometry(SpatialReference sr, Geometry geometry, boolean bConservative) { Envelope1D env1D = geometry.queryInterval( VertexDescription.Semantics.Z, 0); double gtolerance = env1D._calculateToleranceFromEnvelope(); double stolerance = sr != null ? sr .getTolerance(VertexDescription.Semantics.Z) : 0; if (bConservative) { gtolerance *= 4; stolerance *= 1.1; } return Math.max(stolerance, gtolerance); }
double calculateZToleranceFromGeometry(SpatialReference sr, Geometry geometry) { Envelope1D env1D = geometry.queryInterval( VertexDescription.Semantics.Z, 0); double tolerance = env1D._calculateToleranceFromEnvelope(); return Math .max(sr != null ? sr .getTolerance(VertexDescription.Semantics.Z) : 0, tolerance); }
static double calculateZToleranceFromGeometry(SpatialReference sr, Geometry geometry, boolean bConservative) { Envelope1D env1D = geometry.queryInterval( VertexDescription.Semantics.Z, 0); double gtolerance = env1D._calculateToleranceFromEnvelope(); double stolerance = sr != null ? sr .getTolerance(VertexDescription.Semantics.Z) : 0; if (bConservative) { gtolerance *= 4; stolerance *= 1.1; } return Math.max(stolerance, gtolerance); }
/** * Returns string representation of the class for debugging purposes. The * format and content of the returned string is not part of the contract of * the method and is subject to change in any future release or patch * without further notice. */ public String toString() { return "[ tol: " + getTolerance() + "; wkid: " + getID() + "; wkt: " + getText() + "]"; } }
/** * Returns string representation of the class for debugging purposes. The * format and content of the returned string is not part of the contract of * the method and is subject to change in any future release or patch * without further notice. */ public String toString() { return "[ tol: " + getTolerance() + "; wkid: " + getID() + "; wkt: " + getText() + "]"; } }