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

Method testSetBallparkAllowed

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

Source from the content-addressed store, hash-verified

164 }
165
166 public static void testSetBallparkAllowed()
167 {
168 SpatialReference s = new SpatialReference("");
169 s.SetFromUserInput("EPSG:4267"); // NAD 27
170 SpatialReference t = new SpatialReference("");
171 t.SetFromUserInput("EPSG:4258"); // ETRS89
172
173 CoordinateTransformationOptions options = new CoordinateTransformationOptions();
174 options.SetBallparkAllowed(false);
175 try
176 {
177 CoordinateTransformation ct = CoordinateTransformation.CreateCoordinateTransformation(s, t, options);
178 check( false );
179 }
180 catch( RuntimeException e)
181 {
182 }
183 }
184}

Callers 1

mainMethod · 0.95

Calls 3

checkMethod · 0.95
SetFromUserInputMethod · 0.80
SetBallparkAllowedMethod · 0.80

Tested by

no test coverage detected