Examples of CoordinateReferenceSystem


Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  }

  @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

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  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

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  @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

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  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

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  }

  @Test
  public void testGetFeaturesVisibleArea() 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());
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  }

  @Test
  public void testGetBoundsVisibleArea() throws Exception {
    CoordinateReferenceSystem crs = beanLayer.getCrs();
    Envelope envelope;

    login("luc");
    envelope = layerService.getBounds(LAYER_ID, crs, null);
    Assert.assertEquals(0, envelope.getMinX(), ALLOWANCE);
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

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

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

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

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

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

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

  public void testSaveOrUpdateCreateArea() 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");
    // verify failing
View Full Code Here

Examples of org.opengis.referencing.crs.CoordinateReferenceSystem

    ThreadScopeContextHolder.clear();
  }

  @Test
  public void testGetBoundsVisibleArea() throws Exception {
    CoordinateReferenceSystem crs = beanLayer.getCrs();
    Envelope envelope;

    login("luc");
    recorder.clear();
    envelope = layerService.getBounds(LAYER_ID, crs, null);
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.