Class LasCellsTable


  • public class LasCellsTable
    extends Object
    Table to hold all the table sources.
    Author:
    Andrea Antonello (www.hydrologis.com)
    • Constructor Detail

      • LasCellsTable

        public LasCellsTable()
    • Method Detail

      • getLasCells

        public static List<LasCell> getLasCells​(ASpatialDb db,
                                                org.locationtech.jts.geom.Envelope envelope,
                                                org.locationtech.jts.geom.Geometry exactGeometry,
                                                boolean doPosition,
                                                boolean doIntensity,
                                                boolean doReturns,
                                                boolean doTime,
                                                boolean doColor,
                                                int limitTo)
                                         throws Exception
        Query the las cell table.
        Parameters:
        db - the db to use.
        envelope - an optional Envelope to query spatially.
        exactGeometry - an optional exact geometry. If available it is used instead of the envelope.
        doPosition - if true position info is extracted.
        doIntensity - if true intensity and classification info is extracted.
        doReturns - if true return info is extracted.
        doTime - if true time info is extracted.
        doColor - if true color info is extracted.
        limitTo - limit the cells to a value if != -1
        Returns:
        the list of extracted points
        Throws:
        Exception
      • getLasCells

        public static List<LasCell> getLasCells​(ASpatialDb db,
                                                org.locationtech.jts.geom.Geometry geometry,
                                                boolean doPosition,
                                                boolean doIntensity,
                                                boolean doReturns,
                                                boolean doTime,
                                                boolean doColor)
                                         throws Exception
        Query the las cell table on a geometry intersection.
        Parameters:
        db - the db to use.
        geometry - an optional Geometry to query spatially.
        doPosition - if true position info is extracted.
        doIntensity - if true intensity and classification info is extracted.
        doReturns - if true return info is extracted.
        doTime - if true time info is extracted.
        doColor - if true color info is extracted.
        Returns:
        the list of extracted points
        Throws:
        Exception
      • getLasCellsBySource

        public static List<LasCell> getLasCellsBySource​(ASpatialDb db,
                                                        long sourceId,
                                                        boolean doPosition,
                                                        boolean doIntensity,
                                                        boolean doReturns,
                                                        boolean doTime,
                                                        boolean doColor)
                                                 throws Exception
        Query the las cell table based on source.
        Parameters:
        db - the db to use.
        geometry - an optional Geometry to query spatially.
        doPosition - if true position info is extracted.
        doIntensity - if true intensity and classification info is extracted.
        doReturns - if true return info is extracted.
        doTime - if true time info is extracted.
        doColor - if true color info is extracted.
        Returns:
        the list of extracted points
        Throws:
        Exception
      • getCellPositions

        public static double[][] getCellPositions​(LasCell cell)
      • getCellIntensityClass

        public static short[][] getCellIntensityClass​(LasCell cell)
      • getCellColors

        public static short[][] getCellColors​(LasCell cell)