public static org.locationtech.jts.geom.Envelope getJtsEnvelope(OGCGeometry ogcGeometry, double radius)
    {
        Envelope esriEnvelope = getEnvelope(ogcGeometry);

        if (esriEnvelope.isEmpty()) {
            return new org.locationtech.jts.geom.Envelope();
        }

        return new org.locationtech.jts.geom.Envelope(
                esriEnvelope.getXMin() - radius,
                esriEnvelope.getXMax() + radius,
                esriEnvelope.getYMin() - radius,
                esriEnvelope.getYMax() + radius);
    }
@Test
    public void testGetJtsEnvelope()
    {
        assertJtsEnvelope(
                "MULTIPOLYGON EMPTY",
                new Envelope());
        assertJtsEnvelope(
                "POINT (-23.4 12.2)",
                new Envelope(-23.4, -23.4, 12.2, 12.2));
        assertJtsEnvelope(
                "LINESTRING (-75.9375 23.6359, -75.9375 23.6364)",
                new Envelope(-75.9375, -75.9375, 23.6359, 23.6364));
        assertJtsEnvelope(
                "GEOMETRYCOLLECTION (" +
                        "  LINESTRING (-75.9375 23.6359, -75.9375 23.6364)," +
                        "  MULTIPOLYGON (((-75.9375 23.45520, -75.9371 23.4554, -75.9375 23.46023325, -75.9375 23.45520)))" +
                        ")",
                new Envelope(-75.9375, -75.9371, 23.4552, 23.6364));
    }