Class GeometryUtils
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.GeometryUtils
-
public class GeometryUtils extends Object
Utility methods for the geometry.
-
-
Field Summary
Fields Modifier and Type Field Description static doubleEARTH_RADIUS_KMstatic doubleEARTH_RADIUS_Mstatic org.locationtech.jts.geom.GeometryEMPTY_POINTstatic org.locationtech.jts.geom.GeometryFactoryGEOGRAPHY_FACTORYstatic byteGEOGRAPHY_GET_MASKstatic byteGEOGRAPHY_SET_MASKstatic intGEOGRAPHY_SRIDCoordinate system of lat/lng per https://epsg.io/4326static org.locationtech.jts.io.WKBReaderGEOGRAPHY_WKB_READERstatic org.locationtech.jts.io.WKTReaderGEOGRAPHY_WKT_READERstatic org.locationtech.jts.geom.GeometryFactoryGEOMETRY_FACTORYstatic org.locationtech.jts.io.WKBReaderGEOMETRY_WKB_READERstatic org.locationtech.jts.io.WKTReaderGEOMETRY_WKT_READERstatic com.google.common.base.JoinerOR_JOINERstatic org.locationtech.jts.io.WKBWriterWKB_WRITERstatic org.locationtech.jts.io.WKTWriterWKT_WRITER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisGeography(org.locationtech.jts.geom.Geometry geometry)Checks if the given geo-spatial object is a geography object.static voidsetGeography(org.locationtech.jts.geom.Geometry geometry)Sets the geometry to geography.static voidsetGeometry(org.locationtech.jts.geom.Geometry geometry)Sets to geometry.
-
-
-
Field Detail
-
GEOGRAPHY_SRID
public static final int GEOGRAPHY_SRID
Coordinate system of lat/lng per https://epsg.io/4326- See Also:
- Constant Field Values
-
GEOGRAPHY_SET_MASK
public static final byte GEOGRAPHY_SET_MASK
- See Also:
- Constant Field Values
-
GEOGRAPHY_GET_MASK
public static final byte GEOGRAPHY_GET_MASK
- See Also:
- Constant Field Values
-
GEOMETRY_FACTORY
public static final org.locationtech.jts.geom.GeometryFactory GEOMETRY_FACTORY
-
GEOGRAPHY_FACTORY
public static final org.locationtech.jts.geom.GeometryFactory GEOGRAPHY_FACTORY
-
GEOMETRY_WKT_READER
public static final org.locationtech.jts.io.WKTReader GEOMETRY_WKT_READER
-
GEOGRAPHY_WKT_READER
public static final org.locationtech.jts.io.WKTReader GEOGRAPHY_WKT_READER
-
GEOMETRY_WKB_READER
public static final org.locationtech.jts.io.WKBReader GEOMETRY_WKB_READER
-
GEOGRAPHY_WKB_READER
public static final org.locationtech.jts.io.WKBReader GEOGRAPHY_WKB_READER
-
WKT_WRITER
public static final org.locationtech.jts.io.WKTWriter WKT_WRITER
-
WKB_WRITER
public static final org.locationtech.jts.io.WKBWriter WKB_WRITER
-
EARTH_RADIUS_KM
public static final double EARTH_RADIUS_KM
- See Also:
- Constant Field Values
-
EARTH_RADIUS_M
public static final double EARTH_RADIUS_M
- See Also:
- Constant Field Values
-
OR_JOINER
public static final com.google.common.base.Joiner OR_JOINER
-
EMPTY_POINT
public static final org.locationtech.jts.geom.Geometry EMPTY_POINT
-
-
Method Detail
-
isGeography
public static boolean isGeography(org.locationtech.jts.geom.Geometry geometry)
Checks if the given geo-spatial object is a geography object.- Parameters:
geometry- the given object to check- Returns:
trueif the given geo-spatial object is a geography object,falseotherwise
-
setGeography
public static void setGeography(org.locationtech.jts.geom.Geometry geometry)
Sets the geometry to geography.- Parameters:
geometry- the geometry to set
-
setGeometry
public static void setGeometry(org.locationtech.jts.geom.Geometry geometry)
Sets to geometry.- Parameters:
geometry- the geometry to set
-
-