translateCentreToOrigin static method
Implementation
static Geometry translateCentreToOrigin(Geometry g) {
Coordinate centre = envelopeCentre(g)!;
AffineTransformation trans =
AffineTransformation.translationInstance(-centre.x, -centre.y);
return trans.transformGeom(g);
}