public class RasterizationUtils extends Object implements Serializable
| Constructor and Description |
|---|
RasterizationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static scala.Tuple2<Integer,Integer> |
Decode1DTo2DId(int resolutionX,
int resolutionY,
int oneDimensionId)
Decode 1 D to 2 D id.
|
static int |
Encode2DTo1DId(int resolutionX,
int resolutionY,
int twoDimensionIdX,
int twoDimensionIdY)
Encode 2 D to 1 D id.
|
static scala.Tuple2<Integer,Integer> |
FindOnePixelCoordinate(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundaryOriginal,
org.locationtech.jts.geom.Coordinate spatialCoordinateOriginal,
boolean reverseSpatialCoordinate)
Find one pixel coordinate.
|
static scala.Tuple2<Integer,Integer> |
FindOnePixelCoordinate(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundaryOriginal,
org.locationtech.jts.geom.Coordinate spatialCoordinateOriginal,
boolean reverseSpatialCoordinate,
boolean flipOverX,
boolean flipOverY)
Find one pixel coordinate.
|
static org.locationtech.jts.geom.Coordinate[] |
FindPixelCoordinates(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundary,
org.locationtech.jts.geom.Coordinate[] coordinates,
boolean reverseSpatialCoordinate,
boolean flipOverX,
boolean flipOverY)
Find pixel coordinates.
|
static org.locationtech.jts.geom.Coordinate |
FindPixelCoordinates(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundary,
org.locationtech.jts.geom.Coordinate coordinate,
boolean reverseSpatialCoordinate,
boolean flipOverX,
boolean flipOverY)
Find pixel coordinates.
|
static List<scala.Tuple2<Pixel,Double>> |
FindPixelCoordinates(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundary,
org.locationtech.jts.geom.LineString spatialObject,
boolean reverseSpatialCoordinate)
Find pixel coordinates.
|
static List<scala.Tuple2<Pixel,Double>> |
FindPixelCoordinates(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundary,
org.locationtech.jts.geom.Point spatialObject,
ColorizeOption colorizeOption,
boolean reverseSpatialCoordinate)
Find pixel coordinates.
|
static List<scala.Tuple2<Pixel,Double>> |
FindPixelCoordinates(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundary,
org.locationtech.jts.geom.Polygon spatialObject,
boolean reverseSpatialCoordinate)
Find pixel coordinates.
|
static List<scala.Tuple2<Pixel,Double>> |
FindPixelCoordinates(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundary,
org.locationtech.jts.geom.Polygon spatialObject,
boolean reverseSpatialCoordinate,
Double objectWeight)
Find pixel coordinates.
|
static List<scala.Tuple2<Pixel,Double>> |
FindPixelCoordinates(int resolutionX,
int resolutionY,
scala.Tuple2<Integer,Integer> pixelCoordinate1,
scala.Tuple2<Integer,Integer> pixelCoordinate2,
boolean reverseSpatialCoordinate)
Find pixel coordinates.
|
static String |
getImageTileName(int zoomLevel,
int partitionOnX,
int partitionOnY,
int tileSerialId) |
static int |
GetWidthFromHeight(int y,
org.locationtech.jts.geom.Envelope boundary)
Gets the width from height.
|
public static scala.Tuple2<Integer,Integer> FindOnePixelCoordinate(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundaryOriginal, org.locationtech.jts.geom.Coordinate spatialCoordinateOriginal, boolean reverseSpatialCoordinate)
resolutionX - the resolution XresolutionY - the resolution YdatasetBoundaryOriginal - the dataset boundary originalspatialCoordinateOriginal - the spatial coordinate originalreverseSpatialCoordinate - the reverse spatial coordinatepublic static scala.Tuple2<Integer,Integer> FindOnePixelCoordinate(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundaryOriginal, org.locationtech.jts.geom.Coordinate spatialCoordinateOriginal, boolean reverseSpatialCoordinate, boolean flipOverX, boolean flipOverY)
resolutionX - the resolution XresolutionY - the resolution YdatasetBoundaryOriginal - the dataset boundary originalspatialCoordinateOriginal - the spatial coordinate originalreverseSpatialCoordinate - the reverse spatial coordinateflipOverX - the flip over XflipOverY - the flip over Ypublic static int GetWidthFromHeight(int y,
org.locationtech.jts.geom.Envelope boundary)
y - the yboundary - the boundarypublic static int Encode2DTo1DId(int resolutionX,
int resolutionY,
int twoDimensionIdX,
int twoDimensionIdY)
throws Exception
resolutionX - the resolution XresolutionY - the resolution YtwoDimensionIdX - the two dimension id XtwoDimensionIdY - the two dimension id YException - the exceptionpublic static scala.Tuple2<Integer,Integer> Decode1DTo2DId(int resolutionX, int resolutionY, int oneDimensionId)
resolutionX - the resolution XresolutionY - the resolution YoneDimensionId - the one dimension idpublic static List<scala.Tuple2<Pixel,Double>> FindPixelCoordinates(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, org.locationtech.jts.geom.Point spatialObject, ColorizeOption colorizeOption, boolean reverseSpatialCoordinate)
resolutionX - the resolution XresolutionY - the resolution YdatasetBoundary - the dataset boundaryspatialObject - the spatial objectcolorizeOption - the colorize optionreverseSpatialCoordinate - the reverse spatial coordinatepublic static org.locationtech.jts.geom.Coordinate[] FindPixelCoordinates(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundary,
org.locationtech.jts.geom.Coordinate[] coordinates,
boolean reverseSpatialCoordinate,
boolean flipOverX,
boolean flipOverY)
resolutionX - the resolution XresolutionY - the resolution YdatasetBoundary - the dataset boundarycoordinates - the coordinatesreverseSpatialCoordinate - the reverse spatial coordinateflipOverX - the flip over XflipOverY - the flip over Ypublic static org.locationtech.jts.geom.Coordinate FindPixelCoordinates(int resolutionX,
int resolutionY,
org.locationtech.jts.geom.Envelope datasetBoundary,
org.locationtech.jts.geom.Coordinate coordinate,
boolean reverseSpatialCoordinate,
boolean flipOverX,
boolean flipOverY)
resolutionX - the resolution XresolutionY - the resolution YdatasetBoundary - the dataset boundarycoordinate - the coordinatereverseSpatialCoordinate - the reverse spatial coordinateflipOverX - the flip over XflipOverY - the flip over Ypublic static List<scala.Tuple2<Pixel,Double>> FindPixelCoordinates(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, org.locationtech.jts.geom.Polygon spatialObject, boolean reverseSpatialCoordinate)
resolutionX - the resolution XresolutionY - the resolution YdatasetBoundary - the dataset boundaryspatialObject - the spatial objectreverseSpatialCoordinate - the reverse spatial coordinatepublic static List<scala.Tuple2<Pixel,Double>> FindPixelCoordinates(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, org.locationtech.jts.geom.Polygon spatialObject, boolean reverseSpatialCoordinate, Double objectWeight)
resolutionX - the resolution XresolutionY - the resolution YdatasetBoundary - the dataset boundaryspatialObject - the spatial objectreverseSpatialCoordinate - the reverse spatial coordinateobjectWeight - the object weightpublic static List<scala.Tuple2<Pixel,Double>> FindPixelCoordinates(int resolutionX, int resolutionY, scala.Tuple2<Integer,Integer> pixelCoordinate1, scala.Tuple2<Integer,Integer> pixelCoordinate2, boolean reverseSpatialCoordinate)
resolutionX - the resolution XresolutionY - the resolution YpixelCoordinate1 - the pixel coordinate 1pixelCoordinate2 - the pixel coordinate 2reverseSpatialCoordinate - the reverse spatial coordinatepublic static List<scala.Tuple2<Pixel,Double>> FindPixelCoordinates(int resolutionX, int resolutionY, org.locationtech.jts.geom.Envelope datasetBoundary, org.locationtech.jts.geom.LineString spatialObject, boolean reverseSpatialCoordinate)
resolutionX - the resolution XresolutionY - the resolution YdatasetBoundary - the dataset boundaryspatialObject - the spatial objectreverseSpatialCoordinate - the reverse spatial coordinatepublic static String getImageTileName(int zoomLevel, int partitionOnX, int partitionOnY, int tileSerialId)
Copyright © 2023 The Apache Software Foundation. All rights reserved.