// initialize envelope properties
if ((env == null) || !(env instanceof EnvelopeN)) {
return null;
}
EnvelopeN envn = (EnvelopeN)env;
SpatialReference spref = envn.getSpatialReference();
if ((spref == null) || (spref.getWKID() == null)) {
return null;
}
int wkid = spref.getWKID().intValue();
double xmin = envn.getXMin();
double ymin = envn.getYMin();
double xmax = envn.getXMax();
double ymax = envn.getYMax();