I am using JTS in my application, and I want to transform the geometry from longitude and latitude to pixel.
And the algorithm for this translation has been providered by an interface:
public double fromLngLatToPixel(double lat, double lng);
Now I have to read the coordinates for the source geometry ,transform the coordinates and then create a new geometry.
However, I found that
JTS has a transfrom method like this:
public static Geometry transform(Geometry geom, MathTransform transform);
But I do not know to to implement the
MathTransform according to