trait GeoTiffSegmentLayoutTransform extends AnyRef
- Alphabetic
- By Inheritance
- GeoTiffSegmentLayoutTransform
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Concrete Value Members
- def getSegmentCoordinate(segmentIndex: Int): (Int, Int)
-
def
getSegmentDimensions(segmentIndex: Int): Dimensions[Int]
Calculates pixel dimensions of a given segment in this layout.
Calculates pixel dimensions of a given segment in this layout. Segments are indexed in row-major order relative to the GeoTiff they comprise.
- returns
Tuple representing segment (cols, rows)
-
def
getSegmentSize(segmentIndex: Int): Int
Calculates the total pixel count for given segment in this layout.
Calculates the total pixel count for given segment in this layout.
- returns
Pixel size of the segment
-
def
partitionWindowsBySegments(windows: Seq[GridBounds[Int]], maxPartitionSize: Long): Array[Array[GridBounds[Int]]]
Partition a list of pixel windows to localize required segment reads.
Partition a list of pixel windows to localize required segment reads. Some segments may be required by more than one partition. Pixel windows outside of layout range will be filtered. Maximum partition size may be exceeded if any window size exceeds it. Windows will not be split to satisfy partition size limits.
- windows
List of pixel windows from this layout
- maxPartitionSize
Maximum pixel count for each partition