assertTrue( "Should be a dynamic layer", layer instanceof EditableLayer );
layer = (EditableLayer) spatialService.getLayer( layer.getName() );
assertNotNull( layer );
assertTrue( "Should be a dynamic layer", layer instanceof EditableLayer );
CoordinateList coordinates = new CoordinateList();
coordinates.add( new Coordinate( 13.1, 56.2 ), false );
coordinates.add( new Coordinate( 13.2, 56.0 ), false );
coordinates.add( new Coordinate( 13.3, 56.2 ), false );
coordinates.add( new Coordinate( 13.2, 56.0 ), false );
coordinates.add( new Coordinate( 13.1, 56.2 ), false );
coordinates.add( new Coordinate( 13.0, 56.0 ), false );
layer.add( layer.getGeometryFactory().createLineString(
coordinates.toCoordinateArray() ) );
coordinates = new CoordinateList();
coordinates.add( new Coordinate( 14.1, 56.0 ), false );
coordinates.add( new Coordinate( 14.3, 56.1 ), false );
coordinates.add( new Coordinate( 14.2, 56.1 ), false );
coordinates.add( new Coordinate( 14.0, 56.0 ), false );
layer.add( layer.getGeometryFactory().createLineString(
coordinates.toCoordinateArray() ) );
// TODO this test is not complete
try (Transaction tx = graphDb().beginTx()) {
printResults(layer, GeoPipeline