public static String envelopeToString(Envelope envelope) {
    return envelope == null ? "null" :
      ("Envelope(" + envelope.getMinX() + ',' + envelope.getMinY() + ',' + envelope.getMaxX() + ',' +
        envelope.getMaxY() + ')');
  }
Helper class to sort polygons by area of their outer shell.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeoUtils.java