Rectangle paintArea, CoordinateReferenceSystem destinationCrs) throws TransformException {
// is the crs also lon,lat?
final CoordinateReferenceSystem crs2D= CRS.getHorizontalCRS(destinationCrs);
if(crs2D==null)
throw new TransformException(Errors.format(
ErrorKeys.CANT_REDUCE_TO_TWO_DIMENSIONS_$1,
destinationCrs));
final boolean lonFirst = crs2D
.getCoordinateSystem().getAxis(0).getDirection().absolute()
.equals(AxisDirection.EAST);