Class RasterizedGeometry2D
java.lang.Object
com.esri.core.geometry.RasterizedGeometry2D
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RasterizedGeometry2DCreates a rasterized geometry from a given Geometry.abstract booleandbgSaveToBitmap(String fileName) Dumps the raster to a bmp file for debug purposes.abstract longReturns an estimate of this object size in bytes.abstract intReturns raster size in bytesabstract doubleReturns the tolerance for which the rasterized Geometry has been built.abstract RasterizedGeometry2D.HitTypeTest an envelope against the RasterizedGeometry.abstract RasterizedGeometry2D.HitTypequeryPointInGeometry(double x, double y) Test a point against the RasterizedGeometrystatic int
-
Constructor Details
-
RasterizedGeometry2D
public RasterizedGeometry2D()
-
-
Method Details
-
queryPointInGeometry
Test a point against the RasterizedGeometry -
queryEnvelopeInGeometry
Test an envelope against the RasterizedGeometry. -
create
Creates a rasterized geometry from a given Geometry.- Parameters:
geom- The input geometry to rasterize. It has to be a MultiVertexGeometry instance.toleranceXY- The tolerance of the rasterization. Raster pixels that are closer than given tolerance to the Geometry will be set.rasterSizeBytes- The max size of the raster in bytes. The raster has size of rasterSize x rasterSize. Polygons are rasterized into 2 bpp (bits per pixel) rasters while other geometries are rasterized into 1 bpp rasters. 32x32 pixel raster for a polygon would take 256 bytes of memory
-
rasterSizeFromAccelerationDegree
-
getToleranceXY
public abstract double getToleranceXY()Returns the tolerance for which the rasterized Geometry has been built. -
getRasterSize
public abstract int getRasterSize()Returns raster size in bytes -
dbgSaveToBitmap
Dumps the raster to a bmp file for debug purposes.- Parameters:
fileName-- Returns:
- true if success, false otherwise.
-
estimateMemorySize
public abstract long estimateMemorySize()Returns an estimate of this object size in bytes.- Returns:
- Returns an estimate of this object size in bytes.
-