Class Grid
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.grid.Grid
-
public class Grid extends Object
Build a grid. The resolution, coordinate reference system, extent and cell geometry types can be defined by th users. Both cartographic and geographical grids are supported.- Author:
- julien Gaffuri
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.logging.log4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description Grid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridaddGeometryToCover(Collection<org.locationtech.jts.geom.Geometry> gs)GridaddGeometryToCover(org.locationtech.jts.geom.Geometry geometryToCover)Collection<Feature>getCells()StringgetEPSGCode()Collection<org.locationtech.jts.geom.Geometry>getGeometriesToCover()GridCell.GridCellGeometryTypegetGridCellGeometryType()intgetResolution()doublegetToleranceDistance()GridsetEPSGCode(String epsgCode)GridsetGeometryToCover(org.locationtech.jts.geom.Envelope envelopeToCover)GridsetGeometryToCover(org.locationtech.jts.geom.Geometry geometryToCover)GridsetGridCellGeometryType(GridCell.GridCellGeometryType geomType)GridsetResolution(int resolution)GridsetToleranceDistance(double toleranceDistance)
-
-
-
Method Detail
-
getResolution
public int getResolution()
-
setResolution
public Grid setResolution(int resolution)
-
getEPSGCode
public String getEPSGCode()
-
getGeometriesToCover
public Collection<org.locationtech.jts.geom.Geometry> getGeometriesToCover()
-
setGeometryToCover
public Grid setGeometryToCover(org.locationtech.jts.geom.Geometry geometryToCover)
-
setGeometryToCover
public Grid setGeometryToCover(org.locationtech.jts.geom.Envelope envelopeToCover)
-
addGeometryToCover
public Grid addGeometryToCover(org.locationtech.jts.geom.Geometry geometryToCover)
-
addGeometryToCover
public Grid addGeometryToCover(Collection<org.locationtech.jts.geom.Geometry> gs)
-
getToleranceDistance
public double getToleranceDistance()
-
setToleranceDistance
public Grid setToleranceDistance(double toleranceDistance)
-
getGridCellGeometryType
public GridCell.GridCellGeometryType getGridCellGeometryType()
-
setGridCellGeometryType
public Grid setGridCellGeometryType(GridCell.GridCellGeometryType geomType)
-
getCells
public Collection<Feature> getCells()
-
-