use of com.revolsys.swing.map.layer.Project in project com.revolsys.open by revolsys.
the class AbstractRecordLayer method zoomToBoundingBox.
public void zoomToBoundingBox(BoundingBox boundingBox) {
if (!RectangleUtil.isEmpty(boundingBox)) {
final Project project = getProject();
final GeometryFactory geometryFactory = project.getGeometryFactory();
boundingBox = boundingBox.convert(geometryFactory);
boundingBox = boundingBox.expandPercent(0.1);
project.setViewBoundingBox(boundingBox);
}
}
use of com.revolsys.swing.map.layer.Project in project com.revolsys.open by revolsys.
the class EditRecordGeometryOverlay method getElevation.
private double getElevation(final Point point) {
final Project project = getProject();
final double scale = getViewportScale();
return ElevationModelLayer.getElevation(project, scale, point);
}
use of com.revolsys.swing.map.layer.Project in project com.revolsys.open by revolsys.
the class ProjectTreeNode method newTree.
public static BaseTree newTree(final Project project) {
final ProjectTreeNode root = new ProjectTreeNode(project);
final BaseTree tree = new BaseTree(root);
tree.setProperty("treeType", Project.class.getName());
return tree;
}
Aggregations