Class RasterizationUtils

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
    • Constructor Detail

      • RasterizationUtils

        public RasterizationUtils()
    • Method Detail

      • FindOnePixelCoordinate

        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)
        Find one pixel coordinate.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        datasetBoundaryOriginal - the dataset boundary original
        spatialCoordinateOriginal - the spatial coordinate original
        reverseSpatialCoordinate - the reverse spatial coordinate
        Returns:
        the tuple 2
      • FindOnePixelCoordinate

        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,
                                                                                 boolean flipOverX,
                                                                                 boolean flipOverY)
        Find one pixel coordinate.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        datasetBoundaryOriginal - the dataset boundary original
        spatialCoordinateOriginal - the spatial coordinate original
        reverseSpatialCoordinate - the reverse spatial coordinate
        flipOverX - the flip over X
        flipOverY - the flip over Y
        Returns:
        the tuple 2
      • GetWidthFromHeight

        public static int GetWidthFromHeight​(int y,
                                             org.locationtech.jts.geom.Envelope boundary)
        Gets the width from height.
        Parameters:
        y - the y
        boundary - the boundary
        Returns:
        the int
      • Encode2DTo1DId

        public static int Encode2DTo1DId​(int resolutionX,
                                         int resolutionY,
                                         int twoDimensionIdX,
                                         int twoDimensionIdY)
                                  throws Exception
        Encode 2 D to 1 D id.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        twoDimensionIdX - the two dimension id X
        twoDimensionIdY - the two dimension id Y
        Returns:
        the int
        Throws:
        Exception - the exception
      • Decode1DTo2DId

        public static scala.Tuple2<Integer,​Integer> Decode1DTo2DId​(int resolutionX,
                                                                         int resolutionY,
                                                                         int oneDimensionId)
        Decode 1 D to 2 D id.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        oneDimensionId - the one dimension id
        Returns:
        the tuple 2
      • FindPixelCoordinates

        public 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.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        spatialObject - the spatial object
        colorizeOption - the colorize option
        reverseSpatialCoordinate - the reverse spatial coordinate
        Returns:
        the list
      • FindPixelCoordinates

        public 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.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        coordinates - the coordinates
        reverseSpatialCoordinate - the reverse spatial coordinate
        flipOverX - the flip over X
        flipOverY - the flip over Y
        Returns:
        the coordinate[]
      • FindPixelCoordinates

        public 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.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        coordinate - the coordinate
        reverseSpatialCoordinate - the reverse spatial coordinate
        flipOverX - the flip over X
        flipOverY - the flip over Y
        Returns:
        the coordinate
      • FindPixelCoordinates

        public 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.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        spatialObject - the spatial object
        reverseSpatialCoordinate - the reverse spatial coordinate
        Returns:
        the list
      • FindPixelCoordinates

        public 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.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        spatialObject - the spatial object
        reverseSpatialCoordinate - the reverse spatial coordinate
        objectWeight - the object weight
        Returns:
        the list
      • FindPixelCoordinates

        public 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.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        pixelCoordinate1 - the pixel coordinate 1
        pixelCoordinate2 - the pixel coordinate 2
        reverseSpatialCoordinate - the reverse spatial coordinate
        Returns:
        the list
      • FindPixelCoordinates

        public 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.
        Parameters:
        resolutionX - the resolution X
        resolutionY - the resolution Y
        datasetBoundary - the dataset boundary
        spatialObject - the spatial object
        reverseSpatialCoordinate - the reverse spatial coordinate
        Returns:
        the list
      • getImageTileName

        public static String getImageTileName​(int zoomLevel,
                                              int partitionOnX,
                                              int partitionOnY,
                                              int tileSerialId)