src/test/java/com/esri/core/geometry/TestGeomToGeoJson.java
@Test
    public void testEnvelope() {
        Envelope e = new Envelope();
        e.setCoords(-180.0, -90.0, 180.0, 90.0);
        String result = OperatorExportToGeoJson.local().execute(e);
        assertEquals("{\"type\":\"Polygon\",\"coordinates\":[[[-180,-90],[180,-90],[180,90],[-180,90],[-180,-90]]]}", result);
    }
//Envelope is exported as a polygon (we don't support bbox, as it is not a GeoJson geometry, but simply a field)!
Envelope is exported as a polygon (we don't support bbox, as it is not a GeoJson geometry, but simply a field)!
Envelope is exported as a polygon ( we don ' t support bbox as it is not a GeoJson geometry but simply a field ) !
@Test
    public void testEnvelope() {
        Envelope e = new Envelope();
        e.setCoords(-180.0, -90.0, 180.0, 90.0);
        String result = OperatorExportToGeoJson.local().execute(e);
        assertEquals("{\"type\":\"Polygon\",\"coordinates\":[[[-180,-90],[180,-90],[180,90],[-180,90],[-180,-90]]]}", result);
    }
@ Test public void testEnvelope ( ) { Envelope e = new Envelope ( ) ; e . setCoords ( - 180.0 , - 90.0 , 180.0 , 90.0 ) ; String result = OperatorExportToGeoJson . local ( ) . execute ( e ) ; assertEquals ( "{\"type\":\"Polygon\",\"coordinates\":[[[-180,-90],[180,-90],[180,90],[-180,90],[-180,-90]]]}" , result ) ; }
Envelope is exported as a polygon (we don't support bbox, as it is not a GeoJson geometry, but simply a field)!
Envelope is exported as a polygon ( we don ' t support bbox as it is not a GeoJson geometry but simply a field ) !