public static MathTransform findMathTransform(CoordinateReferenceSystem source, CoordinateReferenceSystem dest,
    Boolean forceLongitudeFirst)
    throws FactoryException {
    var mathTransform = CRS.findMathTransform(source, dest, true);
    if (forceLongitudeFirst != null) {
      boolean sourceLonFirst = CRS.getAxisOrder(source) == CRS.AxisOrder.EAST_NORTH;
      if (sourceLonFirst != forceLongitudeFirst) {
        mathTransform = ConcatenatedTransform.create(swapXYTransform(), mathTransform);
      }
    }
    return mathTransform;
  }
Creates a transform that maps coordinates from {@code source} to {@code dest} CRS. If {@code source} axis ordering
does not match {@code longitudeFirst} then it force-swaps x/y coordinates first.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeoUtils.java