org.geolatte.geom.generator.AbstractGeometryGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-geom Show documentation
Show all versions of geolatte-geom Show documentation
This geoLatte-geom library offers a geometry model that conforms to the OGC Simple Features for SQL
specification.
The newest version!
package org.geolatte.geom.generator;
import org.geolatte.geom.Box;
import org.geolatte.geom.Geometry;
import org.geolatte.geom.Position;
import org.geolatte.geom.crs.CoordinateReferenceSystem;
import java.util.Random;
/**
* Created by Karel Maesen, Geovise BVBA on 28/09/2018.
*/
abstract class AbstractGeometryGenerator> implements Generator {
protected final Box bbox;
protected final Random rnd;
public AbstractGeometryGenerator(Box
bbox, Random rnd) {
this.bbox = bbox;
this.rnd = rnd;
}
@Override
abstract public G generate();
protected CoordinateReferenceSystem
crs() {
return this.bbox.getCoordinateReferenceSystem();
}
}