Search in sources :

Example 1 with LasPointCloud

use of com.revolsys.elevation.cloud.las.LasPointCloud in project com.revolsys.open by revolsys.

the class TriangulationVisualization method tinVisualLas.

public static void tinVisualLas() {
    final PathResource sourceFile = new PathResource("/data/dem/elevation/las/bc_093g057c_xl2m_2015_dem_ground.las");
    final TriangulatedIrregularNetwork tin;
    try (final LasPointCloud pointCloud = PointCloud.newPointCloud(sourceFile)) {
        tin = pointCloud.newTriangulatedIrregularNetwork();
    }
    if (writeFile) {
        tin.writeTriangulatedIrregularNetwork(new PathResource("/data/elevation/tin/093/g/093g057.tin"));
    }
    displayTin(tin);
}
Also used : TriangulatedIrregularNetwork(com.revolsys.elevation.tin.TriangulatedIrregularNetwork) PathResource(com.revolsys.spring.resource.PathResource) LasPointCloud(com.revolsys.elevation.cloud.las.LasPointCloud)

Example 2 with LasPointCloud

use of com.revolsys.elevation.cloud.las.LasPointCloud in project com.revolsys.open by revolsys.

the class LasInfo method close.

@Override
public void close() {
    final LasPointCloud pointCloud = this.pointCloud;
    if (pointCloud != null) {
        this.pointCloud = null;
        pointCloud.close();
    }
}
Also used : LasPointCloud(com.revolsys.elevation.cloud.las.LasPointCloud)

Aggregations

LasPointCloud (com.revolsys.elevation.cloud.las.LasPointCloud)2 TriangulatedIrregularNetwork (com.revolsys.elevation.tin.TriangulatedIrregularNetwork)1 PathResource (com.revolsys.spring.resource.PathResource)1