sb.append(Double.toString( (tempEnvelope.getMinY()+tempEnvelope.getMaxY())/2 ));
sb.append("\n\n");
}
// Projection information
Projection tempProjection = myDisplay.getProjection();
if (tempProjection == null){
sb.append("Not Projected");
sb.append("\n\n");
}
else{
sb.append("Projection :");
sb.append(tempProjection.getProjectionName());
sb.append("\n\n");
}
// list the number of records visible for each layer.
Layer[] tempLayers = myDisplay.getLayers();
for (int i=0; i<tempLayers.length; i++){