Package org.opengis.referencing.crs

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


  private GeoService geoService;


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

    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

    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

  }

  @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

  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

  }

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

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

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

    login("marino");
    // should be able to update feature "1"
    filter = filterService.createFidFilter(new String[]{"1"});
    oldFeatures = layerService.getFeatures(LAYER_ID, crs, filter, null,
View Full Code Here

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

    login("marino");
    filter = filterService.createFidFilter(new String[]{"3"});
    oldFeatures = layerService.getFeatures(LAYER_ID,
        crs, filter, null, VectorLayerService.FEATURE_INCLUDE_ATTRIBUTES);
View Full Code Here

  public void testSaveOrUpdateCreateFeature() throws Exception {
    Filter filter;
    List<InternalFeature> oldFeatures;
    List<InternalFeature> newFeatures;
    InternalFeature feature;
    CoordinateReferenceSystem crs = beanLayer.getCrs();
    GeometryFactory geometryFactory = new GeometryFactory(new PrecisionModel());
    Geometry geometry;

    login("marino");
    oldFeatures = new ArrayList<InternalFeature>();
View Full Code Here

TOP

Related Classes of org.opengis.referencing.crs.CoordinateReferenceSystem

Copyright © 2018 www.massapicom. 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.