()
| 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 | } |
no test coverage detected