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.Logger
logger
-
Constructor Summary
Constructors Constructor Description Grid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Grid
addGeometryToCover(Collection<org.locationtech.jts.geom.Geometry> gs)
Grid
addGeometryToCover(org.locationtech.jts.geom.Geometry geometryToCover)
Collection<Feature>
getCells()
String
getEPSGCode()
Collection<org.locationtech.jts.geom.Geometry>
getGeometriesToCover()
GridCell.GridCellGeometryType
getGridCellGeometryType()
int
getResolution()
double
getToleranceDistance()
Grid
setEPSGCode(String epsgCode)
Grid
setGeometryToCover(org.locationtech.jts.geom.Envelope envelopeToCover)
Grid
setGeometryToCover(org.locationtech.jts.geom.Geometry geometryToCover)
Grid
setGridCellGeometryType(GridCell.GridCellGeometryType geomType)
Grid
setResolution(int resolution)
Grid
setToleranceDistance(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()
-
-