MCPcopy Create free account
hub / github.com/OSGeo/gdal / testSetDesiredAccuracy

Method testSetDesiredAccuracy

swig/java/apps/OSRTransform.java:147–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 }
146
147 public static void testSetDesiredAccuracy()
148 {
149 SpatialReference s = new SpatialReference("");
150 s.SetFromUserInput("EPSG:4326"); // WGS84
151 SpatialReference t = new SpatialReference("");
152 t.SetFromUserInput("EPSG:4258"); // ETRS89
153
154 CoordinateTransformationOptions options = new CoordinateTransformationOptions();
155 options.SetDesiredAccuracy(0.05);
156 try
157 {
158 CoordinateTransformation ct = CoordinateTransformation.CreateCoordinateTransformation(s, t, options);
159 check( false );
160 }
161 catch( RuntimeException e)
162 {
163 }
164 }
165
166 public static void testSetBallparkAllowed()
167 {

Callers 1

mainMethod · 0.95

Calls 3

checkMethod · 0.95
SetFromUserInputMethod · 0.80
SetDesiredAccuracyMethod · 0.80

Tested by

no test coverage detected