/** Sets this envelope to the specified bounding box. */ public void init(BoundingBox bounds) { init( bounds.getMinimum(0), bounds.getMaximum(0), bounds.getMinimum(1), bounds.getMaximum(1), bounds.getMinimum(2), bounds.getMaximum(2)); this.crs = bounds.getCoordinateReferenceSystem(); }
/** Sets this envelope to the specified bounding box. */ public void init(BoundingBox bounds) { super.init( bounds.getMinimum(0), bounds.getMaximum(0), bounds.getMinimum(1), bounds.getMaximum(1)); this.crs = bounds.getCoordinateReferenceSystem(); }
/** * Sets this envelope to the specified bounding box. */ public void init(final BoundingBox bounds) { super.init(bounds.getMinimum(0), bounds.getMaximum(0), bounds.getMinimum(1), bounds.getMaximum(1)); this.crs = bounds.getCoordinateReferenceSystem(); }
@Override public void setBounds(final BoundingBox bounds) { for(int dim=0;dim<bounds.getDimension();dim++){ setRange(dim, bounds.getMinimum(dim),bounds.getMaximum(dim)); } }
private Node createFeatureNode(final ObjectId id, final String name, @Nullable final BoundingBox bounds, final FeatureType type) { Envelope bbox; if (bounds == null) { bbox = null; } else if (bounds instanceof Envelope) { bbox = (Envelope) bounds; } else { bbox = new Envelope(bounds.getMinimum(0), bounds.getMaximum(0), bounds.getMinimum(1), bounds.getMaximum(1)); } RevFeatureType revFeatureType = revFeatureTypes.get(type.getName().getLocalPart()); if (null == revFeatureType) { revFeatureType = RevFeatureTypeBuilder.build(type); revFeatureTypes.put(type.getName().getLocalPart(), revFeatureType); } ObjectId defaultMetadataId = revFeatureType.getId(); ObjectId metadataId = revFeatureType.getId().equals(defaultMetadataId) ? ObjectId.NULL : revFeatureType.getId(); Node node = Node.create(name, id, metadataId, TYPE.FEATURE, bbox); return node; }
private Node createFeatureNode(final ObjectId id, final String name, @Nullable final BoundingBox bounds, final FeatureType type) { Envelope bbox; if (bounds == null) { bbox = null; } else if (bounds instanceof Envelope) { bbox = (Envelope) bounds; } else { bbox = new Envelope(bounds.getMinimum(0), bounds.getMaximum(0), bounds.getMinimum(1), bounds.getMaximum(1)); } RevFeatureType revFeatureType = revFeatureTypes.get(type.getName().getLocalPart()); if (null == revFeatureType) { revFeatureType = RevFeatureType.builder().type(type).build(); revFeatureTypes.put(type.getName().getLocalPart(), revFeatureType); } ObjectId defaultMetadataId = revFeatureType.getId(); ObjectId metadataId = revFeatureType.getId().equals(defaultMetadataId) ? ObjectId.NULL : revFeatureType.getId(); Node node = RevObjectFactory.defaultInstance().createNode(name, id, metadataId, TYPE.FEATURE, bbox, null); return node; }