Is there a way to convert whole geometries between coordinate systems?
I have my transforms defined, but the only way I can see of doing the transform is using the MathTransform.Transform method that takes a coordinate.
public IGeometry TransformGeometry(IGeometry geom)
if (SRID == 0 || CoordinateTransformation == null)
if (geom.OgcGeometryType == OgcGeometryType.Polygon)
var tList = new List<Coordinate>();
geom.Coordinates.ToList().ForEach(x => tList.Add(CoordinateTransformation.MathTransform.Transform(x)));
return new Polygon(new LinearRing(tList.ToArray()));
This is fine as I can just pad it out with the other geometry types, but I can't help but think someone must have written something like this already!