test_class.declarator: DELTA = 1e-20
test_class.modifier: private static final
test_class.original_string: private static final double DELTA = 1e-20;
test_class.type: double
test_class.var_name: DELTA
test_class.declarator: geoService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private GeoService geoService;
test_class.type: GeoService
test_class.var_name: geoService
test_class.declarator: geocoderUtilService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private GeocoderUtilService geocoderUtilService;
test_class.type: GeocoderUtilService
test_class.var_name: geocoderUtilService
test_class.file: plugin/geocoder/geocoder/src/test/java/org/geomajas/plugin/geocoder/service/GeocoderUtilServiceTest.java
test_class.identifier: GeocoderUtilServiceTest
test_case.body: @Test
  	public void transformEnvelopeTest() throws Exception {
  		CoordinateReferenceSystem source = geoService.getCrs("EPSG:900913");
  		CoordinateReferenceSystem target = geoService.getCrs("EPSG:4326");
  		Envelope envelope = new Envelope(10, 20, 30, 40);
  		Envelope transformed = geocoderUtilService.transform(envelope, source, target);
  		Assert.assertEquals(8.983152841195215E-5, transformed.getMinX(), DELTA);
  		Assert.assertEquals(2.6949458522981454E-4, transformed.getMinY(), DELTA);
  		Assert.assertEquals(1.796630568239043E-4, transformed.getMaxX(), DELTA);
  		Assert.assertEquals(3.593261136397527E-4, transformed.getMaxY(), DELTA);
  	}
test_case.class_method_signature: GeocoderUtilServiceTest.transformEnvelopeTest()
test_case.full_signature: @Test public void transformEnvelopeTest()
test_case.identifier: transformEnvelopeTest
test_case.invocations: getCrs getCrs transform assertEquals getMinX assertEquals getMinY assertEquals getMaxX assertEquals getMaxY
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void transformEnvelopeTest()
focal_class.declarator: EXTEND_MAPUNIT_TEST_LENGTH = .1
focal_class.modifier: private static final
focal_class.original_string: private static final double EXTEND_MAPUNIT_TEST_LENGTH = .1;
focal_class.type: double
focal_class.var_name: EXTEND_MAPUNIT_TEST_LENGTH
focal_class.declarator: DISTANCE_PRECISION = .001
focal_class.modifier: private static final
focal_class.original_string: private static final double DISTANCE_PRECISION = .001;
focal_class.type: double
focal_class.var_name: DISTANCE_PRECISION
focal_class.declarator: EXTEND_MAX_ITERATIONS = 5
focal_class.modifier: private static final
focal_class.original_string: private static final int EXTEND_MAX_ITERATIONS = 5;
focal_class.type: int
focal_class.var_name: EXTEND_MAX_ITERATIONS
focal_class.declarator: geoService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private GeoService geoService;
focal_class.type: GeoService
focal_class.var_name: geoService
focal_class.file: plugin/geocoder/geocoder/src/main/java/org/geomajas/plugin/geocoder/service/GeocoderUtilService.java
focal_class.identifier: GeocoderUtilService
focal_class.class_method_signature: GeocoderUtilService.transform(Envelope source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs)
focal_class.full_signature: public Envelope transform(Envelope source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs)
focal_class.identifier: transform
focal_class.modifiers: public
focal_class.parameters: (Envelope source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs)
focal_class.return: Envelope
focal_class.signature: Envelope transform(Envelope source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs)
focal_class.class_method_signature: GeocoderUtilService.extendPoint(Coordinate coordinate, CoordinateReferenceSystem crs,
  								double width, double height)
focal_class.full_signature: public Envelope extendPoint(Coordinate coordinate, CoordinateReferenceSystem crs,
  								double width, double height)
focal_class.identifier: extendPoint
focal_class.modifiers: public
focal_class.parameters: (Coordinate coordinate, CoordinateReferenceSystem crs,
  								double width, double height)
focal_class.return: Envelope
focal_class.signature: Envelope extendPoint(Coordinate coordinate, CoordinateReferenceSystem crs,
  								double width, double height)
focal_method.body: public Envelope transform(Envelope source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs)
  			throws GeomajasException {
  		if (sourceCrs == targetCrs) { // NOPMD
  			// only works when the caching of the CRSs works
  			return source;
  		}
  
  		CrsTransform crsTransform = geoService.getCrsTransform(sourceCrs, targetCrs);
  		return geoService.transform(source, crsTransform);
  	}
focal_method.class_method_signature: GeocoderUtilService.transform(Envelope source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs)
focal_method.full_signature: public Envelope transform(Envelope source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs)
focal_method.identifier: transform
focal_method.invocations: getCrsTransform transform
focal_method.modifiers: public
focal_method.parameters: (Envelope source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs)
focal_method.return: Envelope
focal_method.signature: Envelope transform(Envelope source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs)