public class Pixel
extends org.locationtech.jts.geom.Point
envelope, factory, SRID, TYPECODE_GEOMETRYCOLLECTION, TYPECODE_LINEARRING, TYPECODE_LINESTRING, TYPECODE_MULTILINESTRING, TYPECODE_MULTIPOINT, TYPECODE_MULTIPOLYGON, TYPECODE_POINT, TYPECODE_POLYGON, TYPENAME_GEOMETRYCOLLECTION, TYPENAME_LINEARRING, TYPENAME_LINESTRING, TYPENAME_MULTILINESTRING, TYPENAME_MULTIPOINT, TYPENAME_MULTIPOLYGON, TYPENAME_POINT, TYPENAME_POLYGON
Constructor and Description |
---|
Pixel(double x,
double y,
int resolutionX,
int resolutionY)
Instantiates a new pixel.
|
Pixel(double x,
double y,
int resolutionX,
int resolutionY,
boolean isDuplicate,
int currentPartitionId)
Instantiates a new pixel.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCurrentPartitionId()
Gets the current partition id.
|
int |
getResolutionX() |
int |
getResolutionY() |
int |
hashCode() |
boolean |
isDuplicate()
Checks if is duplicate.
|
void |
setCurrentPartitionId(int currentPartitionId)
Sets the current partition id.
|
void |
setDuplicate(boolean duplicate)
Sets the duplicate.
|
String |
toString() |
apply, apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, copyInternal, equalsExact, getBoundary, getBoundaryDimension, getCoordinate, getCoordinates, getCoordinateSequence, getDimension, getGeometryType, getNumPoints, getTypeCode, getX, getY, isEmpty, isSimple, normalize, reverse, reverseInternal
buffer, buffer, buffer, compare, compareTo, compareTo, contains, convexHull, copy, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, geometryChangedAction, getArea, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getInteriorPoint, getLength, getNumGeometries, getPrecisionModel, getSRID, getUserData, hasNonEmptyElements, hasNullElements, intersection, intersects, isEquivalentClass, isGeometryCollection, isRectangle, isValid, isWithinDistance, norm, overlaps, relate, relate, setSRID, setUserData, symDifference, toText, touches, union, union, within
public Pixel(double x, double y, int resolutionX, int resolutionY, boolean isDuplicate, int currentPartitionId)
x
- the xy
- the yresolutionX
- the resolution XresolutionY
- the resolution YisDuplicate
- the is duplicatecurrentPartitionId
- the current partition idpublic Pixel(double x, double y, int resolutionX, int resolutionY)
x
- the xy
- the yresolutionX
- the resolution XresolutionY
- the resolution Ypublic boolean isDuplicate()
public void setDuplicate(boolean duplicate)
duplicate
- the new duplicatepublic int getCurrentPartitionId()
public void setCurrentPartitionId(int currentPartitionId)
currentPartitionId
- the new current partition idpublic int getResolutionX()
public int getResolutionY()
public boolean equals(Object o)
equals
in class org.locationtech.jts.geom.Geometry
public String toString()
toString
in class org.locationtech.jts.geom.Geometry
public int hashCode()
hashCode
in class org.locationtech.jts.geom.Geometry
Copyright © 2023 The Apache Software Foundation. All rights reserved.