* @param E envelope
* @return string definition
*/
private String envelopeToString(com.esri.arcgisws.Envelope E) {
if (E instanceof EnvelopeN) {
EnvelopeN e = (EnvelopeN) E;
// project envelope
Envelope gptEnvelope = new Envelope(e.getXMin(), e.getYMin(), e.getXMax(), e.getYMax());
if (e.getSpatialReference()!=null && e.getSpatialReference().getWKID()!=null) {
gptEnvelope.setWkid(e.getSpatialReference().getWKID().toString());
List<Envelope> envelopes = Arrays.asList(new Envelope[]{gptEnvelope});
try {
List<Envelope> projectedEnvelopes = gs.project(envelopes, "4326");
if (projectedEnvelopes!=null && !projectedEnvelopes.isEmpty()) {
Envelope pe = projectedEnvelopes.get(0);