Examples of CoordinateReferenceSystem


Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  public void execute(PipelineContext context, List<RasterTile> response) throws GeomajasException {
    RasterLayer layer = context.get(PipelineCode.LAYER_KEY, RasterLayer.class);
    Envelope bounds = context.get(PipelineCode.BOUNDS_KEY, Envelope.class);
    double scale = context.get(PipelineCode.SCALE_KEY, Double.class);
    CoordinateReferenceSystem crs = context.get(PipelineCode.CRS_KEY, CoordinateReferenceSystem.class);
    List<RasterTile> images = layer.paint(crs, bounds, scale);
    response.addAll(images);
  }
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  @Autowired
  private GeocoderUtilService geocoderUtilService;

  @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);
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

    Assert.assertEquals(3.593261136397527E-4, transformed.getMaxY(), DELTA);
  }

  @Test
  public void extendPointTest() throws Exception {
    CoordinateReferenceSystem crs;
    Coordinate coordinate;
    Envelope envelope;

    crs = geoService.getCrs("EPSG:900913");
    coordinate = new Coordinate(0, 0);
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  @Qualifier("BooischotStrict")
  private StaticRegexGeocoderLocationInfo booischotStrict;

  @Test
  public void testGetCrs() throws Exception {
    CoordinateReferenceSystem crs = service.getCrs();
    Assert.assertEquals(900913, geoService.getSridFromCrs(crs));
  }
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  private GeoService geoService;


  @Test
  public void testGetCrs() throws Exception {
    CoordinateReferenceSystem crs = geocoder.getCrs();
    Assert.assertEquals(4326, geoService.getSridFromCrs(crs));
  }
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  private GeoService geoService;


  @Test
  public void testGetCrs() throws Exception {
    CoordinateReferenceSystem crs = geocoder.getCrs();
    Assert.assertEquals(4326, geoService.getSridFromCrs(crs));
  }
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

    Assert.assertEquals(0, tiles.size());
  }

  @Test
  public void testWrongCrsCorrected() throws Exception {
    CoordinateReferenceSystem crs = googleWrongCrs.getCrs();
    Assert.assertEquals(900913, geoService.getSridFromCrs(crs));
    Assert.assertEquals("EPSG:900913", googleWrongCrs.getLayerInfo().getCrs());
  }
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

    Assert.assertEquals(0, tiles.size());
  }

  @Test
  public void testWrongCrsCorrected() throws Exception {
    CoordinateReferenceSystem crs = osmWrongCrs.getCrs();
    Assert.assertEquals(900913, geoService.getSridFromCrs(crs));
    Assert.assertEquals("EPSG:900913", osmWrongCrs.getLayerInfo().getCrs());
  }
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  }

  @Test
  public void testGetFeaturesAttributeAuthorization() throws Exception {
    List<InternalFeature> features;
    CoordinateReferenceSystem crs = beanLayer.getCrs();
    InternalFeature feature;

    login("luc");
    features = layerService.getFeatures(LAYER_ID, crs, null, null, VectorLayerService.FEATURE_INCLUDE_ATTRIBUTES);
    Assert.assertEquals(3, features.size());
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  public void testSaveOrUpdateAttributeWritable() throws Exception {
    Filter filter;
    List<InternalFeature> oldFeatures;
    List<InternalFeature> newFeatures;
    InternalFeature feature;
    CoordinateReferenceSystem crs = beanLayer.getCrs();

    login("marino");
    filter = filterService.createFidFilter(new String[]{"1"});
    oldFeatures = layerService.getFeatures(LAYER_ID, crs, filter, null,
        VectorLayerService.FEATURE_INCLUDE_ATTRIBUTES);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.