I would like to use the Oblique Mercator projection in GeoTools.
I'm currently using a WGS84 Mercator projection like this:
final CoordinateReferenceSystem wgs84CoordSystem = CRS
.decode(LATLON_EPSG_CODE);
final CoordinateReferenceSystem worldMercatorCoordSystem = CRS
.decode(MERCATOR_EPSG_CODE);
final MathTransform latLonToMercator = CRS.findMathTransform(wgs84CoordSystem,
worldMercatorCoordSystem);
final MathTransform mercatorToLatLon = CRS.findMathTransform(worldMercatorCoordSystem,
wgs84CoordSystem);
The Oblique Mercator EPSG code doesn't appear to be supported (and I want to be able to specify the latitude of centre and azimuth anyway).
Could anyone give me an example of how to create a WGS84 Oblique Mercator projection and MathTransform to allow me to convert to/from Lat/Lon please?
Best Answer
Here is the solution I used:
This allows me to set the longitude and latitude of centre.